Skip to content

Instantly share code, notes, and snippets.

View wh1te909's full-sized avatar

Dan wh1te909

  • Los Angeles, CA
View GitHub Profile
import os
import json
import random
import string
import datetime as dt
from django.core.management.base import BaseCommand
from django.utils import timezone as djangotime
from django.conf import settings
@wh1te909
wh1te909 / check-srcds.py
Created October 15, 2018 08:37
srcds check if server empty
import valve.rcon
import re
import signal
import time
ip = "10.0.0.1"
port = 27015
password = "rconpassword"
timeout = 20 # seconds