echo if_bridge_load=YES >> /boot/loader.conf
echo net.link.bridge.inherit_mac=1 >> /etc/sysctl.conf
| #![no_std] | |
| #![no_main] | |
| #![feature(type_alias_impl_trait)] | |
| #![feature(extend_one)] | |
| #![deny( | |
| clippy::mem_forget, | |
| reason = "mem::forget is generally not safe to do with esp_hal types, especially those \ | |
| holding buffers for the duration of a data transfer." | |
| )] |
| 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,""); |