^-?([0-8]?[0-9]|90)(\.[0-9]{1,10})$
- 56.3847
- -56.387
package main | |
/* | |
#include <unistd.h> | |
*/ | |
import "C" | |
import ( | |
"fmt" | |
"time" | |
) |
99% of the information in this guide is taken from here: https://golb.hplar.ch/2019/01/expose-server-vpn.html I've added some stuff and changed some things to suit my needs.
A much easier method would be to follow: Routing Plex traffic through an SSH Tunnel
Both solutions work, however I've had better success with Wireguard.
Make sure your VPS is KVM. I've used both BuyVM and ServerCheap and have had good results.
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
// Filename: HttpServer.cs | |
// Author: Benjamin N. Summerton <define-private-public> | |
// License: Unlicense (http://unlicense.org/) | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Net; | |
using System.Threading.Tasks; |
// First, download and unzip the Adafruit-Motor-Shield-library-master library from https://github.com/adafruit/Adafruit-Motor-Shield-library | |
// Extract the ZIP file and copy the folder into the Arduino/libraries directory (inside your Documents folder) | |
#include <AFMotor.h> | |
#define echoPin 9 // attach pin D9 on Arduino (SER1 on motor shield)) to ECHO pin on ultrasonic sensor | |
#define trigPin 10 // attach pin D10 on Arduino (SERVO_2 on motor shield) to TRIG pin on ultrasonic sensor | |
long duration; // duration of sound wave travel | |
int distance; // distance measured |
import { isFunction, isObjectLike } from 'lodash-es' | |
import { useCallback, useRef, useState, useMemo, Dispatch, SetStateAction } from 'react' | |
/** | |
* @author 447f@misaka.org | |
* this hook allows reading an updated state value | |
* immediately by an extra ref. | |
* write to this ref is **not allowed** and should | |
* trigger an error. | |
* @example |