Skip to content

Instantly share code, notes, and snippets.

Mac 'Wednesday' setup history

All (well, most of it) the apps & tools I installed on my Mac from clean install until now

Install xCode

Install Homebrew (check website for latest install code)

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

@nealnote
nealnote / osxsetup.txt
Last active August 29, 2015 14:06
osx set up
#setting
# Enable full keyboard access for all controls
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons
defaults write com.apple.finder QuitMenuItem -bool true
@sweetdistraction
sweetdistraction / textexpander_gen.rb
Last active August 29, 2015 14:16 — forked from ttscoff/textexpander_gen.rb
Original version of this script http://brettterpstra.com/2013/01/04/mass-creating-textexpander-snippets/ . I add the label snippets so this scripts need three row of .CSV files with label snippets on the third row.
#!/usr/bin/ruby
require 'csv'
require 'erb'
require 'cgi'
if ARGV.length == 2
input_csv = ARGV[0]
output_te = ARGV[1]
unless output_te =~ /\.textexpander$/
puts "Second argument must have a '.textexpander' extension."
@geeknees
geeknees / make-flashlight-work-on.yosemite.md
Last active September 14, 2015 07:10 — forked from selaromi/make-flashlight-work-on.yosemite.md
Steps to make Flashlight work on 10.10.4 (doesn't work for El Capitan)

Make Flashlight work on 10.10.4

  1. Install SIMBL http://culater.net/software/SIMBL/SIMBL.php
  2. Copy SpotlightSIMBL.bundle to /Library/Application Support/SIMBL/Plugins/ (a)
  3. Copy Flashlight.osax to ~/Library/ScriptingAdditions/ (b)
  4. Disable Flashlight
  5. Enable Flashlight
  6. Open Script Editor on your Mac (look for "Script Editor In Spotlight") and paste the following code (don't change Snow Leopard for Yosemite)
tell application "Spotlight" to inject SIMBL into Snow Leopard
@Jacob-Vlijm
Jacob-Vlijm / paste_snippets.py
Last active September 22, 2015 23:20
Script to paste textual snippets in applications that past with the key combination Ctrl+V. It needs xsel and xdotool to be installed
#!/usr/bin/env python3
"""
Copyright (C) 2014 Jacob Vlijm
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or any later version. This
program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details. You
@bgreenlee
bgreenlee / gist:1328254
Last active September 27, 2015 20:38
Words with 6 consecutive consonants #words
$ egrep -i "[bcdfghjklmnpqrstvwxz]{6,}" /usr/share/dict/words
archchronicler
bergschrund
Eschscholtzia
fruchtschiefer
latchstring
lengthsman
Nachschlag
postphthisic
veldtschoen
@davidnunez
davidnunez / quix.txt
Created January 26, 2012 14:57
davidnunez quix
@Text tools
@Markdown and text manipulation tools
ml javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20Link','['+s+']('+location+')')})();void(0) Copy selected text as Markdown link
mt javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20Title','['+document.title+']('+location+')')})();void(0) Copy title as Markdown link
mu javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20URL','('+location+')')})();void(0) URL as markdown link
mc javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20Copy','['+document.title+']('+location+')\n\n>'+s)})();void(0) Copy selected text as quote with title url in markdown
tc javascript:(function(s){try{s=document.selection.crea
@giratikanon
giratikanon / gist:2308213
Created April 5, 2012 05:25
Save a Chrome page as a keyworded custom search in Alfred
on alfred_script(q)
set theURL to ""
set pageName to ""
tell application "Google Chrome"
set theURL to URL of active tab of window 1
set pageName to title of active tab of window 1
end tell
tell application "Safari"
if not (exists (document 1)) then
tell application "Safari" to activate
@niepi
niepi / brettquix.txt
Created June 28, 2012 16:50 — forked from ttscoff/brettquix.txt
Brett's Quix File
@Brett's searches
@Brett's custom searches
go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo)
b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo)
grep https://www.cueup.com/?q=%s&fq=1 Greplin
ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo)
bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo)
gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything)
hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints
mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software)
@ChaseFlorell
ChaseFlorell / invoke-outHtml.ps1
Last active October 9, 2015 01:31
A PowerShell document generator Influenced by Vegard Hamar's [Out-Html](http://poshcode.org/587)
Import-Module MyAwesomeModule
.\out-html.ps1 -moduleName 'MyAwesomeModule' -outputDir "path\to\output"