Skip to content

Instantly share code, notes, and snippets.

View sae13's full-sized avatar

Saeb sae13

View GitHub Profile
@sae13
sae13 / .env
Last active April 6, 2024 04:50
send latest versions of ss apks to telegram
DEBUG=10
TG_API_ID=61369
TG_API_HASH=a2a6455ff461sdfsdf532ce03795278fb92f56
TG_BOT_TOKEN=6281007953:AAHE4sdsdfsdfl9h3XsdfsdfJK6-yWhaTdxkCE8pxizJbXgqQ
TG_CHANNEL_ID=-1000000
@sae13
sae13 / okala.fish
Last active April 3, 2024 07:26
پروتئین های موجود اطراف من در اکالا
while true;
clear;
curl -s 'https://apigateway.okala.com/api/Search/v1/Product/SearchByStoreGrouping?CategorySlugs=mutton&StoreIds=7470&StoreIds=6500&StoreIds=7096&StoreIds=7143&StoreIds=7294&StoreIds=5350&StoreIds=6792&StoreIds=7242&StoreIds=7329&StoreIds=7469&StoreIds=2223&StoreIds=6801&StoreIds=7679&StoreIds=4957&StoreIds=7636&StoreIds=2099&StoreIds=7295&StoreIds=4773&null&&&&hasQuantity=true&excludeShoppingCard=true' |jq '.entities[].products[].name'|uniq;
sleep 5;
end
"log": {
"level": "trace"
},
"inbounds": [
{
"type": "hysteria2",
"tag": "hy2-in",
"listen": "::",
"listen_port": 443,
@sae13
sae13 / ybkh.sh
Last active November 22, 2023 09:41
update yebekhe config
curl -s -L -o /tmp/ybkh.json https://69b.ir/ybkh;
sed -i 's|//.*||g' /tmp/ybkh.json;
sed -i 's|"listen_port": 2080,|"listen_port": 13741,|g' /tmp/ybkh.json;
sed -i 's|"level": "fatal",|"level": "debug","output": "box.log" ,|p' /tmp/ybkh.json ;
jq 'del(.inbounds[] | select(.tag=="tun-in"))' /tmp/ybkh.json > /tmp/ybkh.json.json;
kill -HUP "$(pgrep sing-box)"
@sae13
sae13 / config.json
Last active October 17, 2023 04:33
singbox route
{
"route": {
"geoip": {
"download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db"
},
"geosite": {
"download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db"
}
},
"rules": [
@sae13
sae13 / del_outlook.js
Created September 9, 2023 04:04
delete all outlook.com mails
function dd() {
try {
document.querySelector('button[title="انتخاب همه موارد در نما"]').click();
document.querySelector('button[title="حذف کردن (Del)"]').click()
} catch (error) {
console.table(error)
}
setTimeout(dd,400)
}
@sae13
sae13 / 1server.json
Last active July 20, 2023 15:40
sinxbox-reality sample
{
"inbounds": [
{
"type": "vless",
"tag": "vless-in",
"listen": "::",
"listen_port": 1443,
"sniff": true,
"sniff_override_destination": true,
"domain_strategy": "ipv4_only",
@sae13
sae13 / ss_xray.sh
Last active June 24, 2023 06:08
install ss+xray
#!/bin/bash
export version_vray="$(curl -L -s -o /dev/null -w %{url_effective} https://github.com/shadowsocks/v2ray-plugin/releases/latest|rev|cut -d/ -f1|rev)"
export version_xray="$(curl -L -s -o /dev/null -w %{url_effective} https://github.com/teddysun/xray-plugin/releases/latest|rev|cut -d/ -f1|rev)"
export version_ss="$(curl -L -s -o /dev/null -w %{url_effective} https://github.com/shadowsocks/shadowsocks-rust/releases/latest|rev|cut -d/ -f1|rev)"
export version_singbox="$(curl -L -s -o /dev/null -w %{url_effective} https://github.com/SagerNet/sing-box/releases/latest|rev|cut -d/ -f1|rev)"
export v_singbox="${version_singbox:1}"
export url_vray="https://github.com/shadowsocks/v2ray-plugin/releases/download/$version_vray/v2ray-plugin-linux-amd64-$version_vray.tar.gz"
export url_xray="https://github.com/teddysun/xray-plugin/releases/download/$version_xray/xray-plugin-linux-amd64-$version_xray.tar.gz"
export url_ss="https://github.com/shadowsocks/shadowsocks-rust/releases/download/$version_ss/shadowsocks-$v
@sae13
sae13 / config.json
Created June 24, 2023 04:54
sing-box client json config ./sing-box -c config2.json run
{
"log": {"level": "info"},
"dns": {},
"ntp": {},
"inbounds": [ {
"domain_strategy": "",
"listen": "0.0.0.0",
"type": "mixed",
"listen_port": 2081
}],
@sae13
sae13 / code_melli_generator.py
Created March 1, 2023 07:11
code melli generator validator
import random
class NationalCode:
code_melli:str = None
def __init__(self,code_melli:str|int=None,starts_with='',with_numbers=[0,1,2,3,4,5,6,7,8,9]):
self.code_melli=str(code_melli).rjust(10,'0')
if code_melli is not None:
self.validate()
else:
self.code_melli=self.generate(with_numbers=with_numbers,starts_with=starts_with)
def validate(self):