Skip to content

Instantly share code, notes, and snippets.

View murka's full-sized avatar
🕊️
Make love, not war!

Danil Shaymurzin ⚡️ murka

🕊️
Make love, not war!
View GitHub Profile
@murka
murka / LICENSE
Created January 3, 2023 16:47
The MIT License (MIT)
Copyright © 2023 Danil Shaymurzin
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE O
@murka
murka / gist:2ca5fd729ff74642bb4412133f70a707
Created August 24, 2022 18:20
block torrent in server by iptables
iptables -A FORWARD -m string --algo bm --string "BitTorrent" -j DROP
iptables -A FORWARD -m string --algo bm --string "BitTorrent protocol" -j DROP
iptables -A FORWARD -m string --algo bm --string "peer_id=" -j DROP
iptables -A FORWARD -m string --algo bm --string ".torrent" -j DROP
iptables -A FORWARD -m string --algo bm --string "announce.php?passkey=" -j DROP
iptables -A FORWARD -m string --algo bm --string "torrent" -j DROP
iptables -A FORWARD -m string --algo bm --string "announce" -j DROP
iptables -A FORWARD -m string --algo bm --string "info_hash" -j DROP
@murka
murka / gist:c99932fd1b2b1df20a763716442d3764
Last active January 23, 2023 11:24
Block all Hetzner sub network
iptables -I INPUT -p tcp -s 95.217.0.0/16 -j DROP
iptables -I INPUT -p tcp -s 95.216.0.0/16 -j DROP
iptables -I INPUT -p tcp -s 94.130.0.0/16 -j DROP
iptables -I INPUT -p tcp -s 91.107.128.0/17 -j DROP
iptables -I INPUT -p tcp -s 88.99.0.0/16 -j DROP
iptables -I INPUT -p tcp -s 88.198.0.0/16 -j DROP
iptables -I INPUT -p tcp -s 85.10.192.0/18 -j DROP
iptables -I INPUT -p tcp -s 78.46.0.0/15 -j DROP
iptables -I INPUT -p tcp -s 65.21.0.0/16 -j DROP
iptables -I INPUT -p tcp -s 65.109.0.0/16 -j DROP
const { Telegraf } = require('telegraf')
const RedisSession = require('telegraf-session-redis')
const WizardScene = require('telegraf/scenes/wizard')
const Stage = require('telegraf/stage')
const bot = new Telegraf(process.env.TOKEN)
const session = new RedisSession({
store: { host: process.env.REDIS_HOST, port: process.env.REDIS_PORT }
})
@murka
murka / keybase
Last active August 20, 2020 12:51
### Keybase proof
I hereby claim:
* I am murka on github.
* I am murka (https://keybase.io/murka) on keybase.
* I have a public key ASDyWAQbITdW-tz30vtiwCw-aF-yH8DPw5x7gfoBTsVXMgo
To claim this, I am signing this object: