Skip to content

Instantly share code, notes, and snippets.

View kriswill's full-sized avatar

Kris Williams kriswill

View GitHub Profile
@kriswill
kriswill / kris.tmTheme
Created July 17, 2012 01:52
Kris' Railscast theme - modified for SublimeText2
<?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>name</key>
<string>Kris - based on Railscasts</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@kriswill
kriswill / Smarty.tmLanguage
Created May 11, 2012 20:42
Smarty textmate syntax file, modified to work with SublimeText 2
<?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>fileTypes</key>
<array>
<string>tpl</string>
<string>html</string>
</array>
<key>foldingStartMarker</key>
@kriswill
kriswill / chosen-ie7-prototype-js.diff
Created May 10, 2012 18:11
Chosen IE7 Prototype.js git-diff
diff --git a/chosen/chosen.proto.js b/chosen/chosen.proto.js
index e5049b0..0200299 100644
--- a/chosen/chosen.proto.js
+++ b/chosen/chosen.proto.js
@@ -408,14 +408,15 @@ Copyright (c) 2011 by Harvest
Chosen.prototype.container_mousedown = function(evt) {
var target_closelink;
if (!this.is_disabled) {
- target_closelink = evt != null ? evt.target.hasClassName("search-choice-close") : false;
+ var target = evt != null && evt.target ? $(evt.target) : null
@kriswill
kriswill / pb.sublime-project
Created September 12, 2011 19:38
pb sublime-text 2 general project file
{
"folders":
[
{
"path": "./common",
"folder_exclude_patterns": ["3rdparty"]
},
{
"path": "./includes",
"folder_exclude_patterns": ["3rdparty"]
@kriswill
kriswill / npm-install.txt
Created September 14, 2015 17:56
sails-docker-boilerplate npm install
kris git[master] ~/src/oss/sails-docker-boilerplate
→ docker-compose run sails npm install
Building sails...
Step 0 : FROM node:4.0.0
4.0.0: Pulling from library/node
8b49fe88b40b: Pull complete
20b348f4d568: Pull complete
16b189cc8ce6: Pull complete
116f2940b0c5: Pull complete
1c4c600b16f4: Pull complete
Process: MongoHub [18473]
Path: /Applications/MongoHub.app/Contents/MacOS/MongoHub
Identifier: com.thepeppersstudio.MongoHub
Version: 2.0.9 (2.0.9)
Code Type: X86-64 (Native)
Parent Process: launchd [129]
Date/Time: 2010-05-29 22:58:41.429 -0700
OS Version: Mac OS X 10.6.3 (10D2094)
Report Version: 6
@kriswill
kriswill / ed-gliese58.ahk
Created May 24, 2015 09:56
Elite Gliese 58/HIP 8830 macros
#SingleInstance force
^g::
setkeydelay, 10, 10
PlotStar("gliese 58", 1000)
exit
^h::
setkeydelay, 10, 10
PlotStar("hip 8830", 2100)
@kriswill
kriswill / gist:1f45dc92faa1bc4c12ab
Created March 13, 2015 19:38
minimal nvm container
FROM mini/base
RUN apk-install \
bash \
tar \
curl \
git \
c-ares \
libgcc \
libstdc++ \
@kriswill
kriswill / sane up
Last active August 29, 2015 14:15
→ sane new meetup-demo --docker -d mongo --verbose
kris ~/src/meetup-demo
→ sane up
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn ember ENOENT
at exports._errnoException (util.js:734:11)
at Process.ChildProcess._handle.onexit (child_process.js:1022:32)
at child_process.js:1114:20
at process._tickCallback (node.js:337:11)
@kriswill
kriswill / log
Created February 23, 2015 01:01
boot2docker up --verbose
→ boot2docker up --verbose
Boot2Docker-cli version: v1.5.0
Git commit: ccd9032
2015/02/22 17:00:12 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
2015/02/22 17:00:12 executing: VBoxManage guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountPrefix /
2015/02/22 17:00:12 executing: VBoxManage guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountDir /
2015/02/22 17:00:12 executing: VBoxManage sharedfolder add boot2docker-vm --name Users --hostpath /Users --automount
VBoxManage: error: Shared folder named 'Users' already exists
VBoxManage: error: Details: code VBOX_E_OBJECT_IN_USE (0x80bb000c), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "CreateSharedFolder(Bstr(name).raw(), Bstr(hostpath).raw(), fWritable, fAutoMount)" at line 1009 of file VBoxManageMisc.cpp