Skip to content

Instantly share code, notes, and snippets.

@yebekhe
yebekhe / sing-box-warp-conf-gen.ipynb
Last active February 22, 2024 15:02
WARP Sing-Box Config Generator
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mer30hamid
mer30hamid / config.json
Created April 21, 2023 07:36
XRAY config + load balancer + warp + block iranian hosts - you can add outbounds that have tag that begins with "proxy" (eg "proxy1", "proxy2" ...) then all requests to paths that ends with /loadbalance will go through them.
{
"log" : {
"access" : "XRAY_ACCESS_LOGPATH",
"error" : "XRAY_ERROR_LOGPATH",
"loglevel" : "XRAY_LOG_LEVEL"
},
"dns" : {
"servers" : [ "https+local://8.8.8.8/dns-query" ]
},
"inbounds" : [
@ErFUN-KH
ErFUN-KH / VLESS-XTLS-uTLS-REALITY.json
Last active March 20, 2024 20:40
VLESS-XTLS-uTLS-REALITY
{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": [
#!/bin/bash
set -e
# !!!ONLY FOR MACOS!!!
# This script helps you to bypass VPN for specific CIDRs and domain names by adding a direct route to the default gateway for them.
# It also can be used to setup a killswitch. When killswitch is enabled, Only IP traffic to the VPN server (and other bypassed CIDRs) is allowed, All other packets would be dropped.
# Killswitch is powered by MacOS internal packet filter (PF) firewall.
# How to use?
@ashkanRmk
ashkanRmk / youtube_contest.py
Last active January 9, 2021 09:21
this snippet code choose 3 random winner of your specific YouTube video. implementation flow on : https://youtu.be/x3GqBhm3XuA
import requests as rq
import random
video_id = "[YOUR_VIDEO_ID]"
token = "[YOUR_TOKEN]"
url = "https://www.googleapis.com/youtube/v3/commentThreads"
response = rq.get(url, params={
'part' : 'replies,snippet',
'maxResults' : '100',
@oofnikj
oofnikj / answerfile
Last active March 28, 2024 13:29
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@nzec
nzec / README.MD
Last active February 23, 2024 01:08
DeezLoader Offical Page

Thanks to /u/zpoo32 for reporting several issues in this list!

Deemix

  • deemix: just the cli and the library
  • deemix-pyweb: the app with a GUI
  • deemix-server: just the server part of deemix-pyweb
@okeehou
okeehou / outline-server-setup.md
Last active March 18, 2024 00:43
How to setup an Outline VPN Server on Ubuntu 16.04

How to setup an Outline VPN Server on Ubuntu 16.04 Server

This guide will show you how to install Outline Server on an Ubuntu 16.04 Server, use Outline Manager for Windows and connect to your Outline Server on Windows and Anroid.

Install Outline Manager

Outline Manager supports Windows, macOS and Linux.

Outline Manager for Windows

@wojteklu
wojteklu / clean_code.md
Last active March 28, 2024 21:09
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"