-
keeps a command console window open
cmd /k app.exe
-
starts an app and waits until it's closed
start /wait chrome.exe http://google.com
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
# -*- coding: utf-8 -*- | |
import SocketServer as Ss | |
import socket | |
import threading | |
TARGETS = {'target_host1', 'target_host2'} | |
PORT = 8989 | |
class DuplicateUDP(Ss.BaseRequestHandler): |
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/env python | |
""" | |
Simple script that uses ADB to wake and unlock any connected devices | |
""" | |
import subprocess | |
import sys | |
output = subprocess.check_output(['adb', 'devices']) | |
output = set(output.split('\n')[1:]) | |
output.remove('') |
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
.idea/ | |
venv/ | |
__pycache__/ |
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
# first: mkdir user && cd user && cp /path/to/get_gists.py . | |
# python3 get_gists.py user | |
import requests | |
import sys | |
from subprocess import call | |
user = sys.argv[1] | |
r = requests.get('https://api.github.com/users/{0}/gists'.format(user)) |
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
# https://editorconfig.org/ | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
end_of_line = lf |
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
sc config wuauserv start= disabled | |
net stop wuauserv & REM Windows Update | |
net stop appidsvc | |
net stop BITS & REM Background Intelligent Transfer Service | |
net stop UsoSvc & REM Update Orchestrator Service for Windows Update |