Skip to content

Instantly share code, notes, and snippets.

Kenny Smith kjs3

Block or report user

Report or block kjs3

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
View gist:000a61c7911329d81ca9
$ rvm install 2.2.0
ruby-2.2.0 - #removing src/ruby-2.2.0 - please wait
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-2.2.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/kjs3/.rvm/rubies/ruby-2.2.0, this may take a while depending on your cpu(s)...
ruby-2.2.0 - #downloading ruby-2.2.0, this may take a while depending on your connection...
@kjs3
kjs3 / gist:65a435f3926ffdb4dd4c
Created Jun 17, 2014
Node-sass failing to install on Heroku
View gist:65a435f3926ffdb4dd4c
13682 info install uglify-js@2.4.14
13683 info postinstall uglify-js@2.4.14
13684 info build /tmp/build_321c4633-54c2-4d0a-aff0-335d6f5953b0/node_modules/gulp-uglify/node_modules/uglify-js/node_modules/async
13685 info preinstall async@0.2.10
13686 verbose linkStuff [ false,
13686 verbose linkStuff false,
13686 verbose linkStuff false,
13686 verbose linkStuff '/tmp/build_321c4633-54c2-4d0a-aff0-335d6f5953b0/node_modules/gulp-uglify/node_modules/uglify-js/node_modules' ]
13687 info linkStuff async@0.2.10
13688 verbose linkBins async@0.2.10
@kjs3
kjs3 / gist:dad23fe79567219c85a7
Created Jun 17, 2014
Heroku fails to install node-sass
View gist:dad23fe79567219c85a7
13740 info build /tmp/build_321c4633-54c2-4d0a-aff0-335d6f5953b0/node_modules/gulp-sass
13741 info preinstall gulp-sass@0.7.2
13742 verbose linkStuff [ false,
13742 verbose linkStuff false,
13742 verbose linkStuff false,
13742 verbose linkStuff '/tmp/build_321c4633-54c2-4d0a-aff0-335d6f5953b0/node_modules' ]
13743 info linkStuff gulp-sass@0.7.2
13744 verbose linkBins gulp-sass@0.7.2
13745 verbose linkMans gulp-sass@0.7.2
13746 verbose rebuildBundles gulp-sass@0.7.2
@kjs3
kjs3 / gist:11222167
Created Apr 23, 2014
Chef-server install error on Ubuntu 12.04
View gist:11222167
Recipe: chef-server::bootstrap
* execute[verify-system-status] action run
================================================================================
Error executing action `run` on resource 'execute[verify-system-status]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '7'
@kjs3
kjs3 / US cities by state
Last active Jan 4, 2016
NSDictionary with state keys to NSArrays of NSString cities
View US cities by state
@{
@"ALABAMA":
@[@"ABBEVILLE",@"ADAMSVILLE",@"ADDISON",@"AKRON",@"ALABASTER",@"ALBERTVILLE",@"ALEXANDER CITY",@"ALEXANDRIA",@"ALICEVILLE",@"ALLGOOD",@"ALTOONA",@"ANDALUSIA",@"ANDERSON",@"ANNISTON",@"ARAB",@"ARDMORE",@"ARGO",@"ARITON",@"ARLEY",@"ASHFORD",@"ASHLAND",@"ASHVILLE",@"ATHENS",@"ATMORE",@"ATTALLA",@"AUBURN",@"AUTAUGAVILLE",@"AVON",@"BABBIE",@"BAILEYTON",@"BANKS",@"BAY MINETTE",@"BAYOU LA BATRE",@"BEAR CREEK",@"BEATRICE",@"BEAVERTON",@"BELK",@"BENTON",@"BERRY",@"BESSEMER",@"BILLINGSLEY",@"BIRMINGHAM",@"BLACK",@"BLOUNTSVILLE",@"BLUE MOUNTAIN",@"BLUE RIDGE",@"BLUE SPRINGS",@"BOAZ",@"BOLIGEE",@"BON AIR",@"BRANCHVILLE",@"BRANTLEY",@"BRENT",@"BREWTON",@"BRIDGEPORT",@"BRIGHTON",@"BRILLIANT",@"BROOKSIDE",@"BROOKWOOD",@"BRUNDIDGE",@"BUTLER",@"BYNUM",@"CAHABA HEIGHTS",@"CALERA",@"CAMDEN",@"CAMP HILL",@"CARBON HILL",@"CARDIFF",@"CAROLINA",@"CARROLLTON",@"CASTLEBERRY",@"CEDAR BLUFF",@"CENTER POINT",@"CENTRE",@"CENTREVILLE",@"CHALKVILLE",@"CHATOM",@"CHELSEA",@"CHEROKEE",@"CHICKASAW",@"CHILDERSBURG",@"CITRO
@kjs3
kjs3 / gist:6401062
Created Aug 31, 2013
fork is making irb unresponsive
View gist:6401062
# This makes irb sluggish and randomly unresponsive
if fork
puts "Hello from parent process #{Process.pid}"
else
puts "Hello from child process #{Process.pid}"
# I thought the child process would exit automatically here?
end
@kjs3
kjs3 / bb_multiple_render_problems.js.coffee
Created Oct 6, 2012
Backbone code that's rendering one of the models 4 extra times.
View bb_multiple_render_problems.js.coffee
# config file
window.App =
Models: {}
Collections: {}
Routers: {}
Views: {}
init: ->
@service_providers = new App.Collections.ServiceProvidersCollection()
@service_providers.fetch
View redmine_nginx
upstream unicorn_projects {
server unix:/home/inside/sites/redmine/shared/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name redmine.inside;
root /home/inside/sites/redmine/current/public;
View inside_nginx
upstream unicorn {
server unix:/home/inside/sites/inside/shared/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name inside;
root /home/inside/sites/inside/current/public;
You can’t perform that action at this time.