Skip to content

Instantly share code, notes, and snippets.

View rgr-dev's full-sized avatar
🏠
Working from home

Roger José rgr-dev

🏠
Working from home
  • Buenos Aires, Argentina
View GitHub Profile
@rgr-dev
rgr-dev / regexUtils
Created September 27, 2020 14:29
usefull regex list
(?<![\w-])\d{8}(?![\w-]) -- Exactly 8 digits not more not less
@rgr-dev
rgr-dev / 20-raspberry
Last active August 8, 2020 20:53
Modified motd for raspberry pi post-auth prompt
#!/bin/bash
upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
secs=$((${upSeconds}%60))
mins=$((${upSeconds}/60%60))
hours=$((${upSeconds}/3600%24))
days=$((${upSeconds}/86400))
UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"`
# get the load averages
@rgr-dev
rgr-dev / BtstrPaddingTop.css
Created October 21, 2018 23:16
Padding for main content page with a HorizontalNavBar in top. (Bootstrap v4)
.aClass{ padding-top: 30px; }