Skip to content

Instantly share code, notes, and snippets.

View giammin's full-sized avatar
😱
coding hard

giammin giammin

😱
coding hard
View GitHub Profile
@davidfowl
davidfowl / MinimalAPIs.md
Last active May 18, 2024 18:28
Minimal APIs at a glance
@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.
@dinvlad
dinvlad / retries.ts
Last active February 2, 2024 16:18
Retries with exponential backoff and jitter for idempotent background Google Cloud Functions
// one can also use Google Cloud Firestore library,
// with a slight change in semantics
import { firestore } from 'firebase-admin';
import { EventContext, runWith } from 'firebase-functions';
import { promisify } from 'util';
const eventCollection = 'function-events';
enum EventStatus {
RUNNING = 'running',
@g3rhard
g3rhard / docker-compose.yaml
Created July 10, 2019 06:01
docker-compose for ipsec vpn + pihole + telegram proxy
version: '2'
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
volumes:
- /etc/localtime:/etc/localtime:ro
- /dev/rtc:/dev/rtc:ro
dns:
@NickCraver
NickCraver / BotLovin.cs
Last active January 5, 2023 11:36
Some bot/crawler fun on Stack Overflow. 10 hours of fun, to be precise.
private static readonly string[] tenHoursOfFun =
{
"https://www.youtube.com/watch?v=wbby9coDRCk",
"https://www.youtube.com/watch?v=nb2evY0kmpQ",
"https://www.youtube.com/watch?v=eh7lp9umG2I",
"https://www.youtube.com/watch?v=z9Uz1icjwrM",
"https://www.youtube.com/watch?v=Sagg08DrO5U",
"https://www.youtube.com/watch?v=5XmjJvJTyx0",
"https://www.youtube.com/watch?v=IkdmOVejUlI",
"https://www.youtube.com/watch?v=jScuYd3_xdQ",