I hereby claim:
- I am ixe013 on github.
- I am ixe013 (https://keybase.io/ixe013) on keybase.
- I have a public key ASDVKpY197mr9of1D44fuPwJhESiuireGAjklHQ9UC_sbAo
To claim this, I am signing this object:
import argparse | |
import collections | |
import json | |
import sys | |
def sort_json(json_obj): | |
if isinstance(json_obj, dict): | |
sorted_dict = collections.OrderedDict() | |
for key in sorted(json_obj.keys()): | |
sorted_dict[key] = sort_json(json_obj[key]) |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"strings" | |
"github.com/capitalone/fpe/ff1" | |
//"alphabets" | |
) |
@if (@X)==(@Y) @end /* JScript comment | |
@echo off | |
REM Polyglot code adapted from https://stackoverflow.com/a/24396149/591064 | |
setlocal enableDelayedExpansion | |
REM Too few arguments? | |
if "x%1" == "x" goto usage_help | |
REM Find the latest JScript.Net compiler | |
for /f "tokens=* delims=" %%v in ('dir /b /s /a:-d /o:-n "%SystemRoot%\Microsoft.NET\Framework\*jsc.exe"') do ( |
import re | |
emp = 'cn.l.ble.901:itc' | |
#Test regex here: | |
#https://pythex.org/?regex=%5E(%5Ba-z%5D%7B2%2C4%7D)%5C.l%5C.(%5Ba-z%5D%2B%3F)%5C.(.*)%3A(.*)&test_string=cn.l.ble.901%3Atmc | |
pattern = re.compile(r'^([a-z]{2,4})\.l\.([a-z]+?)\.(.*):(.*)') | |
match = pattern.search(emp) | |
scac, origin, number, topic = match.groups() | |
#print(scac, origin, number, topic) | |
print(f'emp={emp}') | |
print(f'locoid={origin}{number}') |
import itertools | |
tests_passed = { | |
'simple end of line': | |
[ b'One\nSSH>', | |
b'no!', | |
], | |
'simple begining of line': | |
[ b'SSH>', | |
], |
import concurrent.futures | |
import logging | |
import threading | |
import time | |
import random | |
def return_after_5_secs(num, stop): | |
threading.current_thread().name = f"banane{num}" | |
logging.debug(f"from inside {num}") |
#See https://stackoverflow.com/q/54425723/591064 for usage | |
async def adapter_cmdloop(self, intro=None): | |
"""Repeatedly issue a prompt, accept input, parse an initial prefix | |
off the received input, and dispatch to action methods, passing them | |
the remainder of the line as argument. | |
""" | |
self.preloop() | |
#This is the same code as the Python 3.7.2 Cmd class, with the |
from __future__ import print_function | |
import base64 | |
import json | |
import os.path | |
import pprint | |
import sys | |
import time | |
import zlib |
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEg1SqWNfe5q/aH9Q+OH7j8CYREoroq3hgI5JR0PVAv7GwKp3BheWxvYWTFAul7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwZDUyYTk2MzVmN2I5YWJmNjg3ZjUwZjhlMWZiOGZjMDk4NDQ0YTJiYTJhZGUxODA4ZTQ5NDc0M2Q1MDJmZWM2YzBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwZDUyYTk2MzVmN2I5YWJmNjg3ZjUwZjhlMWZiOGZjMDk4NDQ0YTJiYTJhZGUxODA4ZTQ5NDc0M2Q1MDJmZWM2YzBhIiwidWlkIjoiOGRhODVkNTNhZGU3NDc3MDAzYjc5MjFhMWY1MWQ4MTkiLCJ1c2VybmFtZSI6Iml4ZTAxMyJ9LCJzZXJ2aWNlIjp7Im5hbWUiOiJnaXRodWIiLCJ1c2VybmFtZSI6Iml4ZTAxMyJ9LCJ0eXBlIjoid2ViX3NlcnZpY2VfYmluZGluZyIsInZlcnNpb24iOjF9LCJjbGllbnQiOnsibmFtZSI6ImtleWJhc2UuaW8gZ28gY2xpZW50IiwidmVyc2lvbiI6IjEuMC4yMSJ9LCJjdGltZSI6MTQ5MjQ4NDQ3NCwiZXhwaXJlX2luIjo1MDQ1NzYwMDAsIm1lcmtsZV9yb290Ijp7ImN0aW1lIjoxNDkyNDg0NDQ5LCJoYXNoIjoiODY4YmNiYmY0Njk2NTQ2OTA3OWYyYTFiNjgxZWU3NzhlN2VmNDg4N2I4NzY5OWY0ZjNkNGI2YTQ5ODYzZWI0YzM5ODgwYWNlNTg3YTkzNTIyODkxNTM5ZDRiMmRlMWNlNGZkOTk4ZWM0MjY5ZDc0N2QyZWVjNWFkYmU5YWFmMzUiLCJzZXFubyI6MTAyNTMyMX0sInByZXYiOiI3ZDNmODlhYTQ5YmMxZmM3OGM2YjA3N2UyMzY4YjkzNTk4Mjk4 |