This file contains 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 | |
echo "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjgzLjEwMAAAAAAAAAAAAAAA//tQAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAALKAASOhgADBQgKDQ8SFBcZHB4hJCYp | |
Ky4wMzU4Oz1AQkVHSk1PUlRXWVxfYWRmaWtucXN2eHt9gIOFiIqNj5KVl5qcn6Gkp6msrrGztrm7 | |
vsDDxcjKzc/S1dfa3N/h5Obp6+7w8/X4+v0AAAAATGF2YzU3LjEwAAAAAAAAAAAAAAAAJAMAAAAA | |
AAAEjoZ7ltZvAAAAAAAAAAAAAAAAAAAAAP/7kGQAAALAR8aYwxYQMUKoYxhpdBDBiR6MJFjA2Qmk | |
dDeUcAAQVJaQPJ7FthiB6bY5OgGuC9IEFAMILHgiAOP7JxhkgNYIoAU/9zAz4lNOBEznO5BfpyMd | |
yfQk5+//9CKdlcjb56EnyKjBxaAAAJhis4f8u8of9gf8QCcAMtp7mKJptJMoLMUToEGW4AXu7mhw | |
n2oIIhQxPbRgQZ743Od/UN//7j//rewaO0f6QCCBAAksBiAZDWVfO49rJ2cP8tAMBL6i517xxwwM |
This file contains 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
angular.module('struct',[]); | |
angular.module('struct') | |
.service('struct',[function(){ | |
vm = this; | |
vm.parse = function(stream,header) { | |
var temp = []; | |
for(var i in stream) { | |
temp[i] = ("00000000"+(stream[i] >>> 0).toString(2)).slice(-8); | |
} |
This file contains 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
# Usage: dvb <station> | |
# Default for <station> is "Hauptbahnhof" | |
function dvb() { | |
station=${@:-Hauptbahnhof} | |
http --body "widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=${station}" | jq -r '.[] | [.[2],.[0],.[1]] | @tsv' | |
} |
This file contains 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
function rmvirtualenv() { | |
for i in ~/.local/share/virtualenvs/*/.project; do | |
venv=$(dirname "${i}") | |
directory=$(cat "${i}") | |
echo "${venv}" | |
if [ -d "${directory}" ] && [ -f "${directory}/Pipfile" ]; then | |
echo -n "[+] " | |
else | |
echo -n "[-] " |
This file contains 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
<html> | |
<head> | |
<style> | |
body { | |
font-family: 'Open Sans', Helvetica, Arial; | |
font-size: 12pt; | |
color: #666; | |
margin-top: 40px; | |
text-align: center; | |
} |
This file contains 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 re | |
import sys | |
def print_memory_of_pid(pid, only_writable=True): | |
""" | |
Run as root, take an integer PID and return the contents of memory to STDOUT | |
""" | |
memory_permissions = 'rw' if only_writable else 'r' |
This file contains 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
# output: | |
# [2.88, 2.88, 2.88, 2.88, 3.2, 3.2, 3.2, 3.2, 3.2, 3.52] | |
# [2.88, 2.88, 2.88, 3.2, 3.2, 3.2, 3.2, 3.52] | |
# [2.88, 2.88, 2.88, 0, 3.2, 3.2, 3.2, 3.2, 0, 3.52] | |
a = [2.88,2.88,2.88,2.88,3.2,3.2,3.2,3.2,3.2,3.52] | |
b = [2.88,2.88,2.88,3.2,3.2,3.2,3.2,3.52] | |
def zero_pad_gen(a, b, _sentinel=object()): | |
a = iter(a) |
This file contains 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
import socket | |
import sys | |
class DNSQuery: | |
def __init__(self, data): | |
self.data=data | |
self.domain='' | |
typ = (ord(data[2]) >> 3) & 15 # Opcode bits | |
if typ == 0: # Standard query |
This file contains 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
import sys | |
import os | |
import requests | |
import subprocess | |
import urllib3 | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
param=sys.argv[1] | |
baseUrl = "https://media.niu.de/magazines/%s" % (param) |