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
<div class="row panel"> <!-- panel class plays a big role in concealing our trick when it comes to painting the table --> | |
<div class="col-md-2"> | |
<table class="table"> | |
<thead> | |
<tr> | |
<th>CATEGORY</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> |
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
#!/usr/bin/sh | |
#I use axel, but you might as well use wget | |
#and you might wish to grab your own uri in case this one is broken... | |
rm glm*.zip | |
axel http://downloads.sourceforge.net/project/ogl-math/glm-0.9.5.1/glm-0.9.5.1.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fogl-math%2Ffiles%2F&ts=1390921576&use_mirror=garr | |
7z x glm*.zip && cd glm && sudo cp -r glm /usr/include/ | |
#if all went well, you are ready to use GLM (e.g you may now proceed to ./configure-make gource :-) |
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
Telling Exim4 to allow users on external networks to use the mail server as a relay: | |
So, for example your mail server has local ip: | |
192.168.1.1 | |
In that case, if you only wish let you local users use the mail server to send mail, then configure the relay host as this: | |
In `/etc/exim4/update-exim4.conf.conf`, set the relay network to only allow local machines for example (probably filter with a Class C mask) |
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
>>> import Image | |
>>> Image.open("file.png") | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2020, in open | |
raise IOError("cannot identify image file") | |
IOError: cannot identify image file | |
>>> from PIL import Image | |
>>> Image.open("file.png") | |
<PngImagePlugin.PngImageFile image mode=RGB size=40x40 at 0x25690E0> |
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
try: | |
import Image, ImageOps | |
except ImportError: | |
from PIL import Image, ImageOps |
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
try: | |
from PIL import Image, ImageOps | |
except ImportError: | |
import Image, ImageOps |
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
Abim | |
Adjumani | |
Agago | |
Alebtong | |
Amolatar | |
Amudat | |
Amuria | |
Amuru | |
Apac | |
Arua |
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
azure account import PATH_TO_YOUR_AZURE_PUBLISH_SETTINGS_FILE | |
azure site log tail YOUR_AZURE_WEBSITE_NAME |
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
#!/bin/bash | |
#requires: wp-cli installed | |
# run all the following commands inside your wordpress root directory | |
wp core update #updates wp itself | |
wp plugin update --all #update all plugins | |
wp theme update -all #update all themes |
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
- ensure to have the `~/.vim/plugin` directory | |
- clone the vim-autopep8 plugin git repo into your .vim: | |
git clone https://github.com/tell-k/vim-autopep8.git | |
- symlink the plugin file into your vim plugins directory | |
ln -s $(realpath -f vim-autopep8/ftplugin/python_autopep8.vim) plugin | |
- open your python file using vim |