Skip to content

Instantly share code, notes, and snippets.

View karliatto's full-sized avatar
🦖

karliatto karliatto

🦖
View GitHub Profile
@karliatto
karliatto / shell.nix
Last active December 8, 2024 11:55 — forked from 0xB10C/shell.nix
Nix shell for Bitcoin Core development
{ pkgs ? import <nixpkgs> {} }:
let
# BCC is currently broken in NixOS as it's compiled with a path to kernel modules that don't have the required information
bcc = pkgs.lib.overrideDerivation (pkgs.bcc) (old: { cmakeFlags = old.cmakeFlags ++ [ "-DBCC_KERNEL_MODULES_DIR=${pkgs.linux.dev}/lib/modules" ]; });
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
autoconf
@karliatto
karliatto / procedure.md
Created July 18, 2022 14:09 — forked from Kirens/procedure.md
Deploying a NixOS server on DigitalOcean

Prerequisites

We'll use NixOps to deploy, so we need to install it

nix-env -i nixops

And to deploy on DigitalOcean we need to have an account and create an API access token for it.

@karliatto
karliatto / TorNoAuth.md
Created March 28, 2022 08:17 — forked from DusanMadar/TorNoAuth.md
A step-by-step guide how to use Tor without Authentication
@karliatto
karliatto / lightning-txs.md
Created January 7, 2021 20:39
Lightning transactions: from Zero to Hero
@karliatto
karliatto / gitprint.js
Created November 8, 2019 14:07 — forked from beevelop/gitprint.js
Print GitHub markdown files
document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white')
document.querySelector('body').appendChild(document.querySelector('#readme'))
window.print()
@karliatto
karliatto / class_decorator.ts
Created January 3, 2018 13:26 — forked from remojansen/class_decorator.ts
TypeScript Decorators Examples
function logClass(target: any) {
// save a reference to the original constructor
var original = target;
// a utility function to generate instances of a class
function construct(constructor, args) {
var c : any = function () {
return constructor.apply(this, args);
}