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
Manual parameters on GUI : | |
Protocol : NCM | |
Port : /dev/cdc-wdm0 | |
PIN <= don't forget to disable PIN code (unknown issue when it's setted) | |
Others depending of your provider | |
If Authentication is NONE : | |
change line 20 at /etc/gcom/ncm.json : "connect": "AT^NDISDUP=${profile},1${apn:+,\\\"$apn\\\"}${username:+,\\\"$username\\\"}${password:+,\\\"$password\\\"}", |
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
#!/bin/bash | |
WINDOWS_USER="<windows_user>" | |
sudo apt update | |
sudo apt install build-essential flex bison libssl-dev libelf-dev bc libncurses-dev autoconf libudev-dev libtool dwarves -y | |
WSLKERNEL=$(uname -a | cut -d " " -f3 | cut -d "-" -f1) | |
CHECKOUT_DIR="linux-msft-wsl-${WSLKERNEL}" | |
export WSLKERNEL | |
export CHECKOUT_DIR | |
export WINDOWS_USER |
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
apt update | |
apt upgrade -y | |
apt install -y chrony sudo vim bash-completion | |
sed -i 's/DAEMON_OPTS="-F 1"/DAEMON_OPTS="-F 1 -x"/' /etc/default/chrony | |
touch /etc/.pve-ignore.hostname | |
hostname -f > /etc/hostname | |
echo "deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free" > /etc/apt/sources.list.d/debian_11_backports.list | |
apt update | |
reboot | |
apt install -y freeipa-client |
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 | |
#!/usr/local/bin/php | |
require_once("config.inc"); | |
require_once("interfaces.inc"); | |
require_once("util.inc"); | |
$api_key = "API_KEY"; | |
$client_key = "CLIENT_KEY"; | |
$IPFO = "IP_VIP_FO"; |
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
#!/bin/bash | |
declare -a meshnetworks | |
declare -A hosts | |
declare -A wg_port | |
declare -A wg_subnet | |
configdir="/tmp/wireguard" | |
sshport=21 | |
meshnetworks=("net1" "net2" "net3") | |
wg_port[net1]=1655 |
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
#!bin/bash | |
for pid in `lsof +L1 | grep deleted | awk '{print $2}' | uniq` | |
do | |
for fdid in `ls -l /proc/${pid}/fd | grep deleted | awk '{print $9}'` | |
do | |
> "/proc/${pid}/fd/${fdid}" | |
done | |
done |
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
# Enable automated data access under https://postmaster.live.com/snds/auto.aspx | |
import datetime | |
import requests | |
import shutil | |
DATA_URL = 'https://postmaster.live.com/snds/data.aspx?key=xx' | |
for i in range(90): | |
date = datetime.datetime.now() + datetime.timedelta(-i) |