Skip to content

Instantly share code, notes, and snippets.

🥐

cheater cheater

🥐
Block or report user

Report or block cheater

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cheater
cheater / sleep-countdown
Created Nov 18, 2018
sleep with countdown in bash
View sleep-countdown
#!/bin/bash
sleep_time="$(( $1 - 1 ))" # subtract 1, since we wait on the 0th second.
start_s="$(date +%s)"
start_ns="$(date +%N)"
div_whole() {
# whole-number division of integers.
a="$1"
@cheater
cheater / user.py.diff
Created Jul 27, 2012
saltstack salt #1704
View user.py.diff
diff --git a/tmp/user.py.orig b/usr/share/pyshared/salt/states/user.py
index ef27816..b6dc24d 100644
--- a/tmp/user.py.orig
+++ b/usr/share/pyshared/salt/states/user.py
@@ -101,6 +101,7 @@ def present(
name,
uid=None,
gid=None,
+ gid_from_name=False,
groups=None,
You can’t perform that action at this time.