Skip to content

Instantly share code, notes, and snippets.

View jswrenn's full-sized avatar
🦀

Jack Wrenn jswrenn

🦀
View GitHub Profile
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
$ . ~/.nvm/nvm.sh
$ nvm install 0.10.32
$ nvm use 0.10.32
$ foreman run npm install --python=python2.7
$ foreman start
--
-- xmonad example config file for xmonad-0.9
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
-- NOTE: Those updating from earlier xmonad versions, who use
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar
#lang racket
;;; Empty list base-case. Use as a basis for 'prepend'
(define (empty selector)
(selector null null #t))
;;; Prepend : prepend given element to list. use 'empty' as basis
(define (prepend element list)
(lambda (selector)
(selector element list #f)))
#!/bin/sh
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
if [ -d "$cachedir" ]; then
cache=$cachedir/dmenu_run
else
cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~
fi
(
BATT=`acpi -b`
BATT_PERCENT=`echo $BATT | awk -F'[, ]' '{print $5}'`
--
-- xmonad example config file for xmonad-0.9
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
-- NOTE: Those updating from earlier xmonad versions, who use
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar
@jswrenn
jswrenn / xmonad.hs
Created January 26, 2016 20:12 — forked from anonymous/xmonad.hs
-- xmonad example config file for xmonad-0.9
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
-- NOTE: Those updating from earlier xmonad versions, who use
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar
-- setup functions (dzen, xmobar) probably need to change
@jswrenn
jswrenn / xmonad.hs
Last active January 26, 2016 20:16 — forked from anonymous/xmonad.hs
-- xmonad example config file for xmonad-0.9
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
-- NOTE: Those updating from earlier xmonad versions, who use
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar
-- setup functions (dzen, xmobar) probably need to change
@jswrenn
jswrenn / dmenu_run
Last active January 26, 2016 22:49
/bin/dmenu_run
#!/bin/sh
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
if [ -d "$cachedir" ]; then
cache=$cachedir/dmenu_run
else
cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~
fi
(
BATT=`acpi -b`
BATT_PERCENT=`echo $BATT | awk -F'[, ]' '{print $5}'`
@jswrenn
jswrenn / xmonad.hs
Last active January 26, 2016 23:28
for james
--
-- xmonad example config file for xmonad-0.9
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
-- NOTE: Those updating from earlier xmonad versions, who use
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar

Keybase proof

I hereby claim:

  • I am jswrenn on github.
  • I am jsw (https://keybase.io/jsw) on keybase.
  • I have a public key whose fingerprint is 244C D5B3 FA42 514B D48A 1175 4627 A5D1 337F 4E64

To claim this, I am signing this object: