I hereby claim:
- I am gschizas on github.
- I am gschizas (https://keybase.io/gschizas) on keybase.
- I have a public key ASD4uKtSwtlHfeC5nRdobKjAsWo_Eh7qGd7PWyTmtpYbZAo
To claim this, I am signing this object:
Function HexDump(text) | |
hexdigits = "" | |
plaintext = "" | |
output = "" | |
For i = 1 to Len(text) | |
current = Mid(text, i, 1) | |
hexdigits = hexdigits & Right("0" & Hex(Asc(current)), 2) & " " | |
if Asc(current) >= 32 And Asc(current) < 127 Then | |
plaintext = plaintext & current | |
Else |
#!/usr/bin/env python3 | |
import struct | |
import re | |
class Wad(object): | |
"""Encapsulates the data found inside a WAD file""" | |
def __init__(self, wadFile): | |
"""Each WAD files contains definitions for global attributes as well as map level attributes""" |
# coding: utf-8 | |
import urllib.parse | |
import praw | |
import configparser | |
import datetime | |
import http.server | |
import webbrowser | |
from dateutil.parser import parse as dateparser |
/* | |
This script can be used to automatically rename a SQL Server | |
based on the current computer host name | |
Run this script after: | |
Computer Name Changed | |
Virtual Machine Cloned | |
*/ | |
DECLARE |
import win32clipboard | |
# set clipboard data | |
win32clipboard.OpenClipboard() | |
win32clipboard.SetClipboardText('testing 123') | |
win32clipboard.CloseClipboard() | |
# get clipboard data | |
win32clipboard.OpenClipboard() | |
data = win32clipboard.GetClipboardData() |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import requests | |
import struct | |
import uuid | |
def java_uuid_hash_code(uuid): | |
leastSigBits, mostSigBits = struct.unpack('>QQ', uuid.bytes) | |
l1 = leastSigBits & 0xFFFFFFFF |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# inspired by a comment in http://redd.it/mmr8m | |
import sys | |
letters = {' ': 'space', | |
'a': 'alfa', 'b': 'bravo', 'c': 'charlie', 'd': 'delta', |
#!/usr/bin/env sh | |
ver=$(curl https://api.github.com/repos/jonas/tig/releases/latest | jq --raw-output '.tag_name[4:]') | |
sudo apt install -y libncurses5-dev | |
wget -c https://github.com/jonas/tig/releases/download/tig-$ver/tig-$ver.tar.gz | |
tar -xzvf tig-$ver.tar.gz | |
cd tig-$ver/ | |
make prefix=/usr/local/ | |
sudo make install install-doc prefix=/usr/local/ |
#!/usr/bin/env sh | |
ver=$(curl https://api.github.com/repos/git/git/tags | jq -r 'first(.[].name | select(test("v\\d\\.\\d+\\.\\d+$")))[1:]') | |
sudo apt install -y \ | |
dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \ | |
gettext zlib1g-dev libssl1.0-dev \ | |
asciidoc xmlto docbook2x | |
# getopt |