sudo apt update && sudo apt upgrade
apt install wireguard net-tools curl wget git
:local queueName "Client-$leaseActMAC"; | |
:local ipAdd "$leaseActIP/32"; | |
:if ([:len [/queue simple find name=$queueName]] = 0) do={ | |
:log info "No Queue"; | |
/queue simple add name=$queueName target=($ipAdd) limit-at=10M/4M max-limit=10M/4M comment=[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name]; | |
} else={ | |
:log info "exists"; | |
:local ada [/queue simple get [find name=$queueName] target]; |
{ | |
"id": "45c0996e-ac5e-4271-80e1-a09a16391a27", | |
"name": "Sonoff Mini", | |
"values": [ | |
{ | |
"key": "sonoff_ip", | |
"value": "10.0.1.32", | |
"enabled": true | |
}, | |
{ |
#!/bin/bash | |
cat > /usr/local/etc/pf-nat.conf << EOF | |
nat on en0 from vnic1:network to any -> (en0) | |
EOF | |
sudo pfctl -d | |
sudo sysctl -w net.inet.ip.forwarding=1 | |
sudo pfctl -f /usr/local/etc/pf-nat.conf -e |
--- | |
#https://doc.owncloud.com/server/10.7/admin_manual/installation/docker/#raspberry-pi | |
version: '3.7' | |
services: | |
traefik: | |
container_name: proxy | |
image: traefik | |
restart: always | |
command: | |
- "--log.level=DEBUG" |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.9.0/kind-linux-amd64 | |
chmod +x ./kind | |
mv ./kind $HOME/.local/bin/kind |
flatpak from Ubuntu package server via the following command. | |
sudo apt update && sudo apt install flatpak | |
https://github.com/bazukas/obs-linuxbrowser | |
https://linuxhint.com/install_obs_ubuntu/#:~:text=Install%20OBS%20from%20Ubuntu%20Package%20Server&text=To%20get%20this%20program%20from,refresh%20the%20APT%20repository%20cache.&text=Now%2C%20install%20OBS%20Studio. |
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf | |
overlay | |
br_netfilter | |
ip_vs_rr | |
ip_vs_wrr | |
ip_vs_sh | |
nf_conntrack_ipv4 | |
ip_vs | |
EOF |
drop database sonarqube | |
CREATE DATABASE sonar COLLATE Latin1_General_100_CS_AS_SC; | |
ALTER DATABASE sonar SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE; |
https://github.com/jenkins-infra/crawler | |
https://pghalliday.com/jenkins/groovy/sonar/chef/configuration/management/2014/09/21/some-useful-jenkins-groovy-scripts.html | |
https://github.com/Praqma/JenkinsAsCodeReference/tree/master/dockerizeit/master | |
https://github.com/Praqma/JenkinsAsCodeReference/blob/master/dockerizeit/master/globalPipelineLibraries.groovy | |
https://github.com/dianariyanto/virtual-display-linux |