Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
nofap-tracker
SUBMITTED BY:
Guest
DATE:
June 14, 2024, 1:43 a.m.
FORMAT:
Text only
SIZE:
534 Bytes
Raw
Download
Tweet
HITS:
313
Go to comments
Report
nofap-tracker() {
if [ -z "$1" ]; then
echo -n "Last served Satan, the NWO, and repulsive digusting filthy whores" $(datediff $(date -u -d @$(date "+%s" -d "$(< ~/nofap-date)") +"%Y-%m-%dT%H:%M:%S") now -f '%d days, %H hours, %M minutes ago.')
echo " ($(< ~/nofap-date))" ;
elif [ $1 == "-set" ] && [ $# -gt 1 ]; then
echo -n $(date +"%A, %B %e %Y %l:%M %P %Z" -d "$(echo "${@:2}")") > ~/nofap-date
chflags hidden ~/nofap-date
echo "Date set to: $(< ~/nofap-date)" ;
fi
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus