Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "your_email@example.com"
#!/bin/bash | |
# NAS IP: 192.168.1.10 in this example | |
# DHCP scope reservation for macvlan: 192.168.1.210/28 (Details below) | |
## Network: 192.168.1.210/28 | |
## HostMin: 192.168.1.211 | |
## HostMax: 192.168.1.224 | |
## Hosts/Net: 14 | |
# Create a Synology macvlan0 bridge network attached to the physical eth0, and add the ip range scope (sudo) |
The purpouse is to have a WireGuard server running with a configuration for 2 clients to connect to the WireGuard server.
Follow the instructions for downloading and installing the WireGuard package here: https://github.com/WireGuard/wireguard-vyatta-ubnt
curl -OL https://github.com/WireGuard/wireguard-vyatta-ubnt/releases/download/${RELEASE}/${BOARD}-${RELEASE}.deb
sudo dpkg -i ${BOARD}-${RELEASE}.deb
#!/bin/bash | |
function __set_proxy_envs() { | |
NO_PROXY_ENV="no_proxy NO_PROXY" | |
PROXY_ENV="http_proxy https_proxy all_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY" | |
} | |
function __unset_proxy_envs() { | |
unset NO_PROXY_ENV PROXY_ENV | |
} |
ESPeasy rules | |
//GIO14 == Relay 1 = blauw | |
//GPIO12 == Relay 2 = geel | |
//GPIO13 == Relay 3 = oranje | |
on IGNITION do | |
// Close relays contacts | |
gpio,14,1 | |
gpio,13,1 | |
timerSet 1,1 // 1 second delay |
#!/bin/python2s | |
# Symbolic name, meaning all available interfaces | |
VAR_HOST = "" | |
# Arbitrary non-privileged port | |
VAR_PORT = 9003 | |
import socket | |
import sys |
# Put in ~/.bashrc | then source ~/.bashrc | |
if [[ -z "${TMUX}" ]] && [[ "${UID}" != 0 ]]; then | |
tmux new-session -A -s 0 | |
fi |
#### Set up Docker Daemon | |
#### Check if this script is ran with admin rights | |
# if no - exit with message | |
function Test-Elevation { | |
$role = [Security.Principal.WindowsBuiltInRole]::Administrator | |
$principal = [Security.Principal.WindowsPrincipal]` | |
[Security.Principal.WindowsIdentity]::GetCurrent() | |
$principal.IsInRole($role) | |
} |
ask_password: | |
@$(eval PASSWORD=$(shell stty -echo; read -p "Password: " pwd; stty echo; echo $$pwd)) | |
echo $(PASSWORD) | |
ask_password_twice: | |
while true; do \ | |
read -s -p "Password: " password; \ | |
echo; \ | |
read -s -p "Password (again): " password2; \ |