This file contains 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
sqlite3 $(sudo find /private/var/folders -name com.apple.dock.launchpad)/db/db "DELETE FROM apps WHERE title='APPNAME';" && killall Dock |
This file contains 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 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. |
This file contains 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
pip list --outdated | awk '{print $1}' | xargs pip install -U |
This file contains 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 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
# Add next line to `/etc/network/interfaces` | |
iface wlan0 inet manual | |
# Restart NetworkManager | |
$ sudo service network-manager restart |
This file contains 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
# Add the service to the automatic startup system. For further detail look at the man page | |
# for update-rc.d by typing the command man update-rc.d | |
sudo update-rc.d eleasticsearch defaults |
This file contains 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″ |
NewerOlder