Skip to content

Instantly share code, notes, and snippets.

View hectorm's full-sized avatar
🐳

Héctor Molinero Fernández hectorm

🐳
View GitHub Profile
@hectorm
hectorm / he-ipv6.service
Created January 21, 2023 19:38
Hurricane Electric IPv6 Tunnel Broker service
[Unit]
Description=he.net IPv6 tunnel
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
Environment=SERVER_IPV4_ADDR=xxx.xxx.xxx.xxx
Environment=CLIENT_IPV6_ADDR=xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/xx
#!/bin/sh
# Author: Héctor Molinero Fernández <hector@molinero.xyz>
# License: MIT, https://opensource.org/licenses/MIT
# Usage:
# ssh root@xxx.xxx.xxx.xxx 'sh -s' < dd_wrt_backup.sh > dd_wrt_restore.sh
# ssh root@xxx.xxx.xxx.xxx 'sh -s' < dd_wrt_restore.sh
set -eu
export LC_ALL=C
#!/bin/sh
set -eu
sleep -- "${1:-5}"
xdotool type --delay 50 -- "$(xsel -bo | tr \\n \\r | sed s/\\r*\$//g)"
#!/bin/sh
set -eu
GIT_DIR="${HOME}/.dotfiles";
GIT_CMD="${1:-}"
dotgit() {
git --git-dir="${GIT_DIR}" --work-tree="${HOME}" "$@"
}
@hectorm
hectorm / README.md
Created May 7, 2017 20:47 — forked from jm3/README.md
Cognitive Bias Codex
#!/bin/sh
# Author: Héctor Molinero Fernández <hector@molinero.xyz>
# License: MIT, https://opensource.org/licenses/MIT
# Usage:
# ssh root@xxx.xxx.xxx.xxx 'sh -s' < tomato_backup.sh > tomato_restore.sh
# ssh root@xxx.xxx.xxx.xxx 'sh -s' < tomato_restore.sh
set -eu
export LC_ALL=C
#!/bin/bash
#
# License:
# * Copyright (C) 2014 Héctor Molinero Fernández
# *
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation, either version 3 of the License, or
# * (at your option) any later version.
# *