Skip to content

Instantly share code, notes, and snippets.

View russeree's full-sized avatar
🍊
💊

Portland.HODL russeree

🍊
💊
View GitHub Profile
@russeree
russeree / errors.log
Created July 5, 2024 23:00
Clang++ Cuda Errors
clang++ -x cuda --cuda-gpu-arch=sm_61 -I/opt/cuda/lib64 axpy.cu -o axpy -L/opt/cuda/lib32 -lcudart_static -ldl -lrt -pthread
clang++: warning: CUDA version is newer than the latest supported version 12.3 [-Wunknown-cuda-version]
In file included from <built-in>:1:
In file included from /usr/local/lib/clang/18/include/__clang_cuda_runtime_wrapper.h:41:
In file included from /usr/local/lib/clang/18/include/cuda_wrappers/cmath:27:
In file included from /usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/cmath:49:
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/bits/std_abs.h:137:7: error: __float128 is not supported on this target
137 | abs(__float128 __x)
| ^
@russeree
russeree / axpy.cu
Created July 5, 2024 22:56
Cuda Clang++ Hello World
#include <iostream>
__global__ void axpy(float a, float* x, float* y) {
y[threadIdx.x] = a * x[threadIdx.x];
}
int main(int argc, char* argv[]) {
const int kDataLen = 4;
float a = 2.0f;
@russeree
russeree / rpi_keyboard_latency_tester.py
Last active January 17, 2024 13:08
A Raspberry Pi Keyboard Latency Tester GPIO18
###
# Portland.HODL USB HID Latency Tester
# Engineered for RaspberryPi(4/5)
import csv
import hid
import time
import RPi.GPIO as GPIO
def list_hid_devices():
@russeree
russeree / phishbowl.py
Created October 22, 2023 01:10
A quick and dirty script to spam secure-blockstream.com phishing site with junk seeds.
import random
import requests
import uuid
from multiprocessing import Process, cpu_count
def read_bip39_words(filename):
with open(filename, 'r') as file:
return [line.strip() for line in file]
def generate_seed_phrase(word_list, num_words=12):

The BEST Sourdough Discard Chocolate Chip Cookies

This recipe is a Tik Tok and Instagram favorite!

  • Servings: 36
  • Prep Time: 1 hour
  • Cook Time: 14 mins

Ingredients:

  • 4 cups all-purpose flour
  • 2 tsp baking soda
We can't make this file beautiful and searchable because it's too large.
txid,vout
c6dfc55675414c61cdaebae6629f333e0102ae8d5ce468a0679741330cff5e9a,4
7d9dcf0e419bda1f791343eaa8c0e8a29bed461b5d792acf94478d2c06a3ecc7,40
1dea410e76d9971c2c584e2f5a04c7620d960f88f0d60ae8e9a81aa4502fc0cd,95
493dde8af86c6d9a451524f0ac8e104e903fc93b7d1f4a758399cc6953b9ec33,0
255651e88eded9bbd7dc1d7db208446b26dc19cf8a62d976d7f0e840837d48eb,51
84af6f819851dff5622031274ff3265a532881eab4829a080d026eac3addbbdd,84
f1656e37b73c8c856e0288db5451fca24273f4a99f34dab43863578e2e834fb9,88
d79445765cb73a45912552dadf92dc692bf0fedfe512cce3a68444814bb00f51,70
91a9beae4416c3f8d3447ae79945848f28f87b415ce6448d99f5bf35c69c194c,19
@russeree
russeree / output.txt
Created January 29, 2023 14:17
Output of test/asn_limit.py
ipv4 ASN:AS24875 has 1 entires.
ipv4 ASN:AS16509 has 2 entires.
ipv4 ASN:AS3356 has 1 entires.
ipv4 ASN:AS202425 has 1 entires.
ipv4 ASN:AS8708 has 2 entires.
ipv4 ASN:AS50673 has 2 entires.
ipv4 ASN:AS50923 has 1 entires.
ipv4 ASN:AS42831 has 2 entires.
ipv4 ASN:AS31200 has 2 entires.
ipv4 ASN:AS34665 has 1 entires.
@russeree
russeree / spiral_solver.py
Created August 25, 2022 05:37
A Private Key Solver for Spirals in a 6x4 Square.
import re
import copy
import binascii
from bip_utils import (
Bip39EntropyBitLen,
Bip39EntropyGenerator,
Bip39WordsNum,
Bip39Languages,
Bip39MnemonicGenerator,
#include <iostream>
//Pass F by a reference and incrament it
int ref_pass(int& x){
x++;
return x;
}
int main()
{
int x = 0;