echo if_bridge_load=YES >> /boot/loader.conf
echo net.link.bridge.inherit_mac=1 >> /etc/sysctl.conf
use std::sync::{Arc, Condvar, Mutex}; | |
use std::thread; | |
use std::time::Duration; | |
static GUARD: Mutex<Option<Arc<(Mutex<u8>, Condvar)>>> = Mutex::new(None); | |
fn main() { | |
let guard = Arc::new((Mutex::new(0), Condvar::new())); | |
let guard_thread = guard.clone(); | |
{ |
set nocompatible | |
set nomodeline | |
set hidden | |
set bs=2 | |
set ai | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smarttab |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | |
<script src="//unpkg.com/alpinejs" defer></script> | |
<title>Modal</title> | |
</head> | |
<body> |
#!/bin/sh | |
# Configure WG endpoint (Oracle Linux) | |
WG_PRIVATE_KEY= | |
WG_ADDRESS= | |
WG_PEER= | |
WG_PSK= | |
WG_ALLOWED_IP= | |
WG_ENDPOINT= |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <sys/queue.h> | |
typedef struct _kv { |
from dnslib import DNSRecord,DNSError,QTYPE | |
ROOT_NS='198.41.0.4' | |
def find_cname(a,qtype,cname): | |
for r in a.rr: | |
if QTYPE[r.rtype] == qtype and r.rname == cname: | |
return str(r.rdata) | |
elif QTYPE[r.rtype] == 'CNAME' and r.rname == cname: | |
return find_cname(a,qtype,str(r.rdata)) |
/* | |
* Extracted from https://github.com/google/closure-library/blob/master/closure/goog/crypt/crypt.js | |
* | |
* @license | |
* Copyright The Closure Library Authors. | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
export function stringToUtf8ByteArray(str) { | |
var out = [], p = 0 |
import * as os from "os"; | |
import * as std from "std"; | |
export const Base64 = { | |
_key : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", | |
decode: function(input) { | |
input = input.replace(/[^A-Za-z0-9\+\/\=]/g,""); |
#!/bin/sh | |
set -o pipefail | |
set -o errexit | |
set -o nounset | |
USAGE="USAGE: $0 <template> <target> <userdata> [<instance_config>]" | |
TEMPLATE="${1?${USAGE}}" | |
TARGET="${2?${USAGE}}" |