Instantly share code, notes, and snippets.

View SimpleTcpRedirector.py
#!/usr/bin/env python
import socket
import threading
import select
import sys
terminateAll = False
class ClientThread(threading.Thread):
View dssets.md

19036

. IN DS 19036 8 1 B256BD09DC8DD59F0E0F0D8541B8328DD986DF6E
. IN DS 19036 8 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5

20326

View cat-vs-dog.txt
How to Give a Cat a Pill....... Simple....???!!
Here kitty kitty.!!
1. Pick up cat and cradle it in the crook of your left arm as if holding a baby.
Position right forefinger and thumb on either side of cats mouth and gently apply pressure to cheeks while holding pill in right hand.
As cat opens mouth, pop pill into mouth.
Allow cat to close mouth and swallow.
View vpw.py
#!/usr/bin/env python
# Jan-Piet Mens, September 2018
import os
import sys
import base64
import hashlib
import getpass
SALT_LEN = 12
View touching-story.txt
Frank and Dianne were in a local shopping center just before Christmas.
Dianne suddenly noticed that Frank was missing, and as they had a lot
to do, she called him on his cell phone. Dianne asked, "Frank, where
are you? You know that we have lots to do."
Frank said, "Do you remember the jewelry store we went into about 10
years ago, and you fell in love with a diamond necklace? I could not
afford it at the time, and I said that one day I would get it for you."
Little tears started to flow down Dianne's cheek, and she got all choked up.
View binaries.txt
chfn
chpass
chsh
crontab
cvs
ex
fc
git
git-sh-setup
git-var
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