Skip to content

Instantly share code, notes, and snippets.

@langerhans
langerhans / README.md
Last active March 7, 2024 08:49
Updating MultiDoge checkpoints

Updating MutliDoge checkpoints

Why?

If you are using MultiDoge and are stuck far behind in syncing, then this guide is for you. Even if you are currently already synced it's worth following this guide to be prepared for future re-syncs, but you can skip some steps. These new checkpoints contain blocks up to Jan 30th 2021. If you are trying to sync a wallet that has been created before around summer 2016, then sadly this won't really help you.

How?

  1. Close MultiDoge completely.
  2. Download this file: multidoge.checkpoints
  3. Copy this file to the MultiDoge data directory. See below for the path. Overwrite the existing file. If you are already synced, you're done at this point, If not, continue.
  4. Start MultiDoge.
@maxivak
maxivak / _0__ssl_certbot_letsencrypt.md
Last active April 16, 2024 21:48
Let's encrypt SSL certificates using certbot in docker

Directories on host machine:

  • /data/certbot/letsencrypt

  • /data/certbot/www

  • Nginx server in docker container

docker run -d --name nginx \
@jmoz
jmoz / ftx_websockets.js
Created June 2, 2020 07:59
FTX Websockets Javascript
const symbols = [
"BTC-PERP",
"BTC/USD",
"ETH-PERP",
"ETH/USD",
];
const ws_init = function () {
ws = new WebSocket("wss://ftx.com/ws/");
@Goon3r
Goon3r / rtorrent-watch-directorys.sh
Last active July 26, 2022 19:07
Example of adding a watch directory to rtorrent via .rtorrent.rc
# The following line can be added to .rtorrent.rc to set up watch directories
#
# Replace:
# [WATCH_DIR] with the directory to watch for torrent files
# [DOWNLOAD_DIR] with the directory to save the files into
# [LABEL] with a label to apply to torrents added via this watch dir
# Important: Thus far i have not worked out how to use spaces in label names
# Do not include spaces for .torrent files will not be imported into rtorrent if you do
#
# Remove:
@HackingGate
HackingGate / restore_last_git_modified_time.sh
Last active March 13, 2024 10:27
Retrieve and set the last modification date of all files in a git repository. Solution for https://stackoverflow.com/a/55609950/4063462
#!/bin/sh -e
OS=${OS:-`uname`}
if [ "$OS" = 'Darwin' ]; then
get_touch_time() {
date -r ${unixtime} +'%Y%m%d%H%M.%S'
}
else
# default Linux
@Jun-Wang-2018
Jun-Wang-2018 / Bitcoin_from_private_key_to_WIF.py
Last active December 25, 2023 23:49
From private key(hex) to Wallet Import Format(WIF)
# From private key(hex) to Wallet Import Format(WIF)
# Reference: https://medium.freecodecamp.org/how-to-create-a-bitcoin-wallet-address-from-a-private-key-eca3ddd9c05f
# https://docs.python.org/2/library/hashlib.html
import codecs #If not installed: "pip3 install codecs"
import hashlib
# PK0 is a demo private key.
PK0 = "841846de7afbe32ee7ded837872c6e0825db095275b8afed0000000000000000"
PK1 = '80'+ PK0
PK2 = hashlib.sha256(codecs.decode(PK1, 'hex'))
PK3 = hashlib.sha256(PK2.digest())
@System-Glitch
System-Glitch / generate_blocks.sh
Last active May 7, 2024 18:42
Tutorial for bitcoin regtest
# Script to generate a new block every minute
# Put this script at the root of your unpacked folder
#!/bin/bash
echo "Generating a block every minute. Press [CTRL+C] to stop.."
address=`./bin/bitcoin-cli getnewaddress`
while :
do
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 8, 2024 07:24
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@Someguy123
Someguy123 / deswappify.pl
Last active February 11, 2024 19:34 — forked from WGH-/deswappify.pl
#!/usr/bin/perl
use strict;
use Fcntl qw(SEEK_SET);
sub deswappify {
my $pid = shift;
my $fh = undef;
my $start_addr;
@Someguy123
Someguy123 / logwatcher.sh
Created September 15, 2018 00:17
get timestamps on your steem docker logs
#!/bin/bash
# get timestamps on your steem docker logs
# by @someguy123
: ${DOCKER_NAME=seed}
LOG_PATH=$(docker inspect $DOCKER_NAME | jq -r .[0].LogPath)
pipe=/tmp/dkpipe.fifo
trap "rm -f $pipe" EXIT
if [[ ! -p $pipe ]]; then
mkfifo $pipe