Skip to content

Instantly share code, notes, and snippets.

View kriswill's full-sized avatar

Kris Williams kriswill

View GitHub Profile
@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
@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 / 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 / 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 / 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
Verifying that +krisw is my blockchain ID. https://onename.com/krisw
@kriswill
kriswill / controllers.application.js
Created August 25, 2016 16:40
Testing saving Twiddle to Gist
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@kriswill
kriswill / terminfo.sh
Last active September 10, 2016 06:57
Prints information about the terminal application you are using
# prints information about the terminal application you are using
function terminfo() {
# make OPTIND local to prevent odd behaviour with getops when running a function multiple times
local OPTIND v
local _verbose=0
while getopts "v" OPTION
do
case $OPTION in
@kriswill
kriswill / link-gliffy-modules.sh
Last active October 12, 2016 18:40
Re-link all @gliffy/ember-* modules with NPM
@kriswill
kriswill / apk-info-json.sh
Created October 9, 2017 19:24
Parse alpine apk package versions into a JSON blob
node -p "require('child_process').exec('apk info --verbose', (err, out) => { packages = {}; out.split('\n').filter(line => line.length).forEach(line => { const parts = line.split('-'); packages[parts[0]] = line.replace(parts[0]+'-', ''); }); console.log(JSON.stringify(packages, null, 2)); process.exit(0)}); '';"