Skip to content

Instantly share code, notes, and snippets.

View s10wen's full-sized avatar
💭
🦄

Simon Owen s10wen

💭
🦄
View GitHub Profile
@s10wen
s10wen / gist:3089140
Last active October 7, 2015 02:17
Terminal - Useful Commands

Disable the dashboard in Mac OS X:

defaults write com.apple.dashboard mcx-disabled -boolean YES

Kill the dock:

killall Dock

Kill spotlight:

@s10wen
s10wen / gist:3097009
Created July 12, 2012 09:29
Upgrade Browser Notification Bar
HTML:
<!--[if lt IE 8]>
<p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
<![endif]-->
CSS:
/* Upgrade Browser Prompt */
@s10wen
s10wen / Key Bindings - User
Last active October 7, 2015 14:08
Sublime Text 2 - Key Bindings - User
[
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["super+b"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+shift+t"], "command": "delete_trailing_spaces" }
]
@s10wen
s10wen / gist:3180929
Last active October 7, 2015 14:47
Useful Paths

Local Config Paths

hosts:

/private/etc/hosts

(for windows, right click > permissions > allow > apply)
C:\Windows\System32\Drivers\etc

(for Virtual Box to see mac dev sites add)

@s10wen
s10wen / Sublime Text 3 - Packages
Last active October 15, 2018 10:26
Sublime Text 3 - Packages
# Current Setup 2018/10/15
# Automated install file:
# https://github.com/s10wen/dotfiles/blob/master/init/Package%20Control.sublime-settings
AdvancedNewFile
AlignTab
Babel
Bracket Highlighter
DiffView
Dotfiles Syntax Highlighting
@s10wen
s10wen / gist:3415108
Created August 21, 2012 12:51
Mac OS X - Useful Shortcuts
cmd + ` = Switch Windows in Chrome
shift + cmd + . = show / hide system files (Requires TotalFinder)
@s10wen
s10wen / siaf
Last active October 13, 2015 05:18
Sublime Text 2 - Snippets
# Self Invoking Anonymous Function:
<snippet>
<content><![CDATA[(function() \{
$0
\})();]]></content>
<tabTrigger>siaf</tabTrigger>
<scope>source.js,source.js.embedded.html</scope>
<description>Self Invoking Anonymous Function</description>
</snippet>
arr=$(cat list.txt)
filen="<snippet>\n\t<content>x</content>\n\t<description>x</description>\n\t<scope>source.css</scope>\n\t<tabTrigger>x</tabTrigger>\n</snippet>"
for x in $arr
do
echo "$filen" | sed "s/x/$x/g" > $x.sublime-snippet
done
@s10wen
s10wen / gist:6027290
Last active December 19, 2015 22:28
Relates to #2043
simons-MacBook-Air:~ simonowen$ source /Users/simonowen/.rvm/scripts/rvm
simons-MacBook-Air:~ simonowen$ rvm --debug requirements ruby
rvm_autolibs_flag=enable
Installing requirements for osx, might require sudo password.
requirements code for osx loaded
brew seems to be writable
Install custom packages: homebrew/dupes.
Found required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libksba, openssl.
Custom packages: homebrew/dupes.
Updated Homebrew from 26a0b354 to 27b45865.
@s10wen
s10wen / Settings - User
Last active October 15, 2018 09:11
Sublime Text - Settings - User
Moved to my dotfiles repo:
https://github.com/s10wen/dotfiles/blob/master/init/Preferences.sublime-settings