Skip to content

Instantly share code, notes, and snippets.

View buzztiaan's full-sized avatar
🍑
peachy

buZz buzztiaan

🍑
peachy
View GitHub Profile
@buzztiaan
buzztiaan / gist:fce50252924c38df1e066d39df935165
Last active February 11, 2018 02:28
some bitcoin handy things
# import all privkeys
cat FILEWITHALLPRIVKEYS | xargs -I {} ./bitcoin-cli importprivkey {} "" false
# find all addresses in wallet
./bgold-cli listaddressgroupings | grep \"G | cut -b 8- | cut -b -34 > addresses
# import addresses you have (dno why this was needed)
cat addresses | xargs -I {} ./bgold-cli importaddress {} "" false
# greg's 'throw blocks around' oneliner
#!/usr/bin/env python
from bitcoinrpc import authproxy
import pprint
import sys
import datetime
import pandas as pd
import ast
@buzztiaan
buzztiaan / gist:941e8df18a7d4b13dd4c92f51aa65581
Created July 6, 2017 14:07
copy latest 2 files from all subdirs
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SET HENK=
SET TRUUS=
SET ROOT=%1
SET ROOT=%ROOT:~1%
SET ROOT=%ROOT:~0,-1%
Verifying my Blockstack ID is secured with the address 1Kk6P24bgW1WzxaQby3a7ifeJy6JE48wCF https://explorer.blockstack.org/address/1Kk6P24bgW1WzxaQby3a7ifeJy6JE48wCF
# BetaFlight/SPRACINGF3EVO 3.0.1 Oct 18 2016 / 10:36:44 (48b7b4f)
# dump
# version
# BetaFlight/SPRACINGF3EVO 3.0.1 Oct 18 2016 / 10:36:44 (48b7b4f)
# name
name -
@buzztiaan
buzztiaan / gist:1021cef65b314099c6fdf90d43e1b95e
Created December 2, 2016 16:54
QX70 stock config (cleanflight 1.13.0)
# version
# Cleanflight/SPRACINGF3EVO 1.13.0 Jun 6 2016 / 00:03:29 (a77bc76)
# dump master
# mixer
mixer QUADX
mmix reset
smix reset
import urllib
import random
import gzip
import time
import os
import re
user_agents = [
'Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11',
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)',
// bitcointicker v0.04
// buZz / NURDspace
// libraries used;
//
// * https://github.com/squix78/esp8266-oled-ssd1306
// * https://github.com/tzapu/WiFiManager
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#!/bin/sh
# 2014-07-06
#
# This is the procedure to get oclvanitygen running with AMD Raedon 7xxx
# on a fresh install of Ubuntu 64-bit. (tested with Ubuntu 12.04 and 14.04)
# install tools, dependencies and driver
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) restricted"
#!/bin/bash
while true; do
OMGMAXYO=128
L32=$[ 1 + $[ RANDOM % $OMGMAXYO ]]
L33=$[ 1 + $[ RANDOM % $OMGMAXYO ]]
L34=$[ 1 + $[ RANDOM % $OMGMAXYO ]]
L35=$[ 1 + $[ RANDOM % $OMGMAXYO ]]