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
Import new connection: | |
nmcli connection import type wireguard file developers-amst.conf | |
Disable autoconnect: | |
nmcli connection modify developers-amst autoconnect no | |
Check connection profile: | |
nmcli connection show developers-amst | |
Wireguard Indicator: |
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
//1. Check the size of existing swap space | |
free -m | |
//2.Create a swap file of size 1 GB | |
sudo fallocate -l 1G /swap_file | |
//3.Secure the swap file | |
chmod 600 /swap_file | |
//4.Enable the Swap Area on Swap File |
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
version: "3" | |
services: | |
buf: | |
build: | |
context: . | |
dockerfile: docker/proto.Dockerfile | |
volumes: | |
- ./:/workspace | |
working_dir: /workspace |
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
git clone https://github.com/Nyr/openvpn-install | |
chmod +x ./openvpn-install/openvpn-install.sh | |
./openvpn-install/openvpn-install.sh |
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
<?php | |
function handle(): void | |
{ | |
$method = 'AES-128-GCM'; | |
$msg = 'message'; | |
$pass = 'password'; | |
$tagLength = 16; | |
$key = hash('md5', $pass, true); |
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
paste -d " " file1.txt file2.txt > merged.txt |
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
<?php | |
public function getTree(): array | |
{ | |
$trees = []; | |
$stack = []; | |
$categories = ...; | |
foreach ($categories as $category) { |