Skip to content

Instantly share code, notes, and snippets.

View dobrosketchkun's full-sized avatar

Wisketchy Dobrov dobrosketchkun

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dobrosketchkun on github.
  • I am dobrosketchkun (https://keybase.io/dobrosketchkun) on keybase.
  • I have a public key ASCbiHWdLBDM8h3zfStpybv7T9FXsiK9pW93uwRZx2Wb8Ao

To claim this, I am signing this object:

def vake(list_of_keys,list_of_values):
if len(list_of_values) < len(list_of_keys):
list_of_values += [None]*(len(list_of_keys) - len(list_of_values))
return {x[0]:x[1] for x in zip(list_of_keys,list_of_values)}
from lob import *
import itertools
bookz = []
for i in range(10):
searched = search('text'.ljust(length_of_page))
paged = getPage(searched)
bookz.append(searched)
hex_addr, wall, shelf, volume, page = searched.split(':')
@dobrosketchkun
dobrosketchkun / pubsub.py
Last active December 16, 2018 11:31
very lazy two windowed ipfs pubsub IM
import os
import json
from base64 import b64decode
import argparse
import requests
import urllib.parse
def urlencode(str):
return urllib.parse.quote(str)
@dobrosketchkun
dobrosketchkun / seal_script_fetch.py
Created December 16, 2018 12:51
Download a seal script image of your character from "Chinese Text Project" https://ctext.org
# -*- coding: utf-8 -*-
import requests
'''
If for some reason you need a seal script type glif of multiple Kanji/Hanzi it's your chance.
'''
def seal_script(chars):
chars_list = {_c:('%04x' % ord(_c) + '.gif') for _c in chars}
# from nacl.public import PrivateKey, PublicKey, Box
# from nacl.encoding import Base32Encoder as benc32
# from nacl.encoding import HexEncoder as benc
# from nacl.encoding import RawEncoder as renc
# import nacl
# import anybase32
# from gen import Base32_decode
def sha000(password, circles = 1, type = 'argon2'):
'''
Some defence from rainbow tables. Argon2 is preferable.
'''
if type == 'argon2':
arg = argon2.low_level.hash_secret(
password.encode(), hashlib.sha256(password.encode()).digest(),
time_cost=1*circles, memory_cost=502400, parallelism=1, hash_len=64,
type=argon2.low_level.Type.ID)
@dobrosketchkun
dobrosketchkun / FTDNA_to_23andme.py
Last active February 18, 2019 12:38
FTDNA to 23andme format conversion.
import sys
import csv
maxInt = sys.maxsize
decrement = True
while decrement:
decrement = False
try:
csv.field_size_limit(maxInt)
except OverflowError:
@dobrosketchkun
dobrosketchkun / ygg_peers.txt
Created March 30, 2019 07:51
Yggdrasil network all public peers (190330)
tcp://139.162.119.37:44478
tcp://[2400:8902::f03c:91ff:fe1f:c32a]:44478
tcp://94.230.156.206:9000
tcp://185.87.111.202:8080
tcp://95.216.146.86:12080
tcp://[2a01:4f9:c010:afa::2f30]:12080
tcp://37.187.124.224:12345
tcp://[2001:41d0:a:f5e0::1]:12345
tcp://51.15.204.214:12345
tcp://51.15.205.147:62071
@dobrosketchkun
dobrosketchkun / 200_ygg_peers.csv
Last active March 31, 2019 07:07
Ygg peers with something (190330)
http://[201:870:9573:4095:f4e6:dfde:cc68:c783] This Yggdrasil node is operated by neilalexander.
http://[200:50ac:5aa8:f097:2109:711:3e94:d4e6] Welcome to nginx on Debian!
http://[205:ddf2:80b9:7896:7b18:622b:5579:aa7d] Public Access Multics
http://[203:5871:3e33:413c:a824:cb7b:2604:92ab] Apache2 Ubuntu Default Page
http://[200:52e8:419c:23e3:4826:3e5:d941:29d4] This Yggdrasil node is operated by neilalexander.
http://[200:a120:8cf8:2ad5:7509:7341:c861:34aa] Network Statistics
http://[21d:70d8:4654:7b50:fce7:fbf9:cc1a:34ac] LibreMap - MassMeshNet
http://[200:bc6a:29cb:c24:d59e:4b1e:bdc3:d2ac] PrivateBin
http://[200:89b9:57a9:d587:397a:e988:55b6:c893] Welcome to Node tomesh-8585
http://[201:acdc:c3d9:5863:5010:48ae:a69c:d2b4] Welcome to Node mesh-bridlewood-2a13