Skip to content

Instantly share code, notes, and snippets.

;; -*-lisp-*-
;;
;; Here is a sample .stumpwmrc file
(load-module "cpu")
(load-module "net")
(in-package :stumpwm)
(run-shell-command "/usr/bin/xrandr --auto --output VBOX0 --left-of VBOX1" t)
(run-shell-command "/usr/bin/xhost +" t)
@halcyon
halcyon / .zshrc
Last active August 29, 2015 14:07
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="halcyon"
# Example aliases
description "redis server"
start on runlevel [2345]
stop on shutdown
exec sudo -u redis /usr/bin/redis-server /etc/redis/redis.conf
respawn
@halcyon
halcyon / init.el
Last active August 29, 2015 14:07
;; emacs kicker --- kick start emacs setup
;; Copyright (C) 2010 Dimitri Fontaine
;;
;; Author: Dimitri Fontaine <[email protected]>
;; URL: https://github.com/dimitri/emacs-kicker
;; Created: 2011-04-15
;; Keywords: emacs setup el-get kick-start starter-kit
;; Licence: WTFPL, grab your copy here: http://sam.zoy.org/wtfpl/
;;
;; This file is NOT part of GNU Emacs.
@halcyon
halcyon / .tmux.conf
Last active November 11, 2015 22:09
set-option -g default-shell /usr/local/bin/zsh
set-option -g history-limit 100000
setw -g mode-keys vi
bind [ copy-mode
unbind ]
bind ] paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/local/bin/stumpwm 100
@halcyon
halcyon / xrandr
Created November 14, 2014 00:53
xrandr
/usr/bin/xrandr --auto --output VBOX0 --left-of VBOX1
@halcyon
halcyon / iterm-tmux
Last active October 19, 2015 11:29
iterm tmux config
/usr/local/bin/zsh -c "/usr/local/bin/tmux -q has-session && exec tmux attach-session -d || exec tmux new-session -n$USER -s$USER@$HOSTNAME"
/usr/local/bin/zsh -l -c "/usr/local/bin/tmux -q has-session && exec /usr/local/bin/tmux attach-session -d || exec /usr/local/bin/tmux new-session -n$USER -s$USER@$HOSTNAME"

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@halcyon
halcyon / fix-slow-emacs.sh
Created November 26, 2015 19:09
emacs is slow to start without an FQDN
sudo scutil --set HostName myretina.local