git clone https://gist.github.com/6322759.git autosshd
cd autosshd
sudo ./install
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
== installation == | |
sudo aptitude install apache2 php5 | |
cd /var/www | |
sudo mkdir cam0 | |
sudo chown root:www-data cam0 | |
cd cam0 | |
sudo cp $src/index.php . | |
sudo mkdir tmp | |
sudo chown root:www-data tmp |
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
@charset "utf-8"; | |
body { | |
background: #222; | |
} | |
body, table, form, input, td, th, p, textarea, select { | |
font-family: Helvetica, sans-serif; | |
color: #0d0; | |
background-color: #111; |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document url-prefix("http://issues"), | |
url-prefix("https://jira") { | |
#announcement-banner { | |
display: none; | |
} | |
body,div,span,table,td,h1,h2,h3,h4,h5,h6,h7,a { |
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 | |
# Formatting constants | |
export BOLD=`tput bold` | |
export UNDERLINE_ON=`tput smul` | |
export UNDERLINE_OFF=`tput rmul` | |
export TEXT_BLACK=`tput setaf 0` | |
export TEXT_RED=`tput setaf 1` | |
export TEXT_GREEN=`tput setaf 2` | |
export TEXT_YELLOW=`tput setaf 3` |
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
### Keybase proof | |
I hereby claim: | |
* I am haku on github. | |
* I am haku (https://keybase.io/haku) on keybase. | |
* I have a public key whose fingerprint is 9C1A F0A8 5902 E5CA 46EB A05E 1A64 B055 B3B2 F123 | |
To claim this, I am signing this object: |
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
package foo; | |
import java.lang.reflect.Field; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.Set; | |
import java.util.WeakHashMap; | |
import java.util.concurrent.ScheduledExecutorService; | |
import java.util.concurrent.TimeUnit; |
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
#!/bin/bash | |
set -eu | |
parts="$(grep '^-' './team-kimba.txt')" | |
awk_cmds=( | |
'{print $2 $3}' | |
"{split(\$0, a, \"/\"); b = a[2]; gsub(\"[ #',?]\", \"\", b); print b}" | |
"{b = \$0; gsub(\"^-|[ #',?()]\", \"\", b); gsub(\"/\", \"-\", b); print b}" | |
) |