Skip to content

Instantly share code, notes, and snippets.

E.J. Dyksen ejdyksen

Block or report user

Report or block ejdyksen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ejdyksen
ejdyksen / gist:c60e1aa1e4934ff32c36
Created Oct 28, 2014
LaunchAgent plist for Chrome Kiosk mode
View gist:c60e1aa1e4934ff32c36
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.mutuallyhuman.radiator</string>
<key>Program</key>
<string>/Applications/Google Chrome.app/Contents/MacOS/Google Chrome</string>
<key>ProgramArguments</key>
<array>
View gist:dabee71e633c5b7df6e1
# Generate a CSR and unencrypted private key
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
@ejdyksen
ejdyksen / gist:cb0fcffd6c4b71b6c470
Last active Aug 29, 2015
improv leadership email
View gist:cb0fcffd6c4b71b6c470
From: E.J. Dyksen
Date: Fri 5/4/2007 2:53 AM
Subject: IMPROV leadership

I am sending this email to the entire team in the interest of transparency and openness in this matter. I think everyone should read it.

Hello soon-to-be-juniors of IMPROV!

@ejdyksen
ejdyksen / fix_encoding.rb
Created Feb 15, 2012
Fix database encoding
View fix_encoding.rb
require 'mysql2'
SIMULATE = true
DB_HOST = "localhost"
DB_NAME = "database"
DB_USER = "root"
DB_PASS = "password"
@client = Mysql2::Client.new(
:host => DB_HOST,
View notify.swift
let notificationCenter = NSUserNotificationCenter.defaultUserNotificationCenter()
let notification = NSUserNotification()
notification.title = "Hello"
notification.informativeText = "This is a test"
notification.soundName = NSUserNotificationDefaultSoundName
notification.userInfo = ["key": "value"]
notificationCenter.deliverNotification(notification)
@ejdyksen
ejdyksen / gist:3992375
Created Nov 1, 2012
Allow node to use privileged ports
View gist:3992375
sudo apt-get install libcap2-bin
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
View report-exercise.rb
#
# The goal of this exercise is work on identifying abstraction which helps simplify, document,
# and separate the concerns going on in file.
#
# Exercise:
# * Find related ideas in the below code
# * Abstract them out (methods, modules, classes, etc, you pick!)
# * If you find multiple ways, then do a separate gist for each way.
# * Rinse repeat until you see no other ways.
#
View samlfromios.xml
<samlp:AuthnRequest AssertionConsumerServiceURL="http://ruby-saml-example.herokuapp.com/saml/consume"
Destination="https://ec2-54-235-224-165.compute-1.amazonaws.com:9443/samlsso"
ID="_2D729750-3EB6-43A4-8416-938C7114D8C6"
IssueInstant="2013-03-12T16:25:08"
Version="2.0"
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
<saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
ruby-saml-example.herokuapp.com
</saml:Issuer>
</samlp:AuthnRequest>
View gist:5249180
2013-03-26 16:54:12.678 palette[655:907] iCloud is available
2013-03-26 16:54:12.795 palette[655:1103] Creating iCloud store
2013-03-26 16:54:12.936 palette[655:907] iCloud is available
2013-03-26 16:54:13.311 palette[655:1103] Persistent store is ready
2013-03-26 16:54:13.313 palette[655:1103] notification: NSConcreteNotification 0x1fd55ca0 {name = NSPersistentStoreCoordinatorStoresDidChangeNotification; object = <NSPersistentStoreCoordinator: 0x1fdc1870>; userInfo = {
added = (
"<NSSQLCore: 0x208af020> (URL: file://localhost/private/var/mobile/Library/Mobile%20Documents/3488MV35N5~com~mutuallyhuman~palette/data.nosync/v62/CB1BD919-3E96-4D3E-B6DE-5270D7F5AE1C/palette.sqlite)"
);
}}
2013-03-26 16:54:13.315 palette[655:1103] ==========UI READY===========
View gist:5286748
❯ lineman run
Running "configure" task
Running "common" task
Running "coffee:compile" (coffee) task
File generated/js/app.coffee.js created.
File generated/js/spec.coffee.js created.
>> Destination not written because compiled files were empty.
You can’t perform that action at this time.