Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
- Caddyfile
- config.json
- docker-compose.yml
Client side contents:
#!/usr/bin/lua5.1 | |
--- Async/Await for Lua 5.1 | |
-- This script implements async/await functions for Lua, allowing tasks to | |
-- be queued and scheduled independently. | |
-- | |
-- This is just an example and has a bunch of issues, isn't tested, isn't | |
-- even actually used anywhere; I basically just got bored and had one of | |
-- those "what if?" type ideas 6 hours ago. | |
local co_create = coroutine.create |
// Note that this is not the production code | |
pragma solidity 0.5.6; | |
import "./IERC20.sol"; | |
contract Wallet { | |
address internal token = 0x123...<hot_wallet_addr>; | |
address internal hotWallet = 0x321...<hot_wallet_addr>; | |
constructor() public { |
Install WireGuard via whatever package manager you use. For me, I use apt. | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
MacOS | |
$ brew install wireguard-tools | |
Generate key your key pairs. The key pairs are just that, key pairs. They can be |
Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
Client side contents:
NB;
192.168.3.XX
doesn't have to be an IP you own.#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <arpa/inet.h> | |
#include <string.h> | |
#include "trans_packet.h" | |
void on_packet_recv(char* from_ip, uint16_t from_port, char* payload, int size, unsigned int seq) { | |
printf("Packet received from=%s:%d, seq=%d\n", from_ip, from_port, seq); | |
char* message = (char*)malloc(size); | |
memcpy(message, payload, size); |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current window