The first step is optional, but assumed throughout the rest of this guide for the sake of brevity;
$ sudo -s
First we'll need to install some prerequisites
$ apt-get install autoconf automake libtool g++ gettext libglib2.0-dev libfontconfig1-dev
| require 'formula' | |
| class Vim < Formula | |
| homepage 'http://www.vim.org/' | |
| url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2' | |
| sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d' | |
| version '7.3.162' | |
| def features; %w(tiny small normal big huge) end | |
| def interp; %w(lua mzscheme perl python python3 tcl ruby) end |
| if (!someVar && !someOtherVar) { | |
| } | |
| // If we had unless, we could do this | |
| unless (someVar && someOtherVar) { | |
| } |
| <binding | |
| name="AdaptiveAuthenticationInterface" | |
| closeTimeout="00:01:00" | |
| openTimeout="00:01:00" | |
| receiveTimeout="00:10:00" | |
| sendTimeout="00:01:00" | |
| allowCookies="false" | |
| bypassProxyOnLocal="false" | |
| hostNameComparisonMode="StrongWildcard" | |
| maxBufferSize="65536" |
| class Object | |
| def local_methods(obj = self) | |
| (obj.methods - obj.class.superclass.instance_methods).sort | |
| end | |
| end |
| /* | |
| You can now create a spinner using any of the variants below: | |
| $("#el").spin(); // Produces default Spinner using the text color of #el. | |
| $("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el. | |
| $("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color). | |
| $("#el").spin({ ... }); // Produces a Spinner using your custom settings. | |
| $("#el").spin(false); // Kills the spinner. |
| [alias] | |
| # Lists commits in current branch not present on upstream tracking branch | |
| new = log @{u}.. |
| #!/usr/bin/bash | |
| cp /Applications/Sublime\ Text.app/Contents/Resources/Sublime\ Text.icns /Applications/Sublime\ Text.app/Contents/Resources/Sublime\ Text.icns.orig | |
| curl https://raw.github.com/dmatarazzo/Sublime-Text-2-Icon/master/Sublime%20Text%202.icns -o /Applications/Sublime\ Text.app/Contents/Resources/Sublime\ Text.icns | |
| cp -R /Applications/Sublime\ Text.app /Applications/Sublime\ Text.app.hack | |
| rm -rf /Applications/Sublime\ Text.app | |
| mv /Applications/Sublime\ Text.app.hack /Applications/Sublime\ Text.app |
| application:open-your-keymap | |
| application:open-your-stylesheet | |
| autocomplete:attach | |
| autoflow:reflow-paragraph | |
| bookmarks:clear-bookmarks | |
| bookmarks:jump-to-next-bookmark | |
| bookmarks:jump-to-previous-bookmark | |
| bookmarks:toggle-bookmark | |
| bookmarks:view-all | |
| check:correct-misspelling |
| # This doesn't work together with bats stub as defined in ruby-build | |
| compute_sha2() { | |
| if type shasum &>/dev/null; then | |
| local output="$(shasum -a 256 -b)" | |
| echo "${output% *}" | |
| elif type openssl &>/dev/null; then | |
| local output="$(openssl dgst -sha256)" | |
| echo "${output##* }" | |
| elif type sha256sum &>/dev/null; then | |
| local output="$(sha256sum --quiet)" |