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 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) |
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
| 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 |
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 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 |
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
| @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"} |
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 | |
| 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 |
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
| 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 |
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
| 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> |
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
| def get_cat_domains(): | |
| #whois = telnetlib.Telnet("whois.norid.no", 43) | |
| #whois.write("-c utf-8 NNRI4O-NORID\n".encode('ascii')) | |
| #result = whois.read_all() | |
| #whois.close() | |
| #print(result.decode('utf-8')) | |
| a_file = open('whois.txt', encoding='utf-8') | |
| s = a_file.read() | |
| #print(s) | |
| r = re.search('^Domains\.*: (.*)', s, re.MULTILINE) |
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
| à \x{E0} | |
| á \x{E1} | |
| ä \x{E4} | |
| å \x{E5} | |
| æ \x{E6} | |
| ç \x{E7} | |
| è \x{E8} | |
| é \x{E9} | |
| ê \x{EA} | |
| ï \x{EF} |
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
| what happens: | |
| >>> a = [ "ø", "å" ] | |
| b = [ "\\x{F8}", "\\x{E5}" ] | |
| >>> b | |
| ['\\x{F8}', '\\x{E5}'] | |
| >>> "øremål".replace(a,b) | |
| Traceback (most recent call last): | |
| get_non_ascii(): | |
| File "<stdin>", line 1, in <module> |