Skip to content

Instantly share code, notes, and snippets.

View jdee's full-sized avatar
🏳️‍🌈

Jimmy Dee jdee

🏳️‍🌈
View GitHub Profile
@jdee
jdee / gist:8ffe94322de97dcb6dc4
Created July 21, 2014 19:05
evolution of computing languages
// C (1972):
// for (char letter='A'; letter <= 'Z'; ++ letter) {
// Ruby (1995):
// [A..Z].each { |letter|
// drum roll, please
// Swift (2014):
let alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" // Hope I didn't mistype that. And never accidentally modify it.
@jdee
jdee / knob-control-and-violation.md
Last active August 29, 2015 14:03
iOS Knob Control and Violation

The iOS Knob Control and a new project, a framework for iOS called Violation, were both spun out of other large app projects I've been working on. The knob control came first. It resides in its own repo, has an unimaginative name that invites conflicts and is distributed simply as a single .h and .m file pair you can insert into your project.

That effort went well enough, and I was inspired to release some further custom iOS components from the same project. But the way the knob control was released would not scale to many classes, particularly with the introduction of things like base classes and private extensions.

Clearly all these things ought to share a single repo and be collected into a framework or other sort of

@jdee
jdee / id_rsa.pub
Created September 11, 2012 16:52
public key
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9HOsMHgdQHSi9mvim616AtcyhIum1n0aA0OepC9rSHB/GSZ4fp3NDnCyKQM9pWdL6R536kGnBWeRxjtqVDFw8vdYPbAQdY2f2xGHDeiXr6nI4GDdfajaUfh4i94CFVeBskglwlA+GbbFQdXYWmpkMHzLA0iAY06oKBr9A331W44mG6TdgtbZNBf/ZhTu+4+kSwi60lkDJycX3w1bhycf8DfET3UP3YUNlk64x0+yxoo6JhNtDukf7B4EpAmXtWNVyAYP/C+hVDSROwwbPBVIfeSkTungdTshmTGkKflkHzTP0sd07OB3UAABTnTf+FT8MZRXtXoAz17iiy8Zvj+hhQ== jdee@fatman
@jdee
jdee / new.xml
Created March 2, 2011 22:07
new task XML
jdee@fatman:app$ curl http://localhost:3000/events/1/tasks/new.xml
<?xml version='1.0' encoding='utf-8' ?>
<task xmlns:atom="http://www.w3.org/2005/Atom"><atom:link href="http://localhost:3000/events/1/tasks/new" rel="self" />
<atom:link href="http://localhost:3000/events/1/tasks" rel="index" />
<atom:link href="http://localhost:3000/codes/task_category" rel="https://wiki.csinitiative.com/display/tri/Relationship+-+TaskCategory" />
<atom:link href="http://localhost:3000/users" rel="https://wiki.csinitiative.com/display/tri/Relationship+-+User" />
<name></name>
<notes></notes>
<category-id rel="https://wiki.csinitiative.com/display/tri/Relationship+-+TaskCategory"></category-id>
<priority></priority>
@jdee
jdee / gist:786904
Created January 19, 2011 21:31
more output
[default] Provisioning enabled with Vagrant::Provisioners::ChefSolo...
[default] Importing base box 'base'...
[default] Matching MAC address for NAT networking...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 3.2.8
@jdee
jdee / gist:786686
Created January 19, 2011 19:26
output from vagrant up
[default] Copying box to temporary location...
[default] Extracting box...
[default] Verifying box...
[default] Cleaning up downloaded box...
[default] Importing base box 'base'...
No base MAC address was specified. This is required for the NAT networking
to work properly (and hence port forwarding, SSH, etc.). Specifying this
MAC address is typically up to the box and box maintiner. Please contact
the relevant person to solve this issue.
@jdee
jdee / boot.rb
Created January 13, 2011 13:37
an entire Rails 3 boot.rb file
require 'rubygems'
# Set up gems listed in the Gemfile.
gemfile = File.expand_path('../../Gemfile', __FILE__)
begin
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
rescue Bundler::GemNotFound => e
STDERR.puts e.message
@jdee
jdee / gist:740531
Created December 14, 2010 14:55
environment
jdee@fatman:webapp$ env | grep TRI
TRISANO_URL=http://localhost:8080
TRISANO_UID=trisano_user
TRISANO_ID=trisano_user
@jdee
jdee / gist:670875
Created November 10, 2010 13:56
nslookup results
jdee@fatman:~$ nslookup
> github.com
Server: 192.168.2.1
Address: 192.168.2.1#53
Non-authoritative answer:
Name: github.com
Address: 207.97.227.239
> server ns1.slicehost.net
Default server: ns1.slicehost.net
@jdee
jdee / phantom tomcat
Created October 29, 2010 18:34
ps output from locust
jdee@locust:~> ps -e | grep java
10483 ? 00:31:08 java
jdee@locust:~> ps -flp 10483
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
0 S root 10483 1 0 80 0 - 615558 futex_ Oct22 ? 00:31:08 /usr/
jdee@locust:~> ps uaxwww | grep java
root 10483 0.3 2.5 2462232 211884 ? Sl Oct22 31:08 /usr/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/csi/production/package/hudson/standard/apache-tomcat-6.0.18/conf/logging.properties -Djava.endorsed.dirs=/opt/csi/production/package/hudson/standard/apache-tomcat-6.0.18/endorsed -classpath :/opt/csi/production/package/hudson/standard/apache-tomcat-6.0.18/bin/bootstrap.jar -Dcatalina.base=/opt/csi/production/package/hudson/standard/apache-tomcat-6.0.18 -Dcatalina.home=/opt/csi/production/package/hudson/standard/apache-tomcat-6.0.18 -Djava.io.tmpdir=/opt/csi/production/package/hudson/standard/apache-tomcat-6.0.18/temp org.apache.catalina.startup.Boo