Skip to content

Instantly share code, notes, and snippets.

View hashtafak's full-sized avatar
🧲
NaN

Tuan Anh Tran hashtafak

🧲
NaN
View GitHub Profile
@hashtafak
hashtafak / disable-windows-update.ps1
Created March 8, 2022 02:43 — forked from mikebranstein/disable-windows-update.ps1
Disables Windows Update with PowerShell
# set the Windows Update service to "disabled"
sc.exe config wuauserv start=disabled
# display the status of the service
sc.exe query wuauserv
# stop the service, in case it is running
sc.exe stop wuauserv
# display the status again, because we're paranoid
@hashtafak
hashtafak / xvfb_daemon.sh
Last active March 6, 2022 23:28 — forked from fedesilva/xvfb_daemon.sh
Xvfb startup init script for headless selenium started via Jenkins
#!/bin/bash
# /etc/init.d/xvfb_daemon
# Xvfb startup script.
# Tom Meier <tom@venombytes.com>
#
### BEGIN INIT INFO
# Provides: xvfb
# Short-Description: Start/stop/restart daemon
# Description: Controls the Xvfb daemon which starts/stops the X Virtual Framebuffer server
### END INIT INFO