Skip to content

Instantly share code, notes, and snippets.

View Kagee's full-sized avatar
👾
Still working from home, what about you?

Anders Einar Hilden Kagee

👾
Still working from home, what about you?
View GitHub Profile
echo '-c utf-8 NNRI4O-NORID' | nc whois.norid.no 43 > whois2.txt
a_file = open('whois2.txt', encoding='utf-8')
s = a_file.read()
r = re.search('Domains(.*)', s)
r.group(1)
''
r = re.search('Domains(..*)', s)
r.group(1)
'....................: aa.no aar <etc>
hildenae@spune /mnt/volume-fra1-01/ct/certificate-transparency/python/ct/client/tools (c5649b74*) $ PYTHONPATH=../../../:/mnt/volume-fra1-01/ct/protobuf/python/ ./simple_scan.py --output $PWD/out/ 2>foo.err
Allocating 1 fetchers and 1 processing workers
Got STH: tree_size: 168589237
timestamp: 1509922180244
sha256_root_hash: "\006,\037d\024\336^\206\215\256\262}\210\\\204\3609Y\303\316?\3572e?\320\r{xx9\334"
tree_head_signature: "\004\003\000F0D\002 BJ\314\317\310J+\316\303P\250Y\017F0\257\372\221`\356jx\261*\224;\243\352\'{\356/\002 3\276\271\335\371\302\014\375\236]q\217\272\251\014\221\tMbz\010o\336\355\236\353\371\261q\235\262\377"
www.politi.no
www.inventum24.no
www.fourms.uio.no
#! /bin/bash
ACTIVATION_BYTES="<https://github.com/inAudible-NG/audible-activator>"
FROM="./From"
TO="./To"
FFMPEG="ffmpeg/ffmpeg"
COUNT_FROM="$(ls "$FROM" | wc -l)"
# only aax, something fails with .aa, and i'm not up to debugging
@echo off
set WINRM_EXEC=call %SYSTEMROOT%\System32\winrm
%WINRM_EXEC% quickconfig -q
%WINRM_EXEC% set winrm/config/winrs @{MaxMemoryPerShellMB="300"}
%WINRM_EXEC% set winrm/config @{MaxTimeoutms="1800000"}
%WINRM_EXEC% set winrm/config/client/auth @{Basic="true"}
%WINRM_EXEC% set winrm/config/service @{AllowUnencrypted="true"}
%WINRM_EXEC% set winrm/config/service/auth @{Basic="true"}
#! /usr/bin/env bash
./adb -d shell input tap 680 270
./adb -d shell input tap 362 1086
sleep 5
AWT_VIDEO=$(./adb -d shell dumpsys window windows | grep -o -P 'mFocusedApp=AppWindowToken{[^ ]*')
AWT_POST="$AWT_VIDEO"
echo "shoul be equal: x${AWT_POST} = x${AWT_VIDEO}";
while [ "${AWT_POST}x" = "${AWT_VIDEO}x" ] ; do
sleep 5;
./adb -d shell input keyevent 4
hildenae@grune ~/tmp/debian $ ./scrape.sh "https://summit.debconf.org/debconf15/meeting/286/continuous-delivery-of-debian-packages/" && ./scrape.sh "https://summit.debconf.org/debconf15/meeting/329/debians-central-role-future-software-freedom/" && ./scrape.sh "https://summit.debconf.org/debconf15/meeting/331/what-is-to-be-done/"
Title: Continuous Delivery of Debian packages
Speaker: Michael Prokop
Date: 2015-08-17
URL: http://meetings-archive.debian.net/pub/debian-meetings/2015/debconf15/Continuous_Delivery_of_Debian_packages.webm
Title: Debian's Central Role in the Future of Software Freedom
Speaker: Bradley M. Kuhn
Date: 2015-08-15
URL: http://meetings-archive.debian.net/pub/debian-meetings/2015/debconf15/Debians_Central_Role_in_the_Future_of_Software_Freedom.webm
Title: What is to be done - Reflections on Free Software Usage
#! /usr/bin/env bash
# Test:
# ./scrape.sh "https://summit.debconf.org/debconf15/meeting/286/continuous-delivery-of-debian-packages/"
# ./scrape.sh "https://summit.debconf.org/debconf15/meeting/329/debians-central-role-future-software-freedom/"
#./scrape.sh "https://summit.debconf.org/debconf15/meeting/331/what-is-to-be-done/"
PAGE=$(wget -q -O - $1)
TITLE=$(echo "$PAGE" | perl -ne 'print $1,"\n" if /<h2>(.*)--/' | recode HTML_4.0..utf-8)
DATE=$(echo "$PAGE" | perl -ne 'print $1,"\n" if /<h3>(\d\d\d\d-\d\d-\d\d)/')
SPEAKER=$(echo "$PAGE" | perl -ne 'print $1,"\n" if /<h2>.*--\s*(.*)<\/h2>/' | recode HTML_4.0..utf-8)
#define _GNU_SOURCE
#include <dlfcn.h>
#include <netdb.h>
#include <string.h>
typedef int (*getaddrinfo_t)(const char *node, const char *service,
const struct addrinfo *hints,
struct addrinfo **res);
int getaddrinfo(const char *node, const char *service,
hildenae@grune ~/tmp/tmp $ echo "a" > A
hildenae@grune ~/tmp/tmp $ echo "b" > B
hildenae@grune ~/tmp/tmp $ echo "c" > C
hildenae@grune ~/tmp/tmp $ cat *
a
b
c
hildenae@grune ~/tmp/tmp $ echo "Irssi" > *
hildenae@grune ~/tmp/tmp $ cat *
Irssi

Keybase proof

I hereby claim:

  • I am kagee on github.
  • I am kagee (https://keybase.io/kagee) on keybase.
  • I have a public key whose fingerprint is 7420 F6A6 BFB4 4940 34D8 300A 0581 5A81 1322 0715

To claim this, I am signing this object: