Skip to content

Instantly share code, notes, and snippets.

View empjustine's full-sized avatar

カシオ 金城 大関 empjustine

View GitHub Profile
@empjustine
empjustine / UDPDuplicator.py
Created August 10, 2021 02:38 — forked from anri-c/UDPDuplicator.py
Duplicate UDP Packets
# -*- coding: utf-8 -*-
import SocketServer as Ss
import socket
import threading
TARGETS = {'target_host1', 'target_host2'}
PORT = 8989
class DuplicateUDP(Ss.BaseRequestHandler):
@empjustine
empjustine / wakelock
Created July 27, 2020 15:32 — forked from tomrenn/wakelock
Python script to wakeup connected Android devices
#!/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('')
@empjustine
empjustine / .gitignore
Last active May 16, 2020 08:24 — forked from cnicodeme/pocket.py
Update your reading list by running this local script.
.idea/
venv/
__pycache__/
@empjustine
empjustine / get_gists.py
Created May 15, 2020 20:02 — forked from leoloobeek/get_gists.py
Download all gists for a specific user
# 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))
@empjustine
empjustine / .editorconfig
Last active May 18, 2020 21:38 — forked from lucasg/dash-doggybag.py
Bulk downloader for dash docsets (official and user contributed)
# https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
@empjustine
empjustine / previous.sh
Created May 20, 2018 03:04 — forked from oflow/window_update_toggle.vbs
俺のタイミングで更新させろ!それ以外は何もするな!何もするな!!
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
@empjustine
empjustine / windows-batch-cheatsheet.md
Last active May 20, 2018 02:53
Windows batch files cheatsheet
  • 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