Skip to content

Instantly share code, notes, and snippets.

View maxiwu's full-sized avatar
💭
struggling with OAuth & JWT & Load balance

maxi.wu maxiwu

💭
struggling with OAuth & JWT & Load balance
View GitHub Profile
@avoidik
avoidik / install.cmd
Last active July 11, 2022 16:37
Azure-Cli under cygwin
@echo off
setup-x86_64.exe -g -B -D -L -d -o -N -s http://cygwin.mirror.constant.com/ -l c:/tools/cygwin/distro -R c:/tools/cygwin -M
@mildred
mildred / howto_nat_traversal.md
Last active December 9, 2023 06:59
How To TCP NAT Traversal using Node.js and a STUN Server

How To TCP NAT Traversal using Node.js and a STUN Server

With the scarecity of IPv4 addresses, and IPv6 still not available at large, NAT traversal is becoming a necessity. Especially with the generalisation of Carrier-grade NATs that you can find on mobile connections. Even with IPv6 you may suffer NAT66. Imagine your mobile device that gets only a single Ipv6 address, and you want to share it on your computer.

The solution might be in a decentralized protocol for address attribution such

@sym3tri
sym3tri / ES5 Newnewss
Created April 20, 2012 04:18
New features of ES5 summarized
- Trailing commas are ok
- No reserved words for property names
- NaN, Infinity, undefined : are all constants
- parseInt() defaults to radix 10
- /regexp/ produces new reg ex object every time
- JSON.parse(), JSON.stringify()
- Function.prototype.bind
- String.prototype.trim
- Array.prototype.every, filter, forEach, indexOf, lastIndexOf, map, reduce, reduceRight, some,
- Date.now()
@jewelsea
jewelsea / DatePicker.java
Created December 2, 2011 11:06
Sample DatePicker for JavaFX using jQuery UI
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.beans.property.ReadOnlyObjectWrapper;
import javafx.beans.property.ReadOnlyStringProperty;
import javafx.beans.property.ReadOnlyStringWrapper;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.EventHandler;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebEvent;
import javafx.scene.web.WebView;