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
# /etc/X11/xorg.conf | |
Section "Device" | |
Identifier "Default Device" | |
Option "NoLogo" "True" | |
Option "RegistryDwords" "EnableBrightnessControl=1" | |
EndSection |
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
# Installing python-virtualenv will also install python-pip. | |
~$ sudo apt-get install python-virtualenv | |
# Create an isolated virtual environment called test_env. | |
~$ virtualenv test_env --no-site-packages | |
# Install the django package on test_env. | |
~$ pip install django -E test_env |
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
<link href="link to your icon" rel="icon" type="image/x-icon" /> | |
<style type="text/css"> | |
div.navbar { | |
display: none; | |
} | |
footer { | |
display: none; |
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
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="this.disabled=true;" UseSubmitBehavior="false" /> |
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
SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.sqlite3', | |
'NAME': os.path.join(SITE_ROOT, 'db', 'test.db'), | |
'USER': '', | |
'PASSWORD': '', | |
'HOST': '', | |
'PORT': '', |
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
sudo add-apt-repository ppa:sevenmachines/flash && sudo apt-get update && sudo apt-get install flashplugin64-installer |
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 freeze to list packages | |
# grep -v '\-e' to exclude packages in edit mode | |
# cut -d= -f1 to get the package name only | |
# xargs pip install -U to upgrade all packages | |
$ pip freeze | grep -v '\-e' | cut -d= -f1 | 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
$ cd /tmp | |
$ wget http://download.virtualbox.org/virtualbox/4.1.18/virtualbox-4.1_4.1.18-78361~Ubuntu~precise_amd64.deb | |
$ sudo dpkg -i virtualbox-4.1_4.1.18-78361~Ubuntu~precise_amd64.deb | |
$ wget http://files.vagrantup.com/packages/eb590aa3d936ac71cbf9c64cf207f148ddfc000a/vagrant_1.0.3_x86_64.deb | |
$ sudo dpkg -i vagrant_1.0.3_x86_64.deb | |
$ sudo ln -s /opt/vagrant/bin/vagrant /usr/local/bin/ | |
$ vagrant box add lucid32 http://files.vagrantup.com/lucid32.box |
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
vagrant@lucid32$ cd ~ | |
vagrant@lucid32$ mkdir virtualenvs | |
vagrant@lucid32$ cd virtualenvs | |
vagrant@lucid32$ virtualenv salt-dev | |
vagrant@lucid32$ . salt-dev/bin/activate | |
(salt-dev)vagrant@lucid32$ cd ~ | |
(salt-dev)vagrant@lucid32$ sudo aptitude install swig g++ python-dev uuid-dev make | |
(salt-dev)vagrant@lucid32$ wget http://download.zeromq.org/zeromq-2.2.0.tar.gz | |
(salt-dev)vagrant@lucid32$ tar xzvf zeromq-2.2.0.tar.gz |
OlderNewer