Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| # Login | |
| $ mysql -u root -p | |
| # Check privileges | |
| $ SHOW GRANTS FOR 'read-only_user_name'@'%'; | |
| # Remove the privileges if any | |
| $ REVOKE ALL PRIVILEGES ON database_name.* FROM 'read-only_user_name'@'%'; |
| #!/bin/bash | |
| # Credits to: | |
| # - http://vstone.eu/reducing-vagrant-box-size/ | |
| # - https://github.com/mitchellh/vagrant/issues/343 | |
| aptitude -y purge ri | |
| aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide | |
| aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30 | |
| aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5 |
| #!/usr/bin/python | |
| # -*- encoding: UTF-8 -*- | |
| import codecs | |
| import sys | |
| from math import log | |
| from collections import defaultdict | |
| class Trie (object): | |
| class TrieNode: |
| #!/usr/bin/env bash | |
| # Pre-requisites | |
| sudo apt-get -y update | |
| sudo apt-get --no-install-recommends -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev vim | |
| curl -L https://www.opscode.com/chef/install.sh | sudo bash | |
| # The rest | |
| sudo gem install ruby-shadow --no-ri --no-rdoc |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| <!doctype html> | |
| <html><head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
| <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script> | |
| <script type='text/javascript' src="http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.0.beta.6.js"></script> | |
| <script type='text/javascript' src="http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.js"></script> | |
| </head><body> | |
| <script type="text/x-handlebars" data-template-name="application"> | |
| <h1>Application</h1> | |
| <a href="#/dashboard">Dashboard</a> |