Skip to content

Instantly share code, notes, and snippets.

View lionants02's full-sized avatar

Max Thanachai Thongkum lionants02

View GitHub Profile
@lionants02
lionants02 / thailand.json
Last active May 6, 2022 09:17 — forked from jeepkd/thailand.json
Simplified GeoJson for provinces of Thailand. Including new province Bueng Kan.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lionants02
lionants02 / README.md
Created May 23, 2022 21:46 — forked from bwann/README.md
Tunnelling SSH over SSL/TLS

How to tunnel SSH over SSL/TLS

laptop ssh -> laptop stunnel -> evil network -> internet -> your server -> your server ssh

Server (your shell server/home box/work box/whatever)

Sets up a stunnel process listening externally on port 2443/tcp, forwards to localhost 22/tcp

  • Install stunnel, e.g. yum install stunnel
  • Install server config snippet to /etc/stunnel/stunnel.conf
@lionants02
lionants02 / curl-websocket.sh
Last active June 9, 2022 05:08 — forked from htp/curl-websocket.sh
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/