Skip to content

Instantly share code, notes, and snippets.

View cabrinha's full-sized avatar

cabrinha

  • California
View GitHub Profile

Mac OS X 10.13 High Sierra

Custom recipe to get OS X 10.11 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a fresh install. On average, I reinstall each computer from scratch just... whenever, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@cabrinha
cabrinha / idk.perl
Created March 12, 2015 19:39
Make perl say yes to all.
perl -MCPAN -e 'my $c = "CPAN::HandleConfig"; $c->load(doit => 1, autoconfig => 1); $c->edit(prerequisites_policy => "follow"); $c->edit(build_requires_install_policy => "yes"); $c->commit'
@cabrinha
cabrinha / whoops
Last active August 29, 2015 14:17
Bootable, Redundant Backup?
sfdisk -d /dev/sda > part_table
sfdisk /dev/sdb < part_table --force
reboot
grub-install --recheck --root-directory=/backup /dev/sdb
mkfs.ext4 /dev/sdb1,2,5 (sdb3 is swap, sdb4 is "Extended")
@cabrinha
cabrinha / kill_who.bash
Created March 15, 2015 01:45
Check if a user is logged in and log them out.
#!/usr/bin/env bash
set -e
username=$1
w | awk '{print $1}' | grep $username
if [[ $? == 0 ]];
then kill -HUP $PPID;
fi
@cabrinha
cabrinha / Xdefaults
Created March 20, 2015 22:01
Will's Xdefaults
urxvt.cursorBlink: 1
URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select
URxvt.depth: 32
URxvt.saveLines:0
URxvt.scrollBar: false
URxvt.iconFile: /home/william/.local/share/icons/Ursa icon theme/128x128/apps/terminator.png
urxvt.font: xft:Ubuntu Mono:size=10
!main colorscheme
urxvt*cursorColor: #DCDCCC
urxvt.background: #383838
@cabrinha
cabrinha / .tmux.conf
Created March 20, 2015 22:01
Will's tmux.conf
unbind C-b
set -g prefix C-a
bind-key C-b send-prefix
bind-key C-a last-window
set-option -g history-limit 999999
set-option -g aggressive-resize on
@cabrinha
cabrinha / auto-tmux.sh
Created March 20, 2015 22:02
Will's auto-tmux.conf
#!/bin/bash
input="$1"
sessions=`tmux ls|awk -F ':' '{print $1}'`
detached_sessions=`tmux ls | grep -v attached | awk -F ':' '{print $1}' | egrep -v ^$TMUX_MASTER`
if [[ -z $sessions ]]; then
if [[ "$1" == "cmus" ]]; then
tmux -2 new -s $TMUX_MASTER \; new-window -t 0 -n CMus "cd ~/Playlists && cmus"
@cabrinha
cabrinha / hellos.pl
Last active August 29, 2015 14:17
store hellos in another file
chomp( my @hellos = do { local @ARGV = "filename"; <> } ); # one hello per line
@cabrinha
cabrinha / su-shee.txt
Created March 25, 2015 16:03
step 1 2 and 3
Su-Shee | yuppie: install it, and then make things work in the following order: │ alnewkirk
│ | create an slite db, use it on the commandline, fill a little example data, │ aloelight
│ | query it. then write a standalone script connecting to your sqlite with │ alpha-
│ | DBI and query via DBI. _then_ connect it to your bot thingie.
@cabrinha
cabrinha / is_this_thing_on.txt
Created March 25, 2015 23:08
Thanks Sarah!
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.22 (GNU/Linux)
hQEMA/SYQyhRMHT/AQf+L4PWlxBELXBM3N7HwquskpZFKdyhId+2/MWXP6xMl7mh
4fcTASlcdNnZlM2dPe0incKcKlBG8aiINdzNJkOFCq+d4nqkopB7dNPlpgsdq7rw
Rv7k5ntr+wLEON2jSDXD3sEm5+7F1T60tVtKVeYM2k4pl5PAV+mruuM/V1fx70fk
Y7ki2FHLk+k6QvHIfJyNWKrIY6oA24lCbP8gbpbgMxD/Oanm0Zim99LhVLMa0ApZ
jJSktabIMSxGiYRcPo97VE6hsqiRPbK5o4QyZ++WARxzL2GeZhai6AJXNbYTF/Bg
u+RxI1LEsfP7wP0/WYsd0i7MW5xe+Ev/8nlS1xiCz9LpAf0TT0U+VddJkifRPJim
kzloEWPTUxBMHU1H9oso2PULkfH27Hv3IFT4koZi4UTLLzPFVo+i82OVKrO+eQRe