The following document describes how to setup quickly an Open VPN server.
This file contains hidden or 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
#!/bin/bash | |
rm .eslintrc.json | |
rm .eslintignore | |
# eslint.config.js | |
echo "import js from '@eslint/js';" > eslint.config.js | |
echo "import globals from 'globals';" >> eslint.config.js | |
echo "import reactHooks from 'eslint-plugin-react-hooks';" >> eslint.config.js | |
echo "import reactRefresh from 'eslint-plugin-react-refresh';" >> eslint.config.js |
This file contains hidden or 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
/// A macro to create a [`HashMap<&str, HashMap<&str, String>>`] from a list of variables | |
/// | |
/// The syntax is: `vars_by_file! { "file_name" => { "VAR_NAME" => "value", "VAR_NAME2" => "value" }, "file_name_2" => { ... } }` | |
/// | |
/// ### Example | |
/// | |
/// ```rust | |
/// let vars = vars_by_file! { "foo" => { "WASM" => "foo.wasm", "PATH" => "/tmp" }, "bar" => { "WASM" => "bar.wasm" } }; | |
/// let foo_vars = vars.get("foo").unwrap(); |
This file contains hidden or 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
Jessica | |
Ashley | |
Jennifer | |
Amanda | |
Sarah | |
Stephanie | |
Nicole | |
Heather | |
Elizabeth | |
Megan |
This file contains hidden or 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
echo 0 > /sys/class/graphics/fbcon/rotate # 0 | |
echo 1 > /sys/class/graphics/fbcon/rotate # 90 | |
echo 2 > /sys/class/graphics/fbcon/rotate # 180 | |
echo 3 > /sys/class/graphics/fbcon/rotate # 270 | |
# If fbcon doesn't work, try fb0 too. Depends on your machine. |
This file contains hidden or 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/python3 | |
from base64 import b64decode | |
from sys import argv, exit | |
if __name__ == "__main__": | |
args = argv[1:] | |
if len(args) < 1: | |
print("Usage: %s <input> [output]" % argv[0]) |
This file contains hidden or 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
# Bash ! | |
function fixdir { | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <directory>" | |
return 1 | |
fi | |
DIR=$1 |
This file contains hidden or 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
git config --global alias.yolo '!git add -A && git commit -m "$(curl --silent --fail https://whatthecommit.com/index.txt)"' |