View bash_prompt_fancy.sh
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
bold=$(tput bold)
dim=$(tput dim)
off=$(tput sgr0)
thumb () {
case $1 in
0) printf "\xF0\x9F\x91\x8d" ;;
*) printf "\xF0\x9F\x91\x8e $red($1)$off" ;;
View tim-books-two.txt
A priest and a shepherd from Australia participate in a TV game. After answering all the questions, there is a tie.
So both are given one final assignment. It is to write a poem in three minutes, using the word "Timbuktu".
It is a city in Africa.
The priest returns with the fruit of his inspiration:
"I was a father all my life,
I had no children, had no wife,
I read the bible through and through
on my way to Timbuktu ... "
View thinkmorse.sh
#!/bin/bash
modprobe -r ec_sys
modprobe ec_sys write_support=1
on="\x8a"
off="\x0a"
led(){
echo -n -e $1 | dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null
View check-soa1.md

ok, as expected, -a required in this hotel (!)

$ ./check-soa -a -tcp -4 iis.se
i.ns.se.
	194.146.106.22: OK: 1523885101
ns.nic.se.
	91.226.36.45: OK: 1523885101
View hotel-wifi-sucks-again.md

Sometimes no authoritative responses

dig @194.146.106.22 iis.se soa

; <<>> DiG 9.12.0b1 <<>> @194.146.106.22 iis.se soa
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40998
View hare.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <memory.h>
#include <sys/socket.h>
/*
View typescript.md

edit-zone net

; Warning - every name in this file is ABSOLUTE!
$ORIGIN .
net     60      IN      SOA     pdns.net hostmaster.net 4 10800 60 604800 60
net     60      IN      NS      pdns.net
example.net     60      IN      NS      pdns.net
example.net     60      IN      DS      18725 13 1 e65c9ac87ef198042504ef70df33e081e81fb8a6
View beanstalkd.service
[Unit]
Description=Beanstalkd is a simple, fast work queue
[Service]
User=nobody
Restart=always
RestartSec=500ms
ExecStart=/usr/local/bin/beanstalkd -b /var/lib/beanstalkd
LimitNOFILE=10240
View tweepyfollowers.py
# Tweepy API documentation: http://docs.tweepy.org/en/latest/index.html
# Vorher mit 'pip install tweepy' Tweepy installieren
# Twitter App registrieren unter https://apps.twitter.com/
import tweepy
auth = tweepy.OAuthHandler("Consumer Key (API Key)", "Consumer Secret (API Secret)")
auth.set_access_token("Access Token", "Access Token Secret")
View log.txt
before:
; <<>> DiG 9.11.2 <<>> +norec +dnssec +multi . DNSKEY @a.root-servers.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32309
;; flags: qr aa; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: