Skip to content

Instantly share code, notes, and snippets.

View canering's full-sized avatar

eg canering

View GitHub Profile
@canering
canering / ChromeAppDownloader.py
Created February 22, 2019 13:17 — forked from arulrajnet/ChromeAppDownloader.py
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
# -*- coding: utf-8 -*-
"""
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
Referred from http://chrome-extension-downloader.com/how-does-it-work.php
"""
from __future__ import division
import argparse
import requests
@canering
canering / Automator Workflow.sublime-build
Created October 22, 2018 21:38 — forked from ttscoff/Automator Workflow.sublime-build
A script to take input on STDIN and update a specified Automator (OS X) workflow action with it
{
"shell_cmd": ["cat", "$file", "|", "/usr/bin/ruby", "/Users/ttscoff/scripts/update_workflow.rb"]
}
@canering
canering / gist:d4e56a5162e17a28b6890839dc216462
Created November 9, 2017 11:28 — forked from reganjohnson/gist:1f6d93c4e3d09e4d5903
Set Default Text Editor as Sublime 3
First, let's create the $ subl command
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Another option is to use duti (http://duti.org / https://github.com/moretension/duti).
Run brew install duti, save a file like this as ~/.duti:
com.sublimetext.3 public.plain-text all
com.sublimetext.3 public.unix-executable all
@canering
canering / a-new-mac-setup.md
Created October 2, 2017 11:57 — forked from maxfenton/a-new-mac-setup.md
System setup stuff for a new mac

New computer setup

  • a/o 2016-05-21 *

--

Format the drive

  1. Restart with Cmd-R or Cmd-D
  2. Erase drive / 3x if second-hand
  3. Reinstall MacOS
@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`
@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