Skip to content

Instantly share code, notes, and snippets.

View canering's full-sized avatar

eg canering

View GitHub Profile
@canering
canering / installed.markdown
Created September 3, 2017 06:11 — forked from gaspanik/installed.markdown
ST3: Installed package list on my Sublime Text 3.

Installed packages

Installed package list on my Sublime Text 3. Exclude Themes and ColorSchemes.

2016.02.29 update

  • AdvancedNewFile
  • All Autocomplete
  • AndyPHP
  • AngularJS
@canering
canering / gist:71a939d7666e3caab206bd9bd869ae46
Created February 2, 2017 14:12 — forked from kcassam/gist:6707152
Make spotlight index any file

Make spotlight index any file

Problem :

Spotlight was not searching into certain files, even if simple text files (in my case .INI files)

Solution

Easy solution

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

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 o

@canering
canering / cask_upgrade.sh
Created December 6, 2016 01:57
Script upgrading outdated brew casks
#!/usr/bin/env bash
(set -x; brew update;)
(set -x; brew cleanup;)
(set -x; brew cask cleanup;)
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`

Keybase proof

I hereby claim:

  • I am canering on github.
  • I am canering (https://keybase.io/canering) on keybase.
  • I have a public key ASAoZngmXfS-_-gQAlEAtvmOzG7o7Kx8Tt6VTgCEgfLoVAo

To claim this, I am signing this object:

@canering
canering / fix_github_https_repo.sh
Created November 30, 2016 05:49 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@canering
canering / brew-install-missing-unix-tools
Created October 11, 2016 17:31 — forked from evnm/brew-install-missing-unix-tools
A brew command to install useful tools missing from Mac OS X
# Legitimately-useful utilities missing from OS X.
brew install wget watch gnu-sed coreutils
# Up-to-date versions of included tools.
brew install git emacs
# Just for fun.
brew install fortune cowsay
@canering
canering / hook_up_homebrew.sh
Created October 4, 2016 05:28 — forked from karmi/hook_up_homebrew.sh
Hook up your Homebrew installed with curl to your Github fork
# Install Homebrew
#
mkdir -p /usr/local
mkdir -p /usr/local/bin
sudo chown -R $USER /usr/local
cd $HOME && mkdir -p homebrew
curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
ln -nfs $HOME/homebrew/bin/brew /usr/local/bin/
brew update
@canering
canering / install_brew.sh
Created October 4, 2016 05:25 — forked from jeremydw/install_brew.sh
Install Brew into your home directory
cd ~
mkdir homebrew && curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C homebrew
# Add the following to your .bash_profile
export PATH=$HOME/homebrew/bin:$PATH
sudo ln -s ~/homebrew/include/ /usr/local/include
sudo cp ~/homebrew/lib/lib* /usr/local/lib/
brew install redis
@canering
canering / brewinst.sh
Created October 4, 2016 05:24 — forked from lojikil/brewinst.sh
backup copy of a single-user `brew` installation
# change to whatever location to where homebrew is installed
if [ -z "$HOMEBREW_HOME" ]; then
export HOMEBREW_HOME=$HOME/homebrew
echo "HOMEBREW_HOME=$HOME/homebrew" >> ~/.profile
fi
# install homebrew for single user
if [ ! -d "$HOMEBREW_HOME" ]; then
mkdir -p $HOMEBREW_HOME && curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C $HOMEBREW_HOME
fi