This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # @author LongCat (p.morimoto@sth.sh) | |
| # การทำ SSH Tunnel (-D, -R, -L) | |
| กรณี 1: -D ทำ socks4a proxy ไปออกเน็ตที่เครื่อง ssh server | |
| ทำให้เรามี proxy บนเครื่อง MacOS ที่ถ้าเราใช้ proxy นี้จะ route network ไปที่ ssh server ได้ | |
| ตัวอย่างเช่น server A ต่อหา server B ได้, เราต่อหา server A ได้ แต่เราต่อหา server B โดยตรงไม่ได้ | |
| ทำให้เราสามารถทำ proxy ให้เน็ตวิ่งไป server A -> server B ต่ออีกที |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| #!/usr/bin/env python | |
| # https://python-binance.readthedocs.io/en/latest/ | |
| # apt install python3-pip | |
| # pip3 install python-binance requests | |
| import requests | |
| from binance.client import Client | |
| import json | |
| import decimal | |
| import datetime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| services: | |
| pihole: | |
| container_name: pihole | |
| image: pihole/pihole:latest | |
| ports: | |
| - "53:53/tcp" | |
| - "53:53/udp" | |
| - "67:67/udp" | |
| - "80:80/tcp" |