Skip to content

Instantly share code, notes, and snippets.

View M3te0r's full-sized avatar

Mathieu Péquin M3te0r

View GitHub Profile
@adtac
adtac / Dockerfile
Last active February 28, 2025 02:18
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@jakobkmar
jakobkmar / hetzner_minecraft_srv.md
Last active September 9, 2024 22:26
Setup a Minecraft SRV record in Hetzner DNS

Setup a Minecraft SRV record in Hetzner DNS

With an SRV record you can let your domain point to a Minecraft server without subdomains and without the need for taking the whole @ namespace.

Create a simple A record

First, we'll create a normal A record which the SRV record can point to. Let's choose play.yourdomain.com for this.

image

@moyix
moyix / killbutmakeitlooklikeanaccident.sh
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
@lucabelluccini
lucabelluccini / rpi4.boot-from-sd-rootfs-on-usb.md
Last active October 13, 2023 12:38
Raspberry Pi 4 - Boot from SD, Rootfs on USB

Raspberry 4B - Boot from SD and rootfs on USB

Update

RPi4 now supports booting directly from USB. First update to get an eeprom which supports USB Boot, then configure the bootloader to boot from USB.

Original guide

  1. Download Raspbian from the official site
@kennwhite
kennwhite / chicken_shrimp_korma_mortal_v1.md
Last active April 17, 2019 17:24
Restaurant style chicken/prawn korma - mere mortal version (v. 1)

Kenn's Chicken/King Prawn Coconut Curry (Korma)

Ingredients

  • 2 cups red or yellow onions, well peeled, loosely chopped
  • 6 cloves peeled garlic, finely grated
  • 2" peeled ginger root, finely grated
  • Optional: 1 medium serrano green pepper, seeded & cored, finely minced (leave out for no heat, use half pepper for medium, full for spicy)
  • 14 oz plain greek yogurt (2% or whole milk, eg FAGE 5%)
  • large can (~14 oz) unsweetened coconut milk (ideally containing no guar gum; well blended if it does)
  • 3 TB cashew butter
@sebasten
sebasten / E32018.md
Last active February 12, 2024 22:02
Planning E3 2018

E3 2018

Vidéos de jeux (par date) | Vidéos de jeux (par ordre alphabétique) | Liens utiles | Une question, une remarque, un truc que j'ai oublié ? DM @netsabes

Le planning des confs au format .ics pour l'ajouter à votre 📆 agenda est ici.

Tous les horaires sont indiqués à l'heure de Paris.

⚠️ Quelques conseils de survie (parce que bon, c'est des jeux vidéo et on fait des blagues sur Twitter, mais c'est aussi du travail à des horaires pénibles) : évitez de perdre votre nuit à tout regarder en direct, ça ne sert pas à grand chose et au réveil on peut voir les mêmes vidéos. Si vous le faites quand même, évitez de manger trop gras, buvez de

@alirobe
alirobe / reclaimWindows10.ps1
Last active March 29, 2025 01:01
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@vasanthk
vasanthk / System Design.md
Last active April 2, 2025 06:20
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?
@brahmlower
brahmlower / koel-installation-docs_debian8.md
Last active June 8, 2021 09:03
This is installation documentation for installing Koel on Debian 8.

Installation on Debian 8

This is installation documentation for installing Koel on Debian 8.

Install Dependancies

Most packages can be installed via apt-get.

user@debian:~/$ sudo apt-get install -y apache2 mysql-server php5 php5-mysql g++ git curl

Composer

<?php
class Db
{
private $_connection;
private static $_instance; //The single instance
private $_host = DB_HOST;
private $_username = DB_USER;
private $_password = DB_PASSWORD;
private $_database = DB_DB;