This file contains 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 | |
# visudo: | |
# vmail ALL= (root) NOPASSWD: /usr/bin/sa-learn | |
time=5 | |
spoolsalearn="/var/spool/salearn" | |
lvl="info" | |
type="spam" |
This file contains 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
window.emoji = (function() { | |
var canvas = document.createElement("canvas"); | |
canvas.width = 15; | |
canvas.height = 15; | |
var ctx = canvas.getContext("2d"); | |
ctx.font = "10px"; | |
ctx.fillStyle = "black"; | |
ctx.fillText("\uD83E\uDD51", 0, 10); | |
var data = ctx.getImageData(0, 0, canvas.width, canvas.height).data; | |
var emoji = false; |
This file contains 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
"use strict"; | |
/** | |
* Canvas Clock (GPLv2) | |
* | |
* @author Max (http://m9x.de) | |
* @version 1.0 | |
* | |
* Original version and design by http://www.board3.de/ | |
* JavaScript clone by Max (m9x.de) |
This file contains 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 | |
FILE="$2" | |
if ( [ "$1" = "backup" ] && [ "$FILE" != "" ] ); then | |
# backup | |
brctl show | awk 'NR > 1 && $4 != "" { print $1 " " $4; last=$1; } NR > 1 && $2 == "" { print last " " $1; }' > "$FILE" | |
echo "Done" |
This file contains 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 | |
URL="$1" | |
LOCAL_PORT=1337 | |
TU_ID=topsecret | |
RBG_CLIENT=1 | |
PROT=$(cut -d: -f1 <<< $URL) | |
DOM=$(cut -d/ -f3 <<< $URL) |
This file contains 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 | |
FILENAME="" | |
SAFETY=false | |
NOTENDSTATE=false | |
TRAIL=false | |
VERIFY=false |
This file contains 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
////////////////////// | |
// turing: dec to bin | |
////////////////////// | |
// Copyright (c) 2013 Max von Buelow | |
// Copyright (c) 2013 kd3x | |
// License: CC BY-NC-SA 3.0 | |
// Simulator: http://db.ing.puc.cl/turingmachine/ | |
// Initial state: init |
This file contains 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
// set delimiter | |
init,0 | |
init,0,< | |
init,1 | |
init,1,< | |
init,2 | |
init,2,< |
This file contains 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 | |
# Start ts | |
# conf | |
DIR="/home/ts" # the root directory of the ts server | |
SCRIPT="./ts-start-script.sh" # the ts start script | |
USER="ts" | |
cd $DIR && su - $USER -c "$SCRIPT $1" |
This file contains 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 | |
# Minecraft | |
# conf | |
DIR="/home/minecraft" # the root directory of the minecraft server | |
SCRIPT="./starter.sh" # the script which executes the jar | |
NAME="minecraft" # screen name | |
screen=$(which screen) |
NewerOlder