Skip to content

Instantly share code, notes, and snippets.

@razaqq
razaqq / setup_p_drive.py
Created August 20, 2020 14:44
A tool for setting up BI's P drive
#!/usr/bin/env python3
# Copyright 2020
# Author: razaqq <github.com/razaqq>
import os
from argparse import ArgumentParser
from os import walk, remove, mkdir, access
from os.path import join, exists, isfile, splitext
from shutil import rmtree, copy
@razaqq
razaqq / teaupdate.sh
Last active June 21, 2019 10:31
an update script for teaspeak
#!/bin/bash
# config
query_port=10102
query_user=user
query_pass=pass
warning_secs=180
warning_interval=30
# the user which runs the server, used for fixing permissions