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 | |
# 0ocrawl.bash: Easy webcrawling with redis | |
# Copyright: (C) 2012 Florian Baumann | |
# License: GPL-3 <http://www.gnu.org/licenses/gpl-3.0.txt> | |
# Date: Friday 2012-06-08 | |
## Configuration | |
REDIS="/usr/bin/redis-cli" | |
REDISOPTS="--raw -h localhost" |
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 | |
MASTER="[email protected]" | |
BASEDIR="/data/gitslave/" | |
for repo in $(ssh $MASTER | grep '^ R' | awk '{print $3}') ; do | |
if [ -d $BASEDIR/$repo ]; then | |
cd $BASEDIR/$repo | |
for rbranch in $(git branch -a | grep -v '^*\ master\|HEAD\ -' | awk -F/ '{print $3}'); do | |
git checkout $rbranch |
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
# Block anything | |
block in all | |
block out all | |
block return | |
# Anti SSH Bruteforce | |
table <bruteforce> persist | |
table <admins> { 1.2.3.4/32 } | |
# Disallow bruteforcing IPs except <admins> |
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/sh | |
# | |
# $OpenBSD: gitit,v 1.0 2013/06/28 14:34:36 noqqe Exp $ | |
daemon="/usr/local/bin/gitit" | |
daemon_user="gitit" | |
daemon_flags="-f /etc/gitit.conf" | |
rc_bg=YES |
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 | |
## manual section | |
# | |
# options | |
# --rqmax Define the max read queries | |
# --rqpm Define read queries per minute | |
# --wqmax Define the max wirte queries | |
# --wqpm Define write queries per minute | |
# |
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
%%% Packages | |
\documentclass[paper=a4, fontsize=11pt, pdftex]{scrartcl} % Article class of KOMA-script with 11pt font and a4 format | |
\usepackage[english]{babel} % English language/hyphenation | |
\usepackage[protrusion=true,expansion=true]{microtype} % Better typography | |
\usepackage[cm]{fullpage} | |
%%% Begin document | |
\pagestyle{empty} | |
\begin{document} | |
\vspace*{25mm} |
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 python | |
# -*- coding: utf-8 -*- | |
## About | |
# Simply convert internationalized mailheaders into utf-8 | |
# See: http://tools.ietf.org/html/rfc2047.html | |
## Usage | |
# $ echo 'Check german umlauts =?iso-8859-1?B?5CD8?= =?iso-8859-1?Q?_=F6?=' | ./convert_mailheader.py | |
# > Check german umlauts ä ü ö |
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 python | |
# -*- coding: utf-8 -*- | |
## About | |
# Add the subject of a mail as task to taskwarrior | |
# | |
## Usage | |
# add this to your .muttrc: | |
# macro index,pager t "<pipe-message>~/path/to/mutt2task.py<enter>" | |
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
// Startup | |
void setup() { | |
// read seed for harder randomization | |
randomSeed(analogRead(0)); | |
turnoff(); | |
delay(1000); | |
neon(); |
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/sh | |
# | |
# $OpenBSD: isso,v 1.0 2013/11/10 14:34:36 noqqe Exp $ | |
daemon="/usr/local/bin/isso" | |
issolog="/home/isso/comments.log" | |
issoconf="/home/isso/isso.cfg" | |
daemon_user="isso" | |
daemon_flags="-c $issoconf run 1>>$issolog 2>>$issolog" |