Skip to content

Instantly share code, notes, and snippets.

View Zyten's full-sized avatar
🖖

Ruban Selvarajah Zyten

🖖
View GitHub Profile
@Zyten
Zyten / openvpn-useradd-bulk.sh
Created November 22, 2024 06:28 — forked from Nyr/openvpn-useradd-bulk.sh
Simple script for adding users in bulk to an openvpn-install setup
#!/bin/bash
# Fast way for adding lots of users to an openvpn-install setup
# See the main openvpn-install project here: https://github.com/Nyr/openvpn-install
# openvpn-useradd-bulk is NOT supported or maintained and could become obsolete or broken in the future
# Created to satisfy the requirements here: https://github.com/Nyr/openvpn-install/issues/435
if readlink /proc/$$/exe | grep -qs "dash"; then
echo "This script needs to be run with bash, not sh"
exit 1
@Zyten
Zyten / touch.bat
Last active November 8, 2017 22:06
One-liner to mock Unix touch command in Windows to create new empty files
REM Usage: touch mynewfile.txt
copy /b NUL %1
@Zyten
Zyten / gist:4435a5dad1bd3688a902fd9ef25d02be
Last active December 22, 2017 14:57
iCheck indeterminate - temporary indeterminate icon for iCheck minimal-grey theme (Issue #249)
/*Include after iCheck css*/
.icheckbox_minimal-grey.indeterminate {
display:inline-block;
}
.icheckbox_minimal-grey.indeterminate:before {
content: "";
position: absolute;
width:.7em;