Skip to content

Instantly share code, notes, and snippets.

@tshanky
tshanky / leverj_websocket_util.py
Created Apr 21, 2021
Leverj WebSocket Utility Methods
View leverj_websocket_util.py
import json
import time
from leverj.util import bytes_to_hexstring, round_with_precision, sign, to_vrs
def credentials(apikey_file):
with open(apikey_file) as json_apikey_file:
config_data = json.load(json_apikey_file)
print(f'config_data: {config_data}')
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created Apr 21, 2021
liberica11jrefull v11.0.11.9 - Passed - Package Tests Results
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Msi" displayName="Liberica JRE 11 Full (64-bit)" displayVersion="11.0.11.9">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3A24B027-6AA5-4B8A-BD71-21960890BC2E}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{3A24B027-6AA5-4B8A-BD71-21960890BC2E}]]></UninstallString>
@subbe
subbe / Apple_mobile_device_types.txt
Created Apr 21, 2021 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
View Apple_mobile_device_types.txt
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created Apr 21, 2021
liberica11jre v11.0.11.9 - Passed - Package Tests Results
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Msi" displayName="Liberica JRE 11 (64-bit)" displayVersion="11.0.11.9">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9A42D5A8-516A-49A7-A2D4-08FD7A1CD4FA}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{9A42D5A8-516A-49A7-A2D4-08FD7A1CD4FA}]]></UninstallString>
View hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View .vimrc
" Helps force plugins to load correctly when it is turned back on below
filetype off
" Plugs
call plug#begin('~/.vim/plugged')
Plug 'elixir-editors/vim-elixir'
Plug 'mhinz/vim-mix-format'
Plug 'maralla/completor.vim'
@nickperkins
nickperkins / deleteemptyfiles.sh
Last active Apr 21, 2021
Delete empty files from s3
View deleteemptyfiles.sh
aws s3api list-objects --bucket my-bucket-name --output json --query 'Contents[?Size==`0`]' | jq -r '.[] | [.Key] | @tsv' | xargs -n 1 sh -c 'aws s3 rm s3://my-bucket-name/$@' bash
View PY0101EN-1-2-Strings.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View runHelp
dv01_spark_run 1.0
Usage: scopt [options]
--job-id <value> id of job to run. Matches directory in Azure blob. `client/platform` for full pipeline. `client/platform/file` for just file
affirm/affirm
affirm_internal/affirm
affirm_platform/affirm
ag/barclays
allya_2017_1/edgar_auto
allya_2017_2/edgar_auto
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created Apr 21, 2021
liberica11jdkfull v11.0.11.9 - Passed - Package Tests Results
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Msi" displayName="Liberica JDK 11 Full (64-bit)" displayVersion="11.0.11.9">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7877AF9D-833B-459E-9D6F-BA69AAAA8BB6}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{7877AF9D-833B-459E-9D6F-BA69AAAA8BB6}]]></UninstallString>