Skip to content

Instantly share code, notes, and snippets.

slowly working on Gue

Andrew Williams skarfacegc

slowly working on Gue
Block or report user

Report or block skarfacegc

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
skarfacegc / Array promise chain.js
Created Jul 15, 2017
Array promise chain created by skarfacegc -
View Array promise chain.js
let foo = [];
foo[0] = () => {
return new Promise((resolve,reject) => {
setTimeout(() =>{
}, 100);
skarfacegc / execa.js
Created Apr 2, 2017
execa Stream and Promise example
View execa.js
'use strict';
const execa = require('execa');
const getStream = require('get-stream');
let foo ='sleep 3 && echo foo');
skarfacegc / promise.js
Created Apr 19, 2016
promise example from erik
View promise.js
function promised(fn) {
return function(cb) {
return new Promise(function(resolve, reject) {
fn(function { cb(); resolve() });
skarfacegc /
Created Jun 5, 2015
Try to load specific version of a module
# Looks for moudules in ./lib with the name of Module-<version>.pl
# Loads the requested version when the module is 'use'ed
# Usage:
# use LoadModule MyModule => 'v1'
package LoadModule;
skarfacegc / tmuxinator config
Last active Aug 29, 2015
tmuxinator config
View tmuxinator config
name: FlowTrack2
root: ~/Development/FlowTrack2
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
skarfacegc /
Created Apr 16, 2014
My verification file

Keybase proof

I hereby claim:

  • I am skarfacegc on github.
  • I am skarfacegc ( on keybase.
  • I have a public key whose fingerprint is 6A9A 1194 E747 D4A9 F7D9 158C 6876 333E 7FB8 DEA0

To claim this, I am signing this object:

skarfacegc / tmux.conf
Last active Dec 17, 2015
my tmux.conf
View tmux.conf
# my tmux config file
# Emacs bindings
set -gw mode-keys emacs
# windows numbers start at 1
set -g base-index 1
# aliases
skarfacegc / shell
Last active Dec 15, 2015
Random useful shell commands
View shell
# list current network connections and refrsh every 2 seconds
watch "lsof -i -P |grep ESTABLISHED |awk '{printf \"%15.15s \\t%s\\n\", \$1, \$9}'"
# Show the number of commits per file
find . -type f -exec sh -c "echo {} ;git log --pretty=oneline {} |wc -l" \;
View slate.conf
config defaultToCurrentScreen true
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIconAlpha 0.5
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config secondsBetweenRepeat 0.1
# Development layout
skarfacegc / gist:4161824
Created Nov 28, 2012
Copy perl modules
View gist:4161824
$ perlbrew switch 5.14.2
$ perl -MExtUtils::Installed -E 'say for ExtUtils::Installed->new->modules' > /tmp/installed.list
$ perlbrew switch perl-5.16.0
$ perlbrew install-cpanm
$ cat /tmp/installed.list | cpanm --interactive
You can’t perform that action at this time.