Skip to content

Instantly share code, notes, and snippets.

View s10wen's full-sized avatar
💭
🦄

Simon Owen s10wen

💭
🦄
View GitHub Profile
@s10wen
s10wen / gist:c555e0c1e3815ebcff15
Created May 22, 2014 13:55
.bash_prompt config
PS1="\[\e]2;$PWD\[\a\]\[\e]1;\]$(basename "$(dirname "$PWD")")/\W\[\a\]${BOLD}\$(usernamehost)\[$GREEN\]\w\$(git_info)\[$WHITE\]\n\n༼ つ ◕_◕ ༽つ⚡ \[$RESET\]"
Gives you:
https://www.flickr.com/photos/simonowendesign/14244272004/
@s10wen
s10wen / gist:8805508
Last active August 29, 2015 13:56
Potential Devices

Re: https://twitter.com/s10wen/status/430702763719536641

https://twitter.com/s10wen/status/431714041577635840

<iframe class="vine-embed" src="https://vine.co/v/MB6z1h0vqBa/embed/simple" width="600" height="600" frameborder="0"></iframe><script async src="//platform.vine.co/static/scripts/embed.js" charset="utf-8"></script> <iframe class="vine-embed" src="https://vine.co/v/MB6uw5YZjvg/embed/simple" width="600" height="600" frameborder="0"></iframe><script async src="//platform.vine.co/static/scripts/embed.js" charset="utf-8"></script>
@s10wen
s10wen / gist:8578389
Created January 23, 2014 13:26
git stash discussion

I'm working on a project that involves theming:

https://github.com/mauricecruz/zero-base-themes/

The main repo has a file that's pointing to 'main-theme'.

I'm working locally on 'my-new-theme'.

In the main repo the file that includes the path to 'main-theme', locally I need to have as 'my-new-theme'.

@s10wen
s10wen / gist:8530885
Last active October 15, 2018 10:14
Sublime Text - Key Bindings
Moved to:
https://github.com/s10wen/dotfiles/blob/master/init/Default%20(OSX).sublime-keymap
@s10wen
s10wen / gist:7317734
Created November 5, 2013 11:29
24pullrequests errors
~/github/24pullrequests on master
$ bundle exec rake db:create:all
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (fe80::1) and accepting
@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
@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.
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 / 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>
@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)