Skip to content

Instantly share code, notes, and snippets.

@Warchant
Warchant / tn2mn.py
Last active July 29, 2026 20:58
Convert testnet private key to mainnet private key in Bitcoin
#!/usr/bin/env python
import base58
import hashlib
main = bytes([128])
test = bytes([239])
def decodeSecret(key, network):
assert isinstance(network, bytes), network
k = base58.b58decode_check(key)
@joshleecreates
joshleecreates / vm-profile.nix
Last active July 29, 2026 20:28
NixOS VM Profile
{ config, pkgs, modulesPath, lib, system, ... }:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
config = {
#Provide a default hostname
networking.hostName = lib.mkDefault "base";
@ih2502mk
ih2502mk / list.md
Last active July 29, 2026 20:12
Quantopian Lectures Saved
@subfuzion
subfuzion / curl.md
Last active July 29, 2026 20:07
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@HolyMonkey
HolyMonkey / Store.cs Secret
Last active July 29, 2026 19:51
Good iPhone12 = new Good("IPhone 12");
Good iPhone11 = new Good("IPhone 11");
Warehouse warehouse = new Warehouse();
Shop shop = new Shop(warehouse);
warehouse.Delive(iPhone12, 10);
warehouse.Delive(iPhone11, 1);
@davidair
davidair / attachment_remover.py
Last active July 29, 2026 19:48
Tool that uses the Gmail API to remove attachments from emails. Requires a Google Cloud Project, Gmail API enabled, Desktop App Credentials and the following pip packages: google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client click
#
# The MIT License
#
# Copyright 2024 David Airapetyan
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
@Maciejdziuba
Maciejdziuba / CHEATSHEET.md
Last active July 29, 2026 19:21
Kimi Everywhere — run any coding harness (Claude Code, Codex, OpenCode, Cline, Aider) on one flat-fee Kimi subscription. One key, two protocols, zero token bills.

Kimi Everywhere — Cheat Sheet

One Kimi Code subscription key. Every harness. Copy-paste and go.

Endpoints & key

What Value
Anthropic-compatible base URL https://api.kimi.com/coding/
OpenAI-compatible base URL https://api.kimi.com/coding/v1

Desenvolvimento de Software, Apps, Sites ou Hardware

Preencha os campos 1 a 5 até o Encontro 2. Os campos 6 a 8 podem ser refinados ao longo da orientação. Este documento é a base do seu projeto e do seu registro de horas.


IDENTIFICAÇÃO

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active July 29, 2026 21:06
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest