Create an .htaccess file in the webroot:
AuthUserFile /app/www/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user
Create a .htpasswd file:
htpasswd -c /app/www/.htpasswd [username]
#!/bin/bash | |
for ((i = 0; i <= 100; i++)); do | |
echo "Grabbing page $i" | |
wget -q "http://imgur.com/r/wallpapers/page/$i" -O - | grep 'class="post"' | cut -d\" -f2 | while read id | |
do | |
echo "Downloading $id.jpg" | |
wget -q -c "http://i.imgur.com/$id.jpg" | |
done |
Create an .htaccess file in the webroot:
AuthUserFile /app/www/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user
Create a .htpasswd file:
htpasswd -c /app/www/.htpasswd [username]
@ECHO OFF | |
SETLOCAL | |
::Minecraft backup script | |
::You need to install 7-Zip first. It can be found here: http://www.7-zip.org/ | |
::Please check the path section first before running! | |
::--------------------------------------------------------------------------------------------------------------------------------------------------------- | |
::Path section | |
::Set this variable to your Minecraft path. It should be ok for every Windows 7 OS. |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
! Molokai theme | |
*xterm*background: #101010 | |
*xterm*foreground: #d0d0d0 | |
*xterm*cursorColor: #d0d0d0 | |
*xterm*color0: #101010 | |
*xterm*color1: #960050 | |
*xterm*color2: #66aa11 | |
*xterm*color3: #c47f2c | |
*xterm*color4: #30309b | |
*xterm*color5: #7e40a5 |