This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vim file.xml | |
| :set nobomb | |
| :wq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update | |
| sudo apt-get install --reinstall ubuntu-desktop | |
| sudo apt-get install unity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source /usr/local/bin/virtualenvwrapper.sh | |
| export VIRTUAL_ENV_DISABLE_PROMPT=1 | |
| export WORKON_HOME=$HOME/env | |
| export VIRTUALENVWRAPPER_LOG_DIR="$WORKON_HOME" | |
| export VIRTUALENVWRAPPER_HOOK_DIR="$WORKON_HOME" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Some handy aliases | |
| alias subl='sublime-text-2' | |
| # http://stackoverflow.com/questions/5130968/how-can-i-copy-the-output-of-a-command-directly-into-my-clipboard | |
| clipboard() { cat $1 | xclip -selection clipboard; printf "Harr harr, clipped!\nPaste with ctrl+v ...\n"; } | |
| alias clip=clipboard | |
| alias distro='printf "Shebang: ";uname -a;printf "\nArchitecture: ";uname -m; printf "\n"; lsb_release -a;printf "\n";' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Custom Git merge driver - merges PO files using msgcat(1) | |
| # | |
| # - Install gettext | |
| # | |
| # - Place this script in your PATH | |
| # | |
| # - Add this to your .git/config : | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nicelog = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://lh.2xlibre.net/locale/fr_BE/ | |
| http://framework.zend.com/manual/1.12/en/zend.locale.appendix.html | |
| http://www.localeplanet.com/icu/fr-BE/index.html | |
| "fields": { | |
| "rule_few": "", | |
| "code_aliases": " fr-BE fr-be fr_be ", | |
| "code": "fr_BE", | |
| "name": "French (Belgium)", | |
| "description": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-jdk7-installer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| function parse_git_branch_and_add_brackets { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/' | |
| } | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT table_schema, | |
| SUM(data_length+index_length)/1024/1024 AS total_mb | |
| FROM information_schema.tables | |
| GROUP BY table_schema | |
| ORDER BY 2 DESC; |