Skip to content

Instantly share code, notes, and snippets.

@netrunn3r
netrunn3r / refreshat.js
Created September 26, 2021 19:21 — forked from ambercouch/refreshat.js
Refresh the browser and a specific time (23:00:00)
function refreshAt(hours, minutes, seconds) {
var now = new Date();
var then = new Date();
if(now.getHours() > hours ||
(now.getHours() == hours && now.getMinutes() > minutes) ||
now.getHours() == hours && now.getMinutes() == minutes && now.getSeconds() >= seconds) {
then.setDate(now.getDate() + 1);
}
then.setHours(hours);
@netrunn3r
netrunn3r / reverved_ports_hyperv.md
Created October 12, 2020 08:59 — forked from strayge/reverved_ports_hyperv.md
windows 10, port reserved for HyperV
@netrunn3r
netrunn3r / WindowsService.py
Last active June 8, 2020 10:46 — forked from guillaumevincent/README.md
Windows Service with Python 3.5 and pyinstaller
import servicemanager
import socket
import sys
import win32event
import win32service
import win32serviceutil
class TestService(win32serviceutil.ServiceFramework):
_svc_name_ = "TestService"