mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-12 11:42:20 -04:00
Add some random scripts in my machine
This commit is contained in:
parent
69ccfd04d5
commit
8f29682a89
3 changed files with 120 additions and 0 deletions
9
shell_scripts/useful/check_time_zone.sh
Normal file
9
shell_scripts/useful/check_time_zone.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Set a random timezone
|
||||
TZ_SIGN=$( echo "+:-" | cut -d: -f "$( shuf -i 1-2 -n 1 )" )
|
||||
TZ=UTC${TZ_SIGN}$( shuf -i 0-24 -n1 )
|
||||
|
||||
export TZ
|
||||
|
||||
echo "Set TZ to: ${TZ}"
|
Loading…
Add table
Add a link
Reference in a new issue