Skip to content

Instantly share code, notes, and snippets.

View techie2000's full-sized avatar

techie2000

  • Probably somewhere quiet
  • 23:45 (UTC)
View GitHub Profile
@techie2000
techie2000 / Keybase.md
Created September 14, 2019 08:38
Keybase

Keybase proof

I hereby claim:

  • I am techie2000 on github.
  • I am marcusbullock (https://keybase.io/marcusbullock) on keybase.
  • I have a public key ASAtOdTP_FZUu1ZmAFyea0_y7aT8Ymz2oOwiUi6DdnG-bwo

To claim this, I am signing this object:

@techie2000
techie2000 / lastreboot.sh
Last active October 10, 2020 02:26
When was my 'nix box last rebooted?
awk '/btime/ {print $2}' /proc/stat | xargs -IUNIX_TIMESTAMP date --date @UNIX_TIMESTAMP
@techie2000
techie2000 / hardlink.sh
Created December 10, 2020 17:01
Create hardlinks for multiple files
@techie2000
techie2000 / wget.sh
Last active January 24, 2021 16:32
Download a site
wget --mirror --no-parent --continue --limit-rate=512k --wait=0 --reject "index.html*, foo.txt, bar*.*" "https://the-eye.eu/public/AppleArchive/"
@techie2000
techie2000 / externalip.sh
Created December 10, 2020 17:58
whats my external ip address?
curl -s http://whatismyip.akamai.com/
@techie2000
techie2000 / localip.sh
Created December 10, 2020 18:14
whats my internal ip address
ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}'
@techie2000
techie2000 / findinum.sh
Created December 11, 2020 12:39
Find all files that share a given inum
find . -inum 12345678
@techie2000
techie2000 / findfile.sh
Created December 15, 2020 09:20
Find all files with given (part) name
find . -name '*.foo'
@techie2000
techie2000 / nvidia_status.sh
Last active July 4, 2021 19:45
nvidia gpu status
watch nvidia-smi
apt list --installed
# or
dpkg -l