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

Keybase proof

I hereby claim:

  • I am hectorm on github.
  • I am hectorm (https://keybase.io/hectorm) on keybase.
  • I have a public key whose fingerprint is D286 3C42 4639 2093 DE02 86B6 921F 464C E33C 86CF

To claim this, I am signing this object:

#!/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
@hectorm
hectorm / DisqusVigLinkRemover.user.js
Last active February 26, 2017 00:11
Disqus VigLink remover
// ==UserScript==
// @name Disqus VigLink remover
// @namespace xyz.molinero
// @version 1.0.2
// @grant none
// @run-at document-end
// @include /^https?:\/\/(www\.)?disqus.com\/embed\/.*$/
// @downloadURL https://gist.github.com/zant95/9f1867da5170240b3a8943857fdb900d/raw/DisqusVigLinkRemover.user.js
// ==/UserScript==
#!/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.
# *