Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am robhoare on github.
  • I am robhoare (https://keybase.io/robhoare) on keybase.
  • I have a public key whose fingerprint is 1668 75D5 B2BA 3352 2AEB 828E 69DC DE91 7F1F 5A83

To claim this, I am signing this object:

@robhoare
robhoare / pullall.sh
Last active July 23, 2017 01:29
Update (git pull) all git repos that are directly below the current directory
for i in $(ls -d */); do echo ${i%%/}; cd ${i%%/}; git pull; cd ..; done
@robhoare
robhoare / gist:b13970e6ae288081647dfb60b6d5c00f
Created August 13, 2017 03:35
Connect to wifi on command line, ubuntu 16.04
nmcli device wifi connect <ssid> password <password>
@robhoare
robhoare / gist:6f6b3fa96795340dc4fd8214aebd861e
Last active March 27, 2022 04:54
Calcular el noveno dígito de un DNI peruano
Calculate the ninth digit of a Peruvian DNI (English description after Spanish)
Espanol:
Calcular el noveno dígito de un DNI peruano
===========================================
Multiplica cada dígito del DNI por el dígito correspondiente en:
3 2 7 6 5 4 3 2
Ejemplo DNI: 4 2 3 8 8 6 0 4