This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
set -eu | |
set -o pipefail | |
tar czvf backup-"$(date --iso-8601=seconds | tr -d ':' | sed -E 's/(\+0000)//')".tar.gz "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set autoindent | |
set ruler | |
set expandtab | |
set smartindent | |
set showmatch | |
set colorcolumn=60 | |
highlight ColorColumn ctermbg=lightgray | |
set shiftwidth=4 | |
set tabstop=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/nft -f | |
# | |
# IPv4/IPv6 Simple & Safe firewall ruleset. | |
# More examples in /usr/share/nftables/ and /usr/share/doc/nftables/examples/. | |
# | |
# Begin by completely removing any previously established rules. | |
flush ruleset | |
table inet filter { | |
chain input { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Bare-bones implementation of wget utility that works on Windows, | |
* Arch Linux, FreeBSD, and OpenBSD. | |
*/ | |
#ifndef _CRT_SECURE_NO_WARNINGS | |
#define _CRT_SECURE_NO_WARNINGS | |
#endif | |
#include <sys/types.h> |