Skip to content

Instantly share code, notes, and snippets.

View Madh93's full-sized avatar
🏠
Working from home

Miguel Hernández Madh93

🏠
Working from home
View GitHub Profile
@GAS85
GAS85 / nextcloud_fail2ban.md
Last active March 1, 2025 11:55
Harden Nextcloud 17+ with Fail2Ban, GUI and WebDAV - Ubuntu 20.04

Fail2ban and Nextcloud

Prerequsits

  • Ubuntu 20.04
  • nextcloud, fail2ban and e.g. iptables are installed

Note

@pastleo
pastleo / nm_l2tp_ipsec_vpn.md
Last active November 10, 2025 07:53
setup L2TP IPSEC VPN in archlinux using NetworkManager
@enoliglesias
enoliglesias / config.ru
Last active April 19, 2017 17:56
Some examples for my "Rack basics" slides :)
class Wadus
def call(env)
['200', {'X-Wadus' => 'Foo'}, ['Rack app with config.ru file']]
end
end
run Wadus.new
@justjanne
justjanne / Price Breakdown.md
Last active January 4, 2026 18:41 — forked from kylemanna/price.txt
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Permalink: git.io/vps

$5/mo

Provider Type RAM Cores Storage Transfer Network Price
@ictlyh
ictlyh / test-argp.c
Created November 30, 2016 10:01
Demo of parsing program options with Argp
/*
* Demo of parsing program options with Argp
* Build: gcc test-argp.c -o test-argp
* Run: ./test-argp
*/
#include <argp.h>
#include <stdlib.h>
/* Program documentation. */
@Brainiarc7
Brainiarc7 / VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md
Last active January 10, 2026 17:56
This gist contains instructions on setting up FFmpeg and Libav to use VAAPI-based hardware accelerated encoding (on supported platforms) for H.264 (and H.265 on supported hardware) video formats.

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".

@parmentf
parmentf / GitCommitEmoji.md
Last active January 12, 2026 18:32
Git Commit message Emoji
@hyOzd
hyOzd / reload_ext.sh
Last active January 6, 2025 18:10
Reload a cinnamon extension or applet from the command line. Useful during extension/applet development. Replace the EXTENSION_UUID at the end of the command with your extensions UUID.
# replace the EXTENSION_UUID with your extension/applet/desklet name
# replace the APPLET with other types if you are not working with an applet
dbus-send --session --dest=org.Cinnamon.LookingGlass --type=method_call /org/Cinnamon/LookingGlass org.Cinnamon.LookingGlass.ReloadExtension string:'EXTENSION_UUID' string:'APPLET'
@mhitza
mhitza / Makefile
Last active November 16, 2025 17:32
Programming Arduino Uno (ATmega386P) in assembly
%.hex: %.asm
avra -fI $<
rm *.eep.hex *.obj *.cof
all: $(patsubst %.asm,%.hex,$(wildcard *.asm))
upload: ${program}.hex
avrdude -c arduino -p m328p -P /dev/arduino-uno -b 115200 -U flash:w:$<
monitor: