Skip to content

Instantly share code, notes, and snippets.

View consti's full-sized avatar
:shipit:
casting spells

Constantin Hofstetter consti

:shipit:
casting spells
View GitHub Profile
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active October 6, 2025 20:22
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

###
This super simple script loads SlimFAQ content into any page.
Specify a category from SlimFAQ by it's URL, and put a simple
template into the HTML, and this script will auto-load those questions
into the page. When clicked, the links will open inside the SlimFAQ sidebar.
Sample html template:
<div data-slimfaq-category='http://faq.groupmuse.com/323-hosting' data-slimfaq-limit=2>
<h2 data-slimfaq-category-name></h2>
<p data-slimfaq-question-template></p>
// Report on "stuck" ether in empty contracts
// https://github.com/ethereum/EIPs/issues/156
// Usage: node find-stuck-ether.js [startBlock] [endBlock] > report.txt
let Eth = require('ethjs');
let eth = new Eth(new Eth.HttpProvider('http://localhost:8545'));
let ethutil = require('ethereumjs-util')
async function main() {

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 1, 2026 19:17
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@ongkiii
ongkiii / IPA-Sources.md
Last active May 2, 2026 06:50
REPOS/TELEGRAM CHANNELS LIST BY u/angkitbharadwaj