Skip to content

Instantly share code, notes, and snippets.

View starise's full-sized avatar
Damn fine coffee

Andrea Brandi starise

Damn fine coffee
View GitHub Profile
@RobinLinus
RobinLinus / covenants.md
Last active June 12, 2024 19:23
A collection of resources related to covenants
@gbrlb
gbrlb / weekelynote.md
Last active January 24, 2024 14:19
Weekly Review - Worked This Week : Obsidian dataview to md table + admonition + copy button

2022-W08

  • File name must be in kkkk-'W'WW format, for example 2022-W08
  • Uncomment last line dv.paragraph(mdv); if you like to see the result inside a collapse ad-note
  • You could copy the table and delete the dataview to maintain the work today table, and the links inside the table will update, but the table will remain for future review.
  • To exclude a folder modifly dailynotes in:
let pages = dv.pages('-"dailynotes"')
@gbrlb
gbrlb / dailynote.md
Last active January 24, 2024 14:19
Daily Review - Worked Today : Obsidian dataview to md table + admonition + copy button

{{date}}

  • File name must be in yyyy-MM-dd format, for example 2022-02-23
  • Uncomment last line dv.paragraph(mdv); if you like to see the result inside a collapse ad-note
  • You could copy the table and delete the dataview to maintain the work today table, and the links inside the table will update, but the table will remain for future review.
  • To exclude a folder modifly dailynotes in:
const created_dv_rows = dv.pages('-"dailynotes"')
...
@jcnelson
jcnelson / appchains.md
Last active February 2, 2023 05:09
Appchains

Revisions

  • Oct 19 2021: deployed MVP v2 of the appchain mining contract and updated the links and examples in this document to use it instead.

Introduction

Blockchains don't scale. The fact that all nodes process all transactions means that the blockchain only goes as fast as the slowest node allowed on the network. If that's something like a Raspberry Pi, then that's as fast as the blockchain goes.

And that's okay! The upside is that the more people can run nodes, the more resilient the blockchain will be. It's much harder to break a 10,000-node blockchain where most nodes run on home computers all across the world than a 10,000-node blockchain where most nodes run in a few datacenters.

@BenKato151
BenKato151 / VTube Studio [Arch Linux Guide].md
Last active July 17, 2024 19:00
A Guide to get VTube Studio and VSeeFace working on Linux. Tested on Arch Linux

VTube Studio/OpenSeeFace/VSeeFace Guide (tested on Arch Linux)

Requirements:

  • Latest Proton (GE-Proton, Proton-Experimental are both okay)
  • git
  • wine64
  • lutris (winetricks)
  • Install system packages for python (3.11.3 is okay):
@kepano
kepano / obsidian-web-clipper.js
Last active July 26, 2024 00:31
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@pauljacobson
pauljacobson / vault_stats.py
Last active April 8, 2022 15:19
A Python script to generate Obsidian vault stats
# Huge thanks to Rythm for the original code
# that I adapted for this script
# Source: https://j.mp/2UPeDJh
import os.path
import datetime
FILE_PATH = "/path/to/vault/directory/"
TODAY = datetime.datetime.today()
LAST_UPDATE = "{:%A %d %B, %Y at %H:%M}".format(TODAY)
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var styleEl = document.getElementById('css-layout-hack');
if (styleEl) {
styleEl.remove();
return;
}
styleEl = document.createElement('style');
styleEl.id = 'css-layout-hack';
@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active July 13, 2024 08:35
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

#!/bin/bash
sysctl -w net.core.netdev_max_backlog="150000"
sysctl -w net.core.rmem_max="16777216"
sysctl -w net.core.somaxconn="65535"
sysctl -w net.core.wmem_max="16777216"
sysctl -w net.ipv4.ip_local_port_range="1025 65535"
sysctl -w net.ipv4.tcp_fin_timeout="20"
sysctl -w net.ipv4.tcp_keepalive_time="30"
sysctl -w net.ipv4.tcp_max_syn_backlog="20480"