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/zsh | |
# save a | separated list in the TABLE_FILE | |
# i. e: | |
# | 02dec2011 21:23 | 5 | matemat | jomat | | |
# | 02dec2011 21:42 | 20 | matetjunkie | jomat | Direktverkauf 20 Stueck 1-Euro-Mate | | |
# | 05dec2011 20:23 | 46.6 | matemat | jomat | | |
# and run me | |
TABLE_FILE=/tmp/kohlen |
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/zsh | |
# v0.1 jomat 2011-12-16 created makefile | |
# v0.2 ssc 2011-12-17 added toilet infos | |
# v0.3 sepi 2011-12-17 outsourced to shell script, catches ctrl_c | |
# v0.4 ssc 2011-12-17 added 2min user timeout and speech stuff (speak,shout) | |
#jmt learn to readable code :) | |
trap ctrl_c INT |
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/zsh | |
# ./ypd².sh http://youporn-deutsch.com/video/2961/schneeflittchen-2 | |
# ./ypd².sh http://youporn-deutsch.com/video/2720/dornm%C3%B6schen | |
foo=(`echo $1|cut -d/ -f5,6|sed 'su/u u'`) | |
foo[2]=$(printf "`echo $foo[2]|sed 's/+/ /g;s/%/\\\\x/g'`") | |
echo video id: $foo[1] | |
echo file name: $foo[2] |
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 | |
import pytz, datetime | |
now_utc = datetime.datetime.utcnow() | |
now_utc = pytz.utc.localize(now_utc) | |
for tzstring in pytz.all_timezones: | |
local_tz = pytz.timezone(tzstring) | |
local_time = now_utc.astimezone(local_tz) |
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/zsh | |
function retr_cert_base64() { | |
fields=(${(s: :)1}) | |
host=$fields[1] | |
port=$fields[2] | |
sni=$fields[3] | |
proto=$fields[4] | |
[ -z "$sni" ] && servername=$host || servername=$sni | |
[ -n "$proto" ] && starttls="-starttls $proto" |
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 | |
set -xeu | |
arch=x86_64 | |
base_dir=/data/opt/alpine | |
work_dir=${base_dir}/work-${arch} | |
chroot_dir=${base_dir}/edge-${arch} | |
version=2.6.7-r1 | |
mirror=http://dl-2.alpinelinux.org/alpine/ |
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 | |
user= | |
pass= | |
url= | |
echo $* | |
case $1 | |
in |
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
### | |
# Copyright (c) 2016, Johannes Matheis | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, | |
# this list of conditions, and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright notice, |
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/zsh | |
# This script assumes you have a symlinked riot installation, eg | |
# /var/www/html/riot -> /var/www/html/riot-v0.11.4 | |
# | |
# If the local version is older than the github version, it | |
# downloads the latest release, extracts it, copies | |
# config.json and home.html from old to new, removes | |
# the old symlink and sets a new one |
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 python3 | |
import requests | |
from requests.compat import urljoin | |
AS_TOKEN = "redacted" | |
HS_BASE = "https://darkfasel.net" | |
ROOMS = [ | |
"!someroomid:darkfasel.net" | |
] |
OlderNewer