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]
<html> | |
<head> | |
<title>{Title}{block:SearchPage} ({lang:Search results for SearchQuery}){/block:SearchPage}{block:PermalinkPage}{block:PostSummary} — {PostSummary}{/block:PostSummary}{/block:PermalinkPage}</title> | |
<meta charset="utf-8"> | |
<meta name="description" content="{block:IndexPage}{block:Description}{MetaDescription}{/block:Description}{/block:IndexPage}{block:PermalinkPage}{block:PostSummary}{PostSummary}{/block:PostSummary}{/block:PermalinkPage}" /> | |
<meta name="color:Accent" content="#4EA3D0"/> | |
<meta name="font:Body" content="'Helvetica Neue', Helvetica, Arial, sans-serif"/> | |
<meta name="if:Two column posts" content="1"/> |
require 'sinatra' | |
get "/" do | |
erb :form | |
end | |
post '/save_image' do | |
@filename = params[:file][:filename] | |
file = params[:file][:tempfile] |
{ | |
votes: 21, | |
monitor: false, | |
success: true, | |
voters: 2, | |
start_time: 1348246303.613473, | |
polls: [ | |
{ | |
nonce: '8ec402a536549c841b8778a7f8ca2a24', | |
va: 16, |
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/sh | |
echo "Running..." | |
PROG=$0 | |
RSYNC="/usr/bin/rsync" | |
SCRIPT_MOUNTED='false' | |
MOUNT_VOLUME="/Volumes/Qdownload" | |
SRC="$MOUNT_VOLUME/transmission/completed/" | |
DST="/Users/tom/Dumping Ground/Qnap Downloads" |
As configured in my dotfiles.
start new:
tmux
start new with session name:
authors: | |
hanzou: | |
name: Hanzou Hattori | |
display_name: Hanzou | |
gravatar: c66919cb194f96c696c1da0c47354a6a | |
email: [email protected] | |
web: http://company.com | |
twitter: company | |
github: hhattori | |
jorgen: |
# Using the web automation driver (watir-webdriver) through the tor network | |
# Automates webpage actions & bypasses the voting limit on polldaddy | |
# Casts a vote every 3 seconds for a total of 1000 votes | |
require 'watir-webdriver' | |
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile.proxy = Selenium::WebDriver::Proxy.new :http => '127.0.0.1:8118' | |
b = Watir::Browser.new :firefox, :profile => profile | |
#b = Watir::Browser.new :firefox | |
b.goto 'speakimge.wordpress.com/2012/01/25/under-the-covers/' |