Skip to content

Instantly share code, notes, and snippets.

@phoe
phoe / forever.md
Last active June 21, 2025 13:28
Forever Stable Branch

Forever Stable Branch

Stable branch, I can see you in the stable branch
See you again, I see you again
In my dreams, in my dreams, in my dreams, in my dreams

Morning light, I remember the morning li-i-i-i-ight
Outside my door (outside my door), I'll see you no more (see you no more)
In my dreams, in my dreams, in my dreams, in my dreams
>

@skullchap
skullchap / shitplate.c
Last active December 21, 2021 23:43
simple dull way of http template generation
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BFSZ 1024
char* template = "test.html";
char* generated = "new_test.html";
char* listFile = "zanimals.txt";
@hydrastro
hydrastro / dead_switch.sh
Last active October 23, 2021 16:19
dead_switch.sh
#!/bin/bash
# Add this script to crontab:
# `sudo printf "33 3\t* * *\troot\t/etc/dead_switch.sh" >> /etc/crontab`
# Dead Switch configuration
your_email=""
server_username=""
warning_time=$((3600 * 24 * 14))
trigger_time=$((3600 * 24 * 28))
@hydrastro
hydrastro / fizzbuzz.c
Last active November 20, 2021 08:30
fizzbuzz.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char *
itoa (
int value ,
char *
result ),
charlist [
10 ];
@hydrastro
hydrastro / send_mail.sh
Last active October 22, 2021 13:18
Bash SMTP(/S) authentication and mailsending script
#!/bin/bash
smtp_address=""
smtp_username=""
smtp_password=""
smtp_server=""
smtp_port=587
use_starttls=true
send_mail() {
@robertobermejo
robertobermejo / moria.txt
Created October 4, 2019 12:38
Moria Ascii Art
. @$* @$3
'$Nueeed$$ed$$eeec$$
, 4$Lze@*$C2$b* ed(he*rb$CC$*$bc@$r
/@ |~~ .e$$"W$$B$B$** ^$ e""##d?$Bd$$$Nc. .. @\/~\
\==| 4$kd*Cr$6F#"` ** .*== # '"**F#$I$b$* | I
| d$5N@$$" ....eu$$$$$$N$*$zbeuu #$d$$$$b. / @/
@/ . z$Ted*"$P zue$*9d$$$@# W$e@B$$L. "#@$E$b@N
#d$Id*P# 'Nd$$B$**" .*, "#*N$$b$c $$$*$$c
.d#+C6J @@$B$*" -***- "#$$$$c *$$$#$u
..u$l4@"^"zJ$7W*" '*` ^*$@$$$r "$$E$@B>
@vasanthk
vasanthk / System Design.md
Last active December 31, 2025 23:02
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?