Skip to content

Instantly share code, notes, and snippets.

View jgensler8's full-sized avatar
🏗️
Loading...

Jeff Gensler jgensler8

🏗️
Loading...
View GitHub Profile
@jgensler8
jgensler8 / index.html
Created March 17, 2024 16:04
trading game bitsy
<!DOCTYPE HTML>
<html>
<!-- HEADER -->
<head>
<meta charset="UTF-8">
<title>Trading Game</title>
@jgensler8
jgensler8 / 1-submit-on-block.ts
Created August 23, 2023 21:45
first.lol webhook + submit
#!/usr/bin/env ts-node
// based on https://gist.github.com/tbtstl/4461367d2af6f9281be1d0331a0f01e7
import { createPublicClient, createWalletClient, parseGwei, publicActions, webSocket, Block } from 'viem'
import { zora } from 'viem/chains'
import { privateKeyToAccount } from 'viem/accounts'
import { readFileSync } from 'fs';
const delay = (ms: number) => new Promise(res => setTimeout(res, ms));
@jgensler8
jgensler8 / instructions.md
Last active December 3, 2022 23:30
fortnite scraper
{
"EZE": [
{
"aws_region": "us-east-2",
"distance": 21.705058999999995
},
{
"aws_region": "eu-central-1",
"distance": 81.82499299999999
},
running (10.5s), 00/10 VUs, 90 complete and 0 interrupted iterations
default ✓ [======================================] 10 VUs 10s
data_received..................: 460 kB 44 kB/s
data_sent......................: 17 kB 1.6 kB/s
http_req_blocked...............: avg=17.02ms min=0s med=0s max=153.44ms p(90)=152.42ms p(95)=153.44ms
http_req_connecting............: avg=1.02ms min=0s med=0s max=11.04ms p(90)=8.58ms p(95)=8.86ms
http_req_duration..............: avg=126.94ms min=67.03ms med=74.44ms max=494.14ms p(90)=284.07ms p(95)=428.87ms
{ expected_response:true }...: avg=126.94ms min=67.03ms med=74.44ms max=494.14ms p(90)=284.07ms p(95)=428.87ms
http_req_failed................: 0.00% ✓ 0 ✗ 90
@jgensler8
jgensler8 / after.out
Last active August 28, 2022 00:25
dbt compare: ssh tunnel + postgres --> athena
21:16:08 1 of 25 START table model public.bomb_sites .............. [RUN]
21:16:17 1 of 25 OK created table model public.bomb_sites ......... [OK -1 in 9.23s]
21:16:17 2 of 25 START table model public.characters .............. [RUN]
21:16:24 2 of 25 OK created table model public.characters ......... [OK -1 in 6.87s]
21:16:24 3 of 25 START table model public.leptons ................. [RUN]
21:16:30 3 of 25 OK created table model public.leptons ............ [OK -1 in 5.79s]
21:16:30 4 of 25 START table model public.map_geometries .......... [RUN]
21:16:36 4 of 25 OK created table model public.map_geometries ..... [OK -1 in 5.79s]
21:16:36 5 of 25 START table model public.maps .................... [RUN]
21:16:41 5 of 25 OK created table model public.maps ............... [OK -1 in 5.79s]
@jgensler8
jgensler8 / sol-wallet-adapter.js
Created June 11, 2021 20:49
webpacked sol-wallet-adapter
/*! For license information please see main.js.LICENSE.txt */
(()=>{var t={1506:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},8926:t=>{function e(t,e,r,n,i,o,s){try{var a=t[o](s),f=a.value}catch(t){return void r(t)}a.done?e(f):Promise.resolve(f).then(n,i)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(i,o){var s=t.apply(r,n);function a(t){e(s,i,o,a,f,"next",t)}function f(t){e(s,i,o,a,f,"throw",t)}a(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0},4575:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},3913:t=>{function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,r,n){re
@jgensler8
jgensler8 / README.md
Last active September 24, 2022 22:06
solana compute budget testing
# created by Gábor Bodnár 2020-12-24
# you can download SQLSaturday session files, which does not req authentication
# order from the newest to older files in batch . The latest is: 28874
# https://www.sqlsaturday.com/SessionDownload.aspx?suid=28865
# https://www.sqlsaturday.com/SessionDownload.aspx?suid=16007
# https://www.sqlsaturday.com/SessionDownload.aspx?suid=28134 (you can download from logged in site)
import sys
import os
import ntpath
@jgensler8
jgensler8 / gist:b92e7e180f2e9d24b4d25b501ac313f3
Created December 3, 2020 02:50
output from `adb logcat wpa_supplicant:V *:S` via https://stackoverflow.com/a/20624800
D/wpa_supplicant( 1837): wpa_supplicant v2.1-devel-4.4.4
D/wpa_supplicant( 1837): random: Trying to read entropy from /dev/random
I/wpa_supplicant( 1837): Successfully initialized wpa_supplicant
D/wpa_supplicant( 1837): Initializing interface 'wlan0' conf '/data/misc/wifi/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
D/wpa_supplicant( 1837): Configuration file '/data/misc/wifi/wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 1837): Reading configuration file '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 1837): update_config=1
D/wpa_supplicant( 1837): ctrl_interface='wlan0'
D/wpa_supplicant( 1837): eapol_version=1
D/wpa_supplicant( 1837): ap_scan=1