This file contains hidden or 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 datetime | |
from dataclasses import dataclass | |
from billing.models.notification import NotificationV2, Notification | |
THRESHOLD_MS = 60 * 60 * 24 * 60 * 1000 # 60 days | |
@dataclass |
This file contains hidden or 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 argparse | |
import datetime | |
import os | |
from colorama import Fore | |
from tortoise import Tortoise, run_async | |
from tortoise.utils import get_schema_sql | |
import settings |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
"strings" | |
"time" |
This file contains hidden or 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
#Set bandwidth of the interface | |
:local interfaceBandwidth 100M | |
/ip firewall mangle | |
# prio_1 | |
add chain=prerouting action=mark-packet new-packet-mark=prio_1 protocol=icmp | |
add chain=prerouting action=mark-packet new-packet-mark=prio_1 protocol=tcp port=53 | |
add chain=prerouting action=mark-packet new-packet-mark=prio_1 protocol=udp port=53 | |
add chain=prerouting action=mark-packet new-packet-mark=prio_1 protocol=tcp tcp-flags=ack packet-size=0-123 | |
# prio_2 |
This file contains hidden or 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
#!/usr/bin/python2.7 | |
import MySQLdb | |
import os | |
from datetime import datetime as dt | |
dumpdir = '/var/dump/' | |
dbuser = 'backup' | |
dbpass = 'backup' |