Skip to content

Instantly share code, notes, and snippets.

View os555's full-sized avatar

Outhai SAIOUDOM os555

View GitHub Profile
@pich4ya
pich4ya / ssh_tunnel.txt
Last active October 9, 2023 15:44
การทำ SSH Tunnel (-D, -R, -L)
# @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 ต่ออีกที
@pich4ya
pich4ya / binance_balance_to_line_notify.py
Created March 8, 2021 15:07
Binance Balance Summary to LINE Notify
# -*- 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
@narate
narate / docker-compose.yml
Created May 24, 2020 07:03
Pi-Hole Docker Compose
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"