Skip to content

Instantly share code, notes, and snippets.

View agn-7's full-sized avatar
🎯
Focusing

Benyamin Jafari agn-7

🎯
Focusing
View GitHub Profile
@ErFUN-KH
ErFUN-KH / VLESS-XTLS-uTLS-REALITY.json
Last active May 11, 2024 06:27
VLESS-XTLS-uTLS-REALITY
{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": [
@mahmoud-eskandari
mahmoud-eskandari / README.md
Last active July 4, 2024 21:53
Install v2ray on Bridge:(Ubuntu +18 via systemd) - Upstream (Ubuntu +18/CentOS +7 via docker)

پنل x-ui

پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور

mkdir x-ui && cd x-ui
docker run -itd --network=host \
    -v $PWD/db/:/etc/x-ui/ \
 -v $PWD/cert/:/root/cert/ \
@cecilemuller
cecilemuller / example.yml
Created October 20, 2020 01:49
Run Docker Compose + in Github Action
name: Test
on:
push:
branches:
- main
- features/**
- dependabot/**
pull_request:
branches:
@zjx20
zjx20 / convert.sh
Last active May 31, 2024 23:24
Convert v2ray config.json (client side) to a subscription content
#!/bin/bash
# brew install jq
# brew install qrencode
config_file=v2rayx*.json
rss_file=rss.txt
cat $config_file | \
jq --raw-output '
import tweepy
consumer_key = 'change with your consumer key'
consumer_secret = 'change with your consumer secret'
access_token = 'change with your access token'
access_secret = 'change with your access secret'
tweetsPerQry = 100
maxTweets = 1000000
hashtag = "#mencatatindonesia"
@ilap
ilap / grafana_telegram_bot.md
Last active July 16, 2024 11:43
Grafana Telegram Alert

Config Telegrambot for grafana's alerts.

1. Create bot

Open Telegram and search for @BotFather user and message them the following:

You
/newbot 

BotFather
@dl6nm
dl6nm / Grafana-TelegramBot-HowTo.md
Last active December 13, 2023 16:21 — forked from subzeta/gist:26cd1a1f1526411862b3a3a0b4422d3d
How to create a Grafana bot for Telegram

Set up a Telegram Bot

  1. Go to Grafana > Alerting > Notification channels > New channel.
  2. Type: Telegram. It will ask you for a Bot API Token and a Chat ID.
  3. Open a chat with BotFather on Telegram.
  4. Type /newbot
  5. Type your bots name. e.g. Grafana Bot
  6. Type your bots username. e.g. a_new_grafana_bot
  7. You get your Bot API Token. Paste it on Grafana.
  8. Before making getUpdates (in the next step) you should add your bot into your telegram client and run /start. Thus you start chatting with the bot and this room is assigned chat id. (Thanks to @KES777)
@nhymxu
nhymxu / README-python-framework-benchmark.md
Last active July 3, 2024 12:28
Flask vs Falcon vs FastAPI benchmark
gunicorn run:app --workers=9
gunicorn run:app --workers=9 --worker-class=meinheld.gmeinheld.MeinheldWorker

Macbook Pro 2015 Python 3.7

Framework Server Req/s Max latency +/- Stdev
@rseyf
rseyf / vim_installer.sh
Last active July 10, 2022 23:04
My VIM Customizer
# /bin/bash
# make sure this file has execution permission to run (do NOT use sudo:
# $ chmod +x vim_installer.sh
# $ ./vim_installer.sh
# =====================================================================
# install git
echo "======== VIM INSTALLER ========"
echo "MAKE SURE YOU HAVE GIT INSTALLED!"
echo "Then press any key to continue..."