Skip to content

Instantly share code, notes, and snippets.

View jwlms's full-sized avatar

Joshua Williams jwlms

View GitHub Profile
javascript:(function() { []'.outdated-comment'), function(element) {
element.className += ' open';
element.className += ' Details--on';
}); } ())
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM='gnome-256color';
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM='xterm-256color';
prompt_git() {
local s='';
local branchName='';
==> db1: Machine booted and ready!
==> db1: Checking for guest additions in VM...
==> db1: [vagrant-hostsupdater] Checking for host entries
==> db1: Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/sbin/ifdown eth1 2> /dev/null
Stdout from the command:
jwlms / .rvmrc
Created January 6, 2016 00:24
silly nvm
# `rvm use default` to keep global gemset set to global
rvm use default && nvm use
jwlms / gist:c1eb2bc7d085b6912f5f
Created November 10, 2015 21:48
harp post link generation
each report, slug in public.reports._data
a(href="/reports/#{ slug }")
h2= report.title
find . -name "*[format]" | while read line; do expand -t 4 $line > $; mv $ $line; done
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
return 301$request_uri;
server {
#listening on port 443
listen 443 ssl;
#set site root
root /var/www/;
index index.php index.html;
#set key locations
ssl_certificate /etc/sslmate/;
sudo wget -P /etc/apt/sources.list.d
sudo wget -P /etc/apt/trusted.gpg.d
sudo apt-get update
sudo apt-get install sslmate
gulp.task('test', function() {
return browserify().bundle()