Skip to content

Instantly share code, notes, and snippets.

View mebeim's full-sized avatar

Marco Bonelli mebeim

View GitHub Profile
@mebeim
mebeim / glider_gun.py
Created December 30, 2023 13:52
LED Name Badge Conway's Game of Life Glider Gun
#!/usr/bin/env python3
#
# @mebeim - 2023-12-30
#
# ./glider_gun.py
# sudo python3 ./led-badge-11x44.py -s 8 -m 5 :glider_gun_sprite.png:
#
# Generate a Glider Gun PNG sprite for the LED name badge, writable to the badge
# using the code here https://github.com/jnweiger/led-name-badge-ls32
#
@mebeim
mebeim / so-layout-whack-a-mole.user.js
Last active May 17, 2022 15:49
Fix new "responsive" and unusable design of StackOverflow user profiles
// ==UserScript==
// @name SO Layout Whack-A-Mole
// @description Fix new "responsive" and unusable design of StackOverflow user profiles
// @version 0.8.1
// @author Marco Bonelli
// @namespace https://mebeim.net
// @match https://stackoverflow.com/users/*/*
// @downloadURL https://gist.githubusercontent.com/mebeim/b50951a0f4bbcaac0c1aa73e6a7cdc66/raw/so-layout-whack-a-mole.user.js
// @updateURL https://gist.githubusercontent.com/mebeim/b50951a0f4bbcaac0c1aa73e6a7cdc66/raw/so-layout-whack-a-mole.user.js
// @grant none
@mebeim
mebeim / midnightsun_2020_pwn4_expl.py
Last active April 4, 2020 21:05
Midnight Sun CTF 2020 pwn4
#!/usr/bin/env python2
# Author: Marco Bonelli - @mebeim
# Date : 2020-04-04
# Basic idea:
# Copy the secret (4 bytes) from the stack to our guess variable (also on the stack) and pass the check.
#
# %<N>d normally this lets us print N characters total (a decimal int padded to N spaces).
# %*25$d the asterisk lets us choose the value for N from the stack, so we choose 25$, which is the
# position of the secret value: this will therefore print a number of chars equal to the secret value.
@mebeim
mebeim / tldr_translate_next_page.py
Created August 20, 2019 02:16
Finds the next TLDR page (in alphabetical order) to translate from English to the chosen target language, copy it in the correct folder and open it with the default editor.
#!/usr/bin/env python3
# Find the next TLDR page to translate from English to the chosen target
# language. Python >= 3.2 required.
#
# Author: Marco Bonelli.
import os
import sys
import shutil
@mebeim
mebeim / keybase.md
Created March 21, 2018 10:43
Proof for my Keybase account.

Keybase proof

I hereby claim:

  • I am mebeim on github.
  • I am mebeim (https://keybase.io/mebeim) on keybase.
  • I have a public key ASCgdVFRYfLRDqLiW9_a278k0jZPKLN7B2BJC3N31ZoBAgo

To claim this, I am signing this object: