This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"loglevel": "warning" | |
}, | |
"routing": { | |
"domainStrategy": "IPIfNonMatch", | |
"rules": [ | |
{ | |
"type": "field", | |
"ip": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- features/** | |
- dependabot/** | |
pull_request: | |
branches: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# brew install jq | |
# brew install qrencode | |
config_file=v2rayx*.json | |
rss_file=rss.txt | |
cat $config_file | \ | |
jq --raw-output ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
- Go to Grafana > Alerting > Notification channels > New channel.
- Type: Telegram. It will ask you for a Bot API Token and a Chat ID.
- Open a chat with BotFather on Telegram.
- Type
/newbot
- Type your bots name. e.g.
Grafana Bot
- Type your bots username. e.g.
a_new_grafana_bot
- You get your Bot API Token. Paste it on Grafana.
- 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)
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 |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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..." |
NewerOlder