Skip to content

Instantly share code, notes, and snippets.

@Vulcalien
Vulcalien / md5sum-recursive
Created November 4, 2023 13:24
Call 'md5sum' on all files inside a directory and subdirectories
#!/bin/sh
find "$1" -type f -exec md5sum "{}" \;
@Vulcalien
Vulcalien / snes-minecraft.joystick.amgp
Created May 14, 2022 22:24
AntiMicroX mapping file for playing Minecraft using a SNES controller
<?xml version="1.0" encoding="UTF-8"?>
<joystick configversion="19" appversion="3.1.4">
<!--The SDL name for a joystick is included for informational purposes only.-->
<sdlname>USB gamepad</sdlname>
<!--The Unique ID for a joystick is included for informational purposes only.-->
<uniqueID>030000001f08000001e4000010010000</uniqueID>
<profilename>SNES Minecraft</profilename>
<keyPressTime>10</keyPressTime>
<sets>
<set index="3">
@Vulcalien
Vulcalien / battery
Created April 14, 2022 09:29
Check your battery level on the terminal
#!/bin/sh
charge_now=$(cat /sys/class/power_supply/BAT0/charge_now)
charge_full=$(cat /sys/class/power_supply/BAT0/charge_full)
echo $((100 * $charge_now / $charge_full))%
@Vulcalien
Vulcalien / backup-repos.py
Last active November 9, 2023 09:32
Backup all public repositories for a GitHub user (set variable USER)
#!/bin/python3
# Copyright 2022 Vulcalien
#
# License: http://creativecommons.org/publicdomain/zero/1.0/
# To the extent possible under law, Vulcalien has waived all
# copyright and related or neighboring rights to this work.
#
# Backup all public repositories for a GitHub user.
# By default, forks are skipped.