Skip to content

Instantly share code, notes, and snippets.

View rgunindi's full-sized avatar
🏠
Working from home

Ramazan rgunindi

🏠
Working from home
View GitHub Profile
@rgunindi
rgunindi / wgcf_discord.sh
Created March 14, 2025 10:00 — forked from umutbasal/wgcf_discord.sh
Discord Wg CF script to create warp wireguard config with discord ips to split traffic
docker run --rm -it \
-v ./output:/output \
--entrypoint sh virb3/wgcf:latest -c "
apk add --no-cache curl && \
./wgcf register --accept-tos && \
./wgcf generate && \
mv wgcf-profile.conf /output/wg0.conf && \
curl https://raw.githubusercontent.com/GhostRooter0953/discord-voice-ips/refs/heads/master/main_domains/discord-main-ip-list -o discord-main-ips.txt && \
curl https://raw.githubusercontent.com/GhostRooter0953/discord-voice-ips/refs/heads/master/voice_domains/discord-voice-ip-list -o discord-voice-ips.txt && \
discord_ips=\$(cat discord-main-ips.txt | tr '\n' ',' | sed 's/,$//') && \
@rgunindi
rgunindi / check.go
Created April 14, 2022 21:25 — forked from mattes/check.go
Check if file or directory exists in Golang
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) {
// path/to/whatever does not exist
}
if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) {
// path/to/whatever exists
}
@rgunindi
rgunindi / README.MD
Created December 24, 2021 11:51 — forked from RichardBronosky/README.MD
cb - A leak-proof tee to the clipboard - Unify the copy and paste commands into one intelligent chainable command.

cb

A leak-proof tee to the clipboard

This script is modeled after tee (see [man tee][2]) and works on Linux, macOS, Cygwin, WSL/WSL2

It's like your normal copy and paste commands, but unified and able to sense when you want it to be chainable.

This project started as an answer to the StackOverflow question: [How can I copy the output of a command directly into my clipboard?][3]