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
#!/usr/bin/env bash | |
pushd /var/www/html/ | |
# Set default permissions | |
find . -type d -exec chmod 755 '{}' ';' | |
find . -type f -exec chmod 644 '{}' ';' | |
# Set directories permissions | |
ee_dirs=( |
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
now() { | |
$file="$HOME/.now" | |
if [[ -z $@ ]]; then | |
today="$(date "+%Y-%m-%d")" | |
grep --color=never $today $file | cut -d' ' -f2- | |
else | |
stamp="$(date "+%Y-%m-%d %H:%M:%S")" | |
echo $stamp - "$@" >> $file | |
fi | |
} |
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
import random | |
import urllib | |
import urllib2 | |
import tempfile | |
import subprocess | |
from appscript import app, mactypes | |
import lxml.html as lh | |
url = "http://simpledesktops.com/browse/" | |
random_page = str(random.randint(1,20)) |
NewerOlder