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/sublime-text-3; | |
| sudo apt-get update; | |
| sudo apt-get install sublime-text-installer; | |
| sudo ln -s /usr/lib/sublime-text-3/sublime_text /usr/local/bin/sublime; |
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
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| sudo dpkg -i google-chrome-stable_current_amd64.deb; | |
| sudo apt-get -f install |
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
| wget https://github.com/zhangshine/MdCharm/releases/download/1.2.0/mdcharm_1.2_amd64.deb; | |
| sudo dpkg -i mdcharm_1.2_amd64.deb; | |
| sudo apt-get -f install |
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
| wget http://katana.oooninja.com/bleachbit/sf/bleachbit_1.2_all_ubuntu1404.deb; | |
| sudo dpkg -i bleachbit_1.2_all_ubuntu1404.deb; | |
| sudo apt-get -f install; |
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-java8-installer; | |
| sudo update-alternatives --config java; | |
| java -version; |
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
| $ git reset --hard HEAD~1 | |
| $ git push -f # removes last commit. | |
| $ git diff --staged # will show you the diff that you're about to commit. | |
| $ git commit -am "First commit" # adds all changes to tracked files and uses the commit message from the command-line. | |
| $ git diff -M # only considers a file that disappeared as the source of a rename. | |
| $ git diff -b # the -b means ignore whitespace, useful since we've changed some html indenting. |
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
| from django import forms | |
| class Form(forms.Form): | |
| field = forms.TypedChoiceField(coerce=lambda x: x =='True', | |
| choices=((False, 'No'), (True, 'Yes'))) |
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
| from django.core.management import setup_environ | |
| from myproject import settings | |
| setup_environ(settings) | |
| # As of Django 1.4 | |
| import os |
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
| # Fast method. Run next command on terminal | |
| sudo setxkbmap -layout 'es,es' -model pc105 | |
| # Modify /etc/X11/xorg.conf file | |
| Section “InputDevice” | |
| Identifier “Generic Keyboard” | |
| Driver “kbd” | |
| Option “CoreKeyboard” | |
| Option “XkbRules” “xorg” | |
| Option “XkbModel” “pc105″ |
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
| git archive --format=tar --prefix=git-1.4.0/ v1.4.0 | gzip >git-1.4.0.tar.gz # Create a compressed tarball for v1.4.0 release. | |
| git archive --format=zip --prefix=git-1.4.0/ v1.4.0 > git-1.4.0-docs.zip # Create a compressed zipball for v1.4.0 release. |
OlderNewer