Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
#!/bin/sh | |
#Yes, there is no six | |
hosts=(pipe1 pipe2 pipe3 pipe4 pipe5 pipe7 pipe8 pipe9) | |
names=(pipe1 pipe2 pipe3 pipe4 pipe5 pipe7 pipe8 pipe9) | |
sessions=(1 2 3 4 5 7 8 9) | |
tmux new-session -d -s pipelines | |
i=0 |
#!/usr/bin/env python | |
# Written by @aknin | |
# https://gist.github.com/gists/2290744 | |
# This code has been placed in the public domain, no strings attached either way. | |
from __future__ import print_function | |
import platform | |
import os |
[alias] | |
ci = commit -a | |
cl = clean -dfx | |
cc = cherry-pick | |
ff = merge --ff-only | |
fx = commit -a --amend -C HEAD | |
ix = diff --cached | |
st = status -sb | |
fap = fetch --all --prune | |
hist = log --all --graph --color=always --pretty='[%C(cyan)%h%Creset]%C(bold cyan)%d%Creset %s' |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
use strict; | |
use warnings; | |
# {{{ DOCUMENTATION | |
##### | |
# A lot of code borrowed from the prowlnotify.pl script at | |
# http://www.denis.lemire.name/2009/07/07/prowl-irssi-hack/ | |
# and pushovernotify.pl (Daniel Johansson <[email protected]>) | |
# and http://www.geekfarm.org/wu/muse/scripts/growl-notify.txt | |
# |
#!/bin/bash | |
tmup () | |
{ | |
echo -n "Updating to latest tmux environment..."; | |
export IFS=","; | |
for line in $(tmux showenv -t $(tmux display -p "#S") | tr "\n" ","); | |
do | |
if [[ $line == -* ]]; then | |
unset $(echo $line | cut -c2-); |
#!/bin/sh | |
sleep 2 | |
# Get screen width | |
SCRN_WIDTH=`xrandr --prop | grep "^Screen 0" | cut -d, -f2 | awk '{print $2}'` | |
#HALF_SCRN=`dc -e "$SCRN_WIDTH 2 / p"` | |
DZEN_WIDTH=740 | |
# Settings |
Update (2019-05-06): The Broadcom wireless card in the MacBook Pro works and can be crammed into the Air.
Update (2015-12-04): This document used to be very lengthy as there were many manual steps required to get OpenBSD and Mac OS X working together through Boot Camp Assistant (BCA), which created a hybrid MBR and enabled a legacy BIOS emulation mode which older versions of Windows (and OpenBSD) required. Newer Macbooks stopped supporting older versions of Windows through BCA and now only support Windows 10 since it uses GPT and UEFI. However, now that newer versions of OpenBSD support GPT and UEFI, Boot Camp Assistant is no longer needed at all to boot OpenBSD.
OpenBSD works pretty well on at least the Mid-2011 Macbook Air (A1370, SandyBridge) and Mid-2013 Macbook Air (Haswell). The new KMS code in 5.4 brings up the MBA's eDP display in 1366x768 with backlight
#!/bin/sh | |
# iohyve v0.2.5 2015/05/06 "ALL HAIL LINUS edition" | |
# Process command line | |
__parse_cmd () { | |
while [ $# -gt 0 ] ; do | |
case "$1" in | |
version) __version | |
exit |