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
| ssh root@192.168.1.1 << 'SCRIPT_EOF' | |
| cat << "EOF" > /etc/hotplug.d/openvpn/10-resolv | |
| # /etc/hotplug.d/openvpn/10-resolv | |
| # OpenVPN hotplug script for DNS management | |
| LOG() { | |
| logger -t openvpn-hotplug "$*" | |
| } | |
| CHANGE_DNS() { |
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
| @' | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <unattend | |
| xmlns="urn:schemas-microsoft-com:unattend"> | |
| <settings pass="generalize"> | |
| <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" | |
| xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls> | |
| </component> |
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/env bash | |
| if [ -z "$1" ] | |
| then | |
| echo "Usage: $0 HOSTNAME IP (optional)" | |
| exit 0 | |
| fi | |
| HOST=$1 | |
| IP=$2 |
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
| using SQLite; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.IO.Compression; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApp1 |
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
| #include <iostream> | |
| #include <vector> | |
| #include <fstream> | |
| #include <cmath> | |
| #include <clocale> | |
| using namespace std; | |
| double solve_rect_l(double (*func)(double g), double x, double h) |