Skip to content

Instantly share code, notes, and snippets.

View fufuok's full-sized avatar
😸

Fufu fufuok

😸
View GitHub Profile
@fufuok
fufuok / tcpproxy.go
Created May 8, 2021 07:47
Simple TCP Proxy by mjibson / proxy
package main
import (
"flag"
"fmt"
"io"
"log"
"net"
)
@fufuok
fufuok / fileserve.go
Created May 8, 2021 08:19
Simple file serve by mjibson
package main
import (
"flag"
"io"
"log"
"net/http"
"os"
"path/filepath"
)
@fufuok
fufuok / start-ssh-agent.sh
Created December 20, 2021 08:48
Forked from justinribeiro/instruct.md (ssh-agent-windows)
1. Open git-bash on Windows. (or on linux)
2. Make sure you have a .profile: `touch .profile`
3. Open .profile and add:
```shell
env=~/.ssh/agent.env
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }
agent_start () {
(umask 077; ssh-agent >| "$env")
. "$env" >| /dev/null ; }
@fufuok
fufuok / demo-requests-bind-src-ip.py
Last active July 10, 2023 06:33
python3 requests bind source IP request. 绑定接口IP(源IP)请求URL.
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""
demo-requests-bind-src-ip.py
~~~~~~~~
:author: Fufu, 2022/12/28
"""
import socket
import sys
@fufuok
fufuok / demo-request-bind-local-ip-hosts.go
Created December 30, 2022 04:40
Golang binds the local interface IP to request the URL, and you can choose to specify the domain name resolution result IP or customize DNS resolution. 绑定接口IP(源IP)请求URL, 指定域名解析结果IP.
package main
import (
"context"
"flag"
"io"
"log"
"net"
"net/http"
"os"
@fufuok
fufuok / unicode symbols
Created January 11, 2024 00:27 — forked from datawookie/unicode symbols
Useful Unicode characters
https://github.com/muan/unicode-emoji-json
° — degree
× — times
💣 — bomb
💥 — explosion
🔥 — fire
🎉 — tada
🧯 — fire extinguisher