Skip to content

Instantly share code, notes, and snippets.

View ptman's full-sized avatar
💭
.

Paul Tötterman ptman

💭
.
View GitHub Profile
@ara4n
ara4n / matrix-fails-wins.md
Last active August 1, 2025 12:57
Matrix fails & successes

(Context: this is a lightly edited transcript of a self-appraisal I posted as Matrix project lead into the TWIM offtopic room a few months ago: https://matrix.to/#/!xALORqBdeiSfgdrmUb:bpulse.org/$4bGbRTxNAa4inTTo8zb5rQnmU5HQCyF3J0poX5qnTw8?via=matrix.org&via=envs.net&via=element.io, posted as a gist here so I could link to it from https://news.ycombinator.com/item?id=44621077 for the benefit of folks who might not want to follow a permalink).


i spend quite a lot of time talking about the things i've screwed up (c.f. much of my FOSDEM talk this year: https://youtu.be/lkCKhP1jxdk?t=740)

fwiw, a current snapshot of things i feel i've got wrong would look like this:

  • Not investing enough in trust & safety. It was always seen as “well, that’d be a good problem to have, let’s fix it when we get there”. I can literally remember the ~2014 vintage conversations of saying “what are we going to do about spam” and everyone shrugging, saying it’s a hard problem, and agreeing to cross that bridge when we come
const TelegramBot = require('node-telegram-bot-api');
const { execSync } = require('child_process');
// replace the value below with the Telegram token you receive from @BotFather
const token = '123456789:ABCDEFGHIJKLMNOP';
const dlpath = 'https://api.telegram.org/file/bot'+token+'/'
// /home/root/bin/adddoc is an adaptation of addWithMetadataIfNew with exit 0 on new add
// from https://gist.github.com/Utopiah/e2d5c944bbd632e3ae0530e602977f45
// epubTemplate is based on https://gist.github.com/Utopiah/6728a2477de1c09be4150e43c439e0dd
@KoryNunn
KoryNunn / handshake-airdrop.md
Last active March 12, 2024 07:03
Handshake airdrop for github users.

Had 15 github followers in 2019? You can get about $4kAUD of crypto for minimal effort.

Explain this scam

That's legitimately a good default position to hold, however, in this case, the free money is a function of time, and not only charity.

In February 2020, in order to promote Handshake (HNS) to developers, an airdrop was offered to any Github user with more than 15 followers. The Airdrop would give you 4246HNS, at the time worth around at $0.08USD per coin, for a total of $339.68USD, pretty generous!

Today, 4246HNS is worth around $4000 dollarydoos, and there are plenty of github users who haven't claimed theirs.

@bluewalk
bluewalk / GetNordVPNWireGuardDetails.md
Last active August 21, 2025 12:04
Getting NordVPN WireGuard details

About

Instructions to obtain WireGuard details of your NordVPN account. These can be used to setup a WireGuard tunnel on your router to NordVPN.

Source: https://forum.gl-inet.com/t/configure-wireguard-client-to-connect-to-nordvpn-servers/10422/27

Prerequisites

If you have any linux machine, use that or install a vm if you don't have one.

Get their official linux app installed. Make sure you have wireguard installed too. And set the used technology to Nordlynx by running nordvpn set technology nordlynx

@ykarikos
ykarikos / FTN-Tupas.md
Last active June 4, 2025 07:35
FTN Test accounts and personal ID numbers for Finnish bank authentication

Finnish Trust Network (FTN)

Uses OIDC (OpenID connect) or SAML 2.0 See also: https://developer.signicat.com/identity-methods/ftn/test/

Bank Personal ID number (Hetu) Firstname Lastname Username Password
Nordea 010200A9618 Onni Juhani Korhonen DEMOUSER1
Nordea 291292-918R Aino Olivia Virtanen DEMOUSER2
Nordea 030883-925M Eino Ilmari Mäkinen DEMOUSER3
Falsehoods even programmers believe about filesystems
-----------------------------------------------------
I haven't collected evidence someone baked all of these misconceptions into a single program, but boy howdy
are some of them widespread.
1. Deleting and recreating a file is exactly the same as using `ftruncate` on it.
* Not on FAT, NTFS, or anything suitable as a Linux rootfs.
+ Mozilla Thunderbird at least used to assume this about its profile directory.
@enricofoltran
enricofoltran / main.go
Last active July 19, 2025 10:43
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@tylerapplebaum
tylerapplebaum / Get-Traceroute.ps1
Last active July 23, 2025 18:38
MTR for Powershell
<#
.SYNOPSIS
An MTR clone for PowerShell.
Written by Tyler Applebaum.
Version 2.1
.LINK
https://gist.github.com/tylerapplebaum/dc527a3bd875f11871e2
http://www.team-cymru.org/IP-ASN-mapping.html#dns
@kachayev
kachayev / concurrency-in-go.md
Last active May 4, 2025 05:48
Channels Are Not Enough or Why Pipelining Is Not That Easy