Skip to content

Instantly share code, notes, and snippets.

View glennlopez's full-sized avatar
🐝
Busy w/ moving.. be back soon

Glenn Lopez glennlopez

🐝
Busy w/ moving.. be back soon
  • CAE: Defence & Security
  • Canada
  • 11:57 (UTC -05:00)
View GitHub Profile
Verifying I am +glennlopez on my passcard. https://onename.com/glennlopez
### Keybase proof
I hereby claim:
* I am glennlopez on github.
* I am glennlopez (https://keybase.io/glennlopez) on keybase.
* I have a public key whose fingerprint is 19BC 32AA 7754 397A D510 291A 83D5 A140 9110 EFD1
To claim this, I am signing this object:
@glennlopez
glennlopez / openpgp.txt
Created August 15, 2016 17:13
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:19bc32aa7754397ad510291a83d5a1409110efd1]
@glennlopez
glennlopez / raspberry-pi-vpn-router.md
Created December 11, 2016 01:05 — forked from superjamie/raspberry-pi-vpn-router.md
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@glennlopez
glennlopez / gist:cd1002d77d97326c8cbecf03bdf97fb5
Created February 4, 2017 01:55
Node-RED: Twitter to LED/GPIO
[{"id":"510535b.362dfcc","type":"twitter in","z":"7e0c8120.747af","twitter":"","tags":"#led_on","user":"false","name":"Turn on LED","topic":"tweets","inputs":1,"x":210,"y":240,"wires":[["321abbf.2756544","e276dc38.61ca8"]]},{"id":"321abbf.2756544","type":"debug","z":"7e0c8120.747af","name":"","active":true,"console":"false","complete":"payload","x":430,"y":200,"wires":[]},{"id":"94e3eba9.439568","type":"rpi-gpio out","z":"7e0c8120.747af","name":"GPIO_24","pin":"18","set":"","level":"0","out":"out","x":620,"y":240,"wires":[]},{"id":"e276dc38.61ca8","type":"trigger","z":"7e0c8120.747af","op1":"1","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","name":"","x":440,"y":240,"wires":[["94e3eba9.439568"]]},{"id":"69c10cd7.373124","type":"twitter in","z":"7e0c8120.747af","twitter":"","tags":"#led_off","user":"false","name":"Turn off LED","topic":"tweets","inputs":1,"x":210,"y":360,"wires":[["5490063a.910e58","8cdab111.93f54"]]},{"id":"5490063a.910e58","type":"debug","z":
@glennlopez
glennlopez / helpers.c
Created June 17, 2017 02:25
/r/cs50/comments/6hjd59/pset3_binary_search_help/
... //more code above this line
if(startPoint > endPoint){ //<-- startpoint is now larger than end point so I "break;" from the loop
break; //<-- prevents infinit loop
}
while(values[midPoint] != value); //<--- my sorting loop ends when it finds
//return results
if(startPoint > endPoint){ //<-- I know its false becuase startpoint is now larger than endpoint
return false; //<-- so I return a false
@glennlopez
glennlopez / openpgp.txt
Created July 29, 2017 08:59
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:19bc32aa7754397ad510291a83d5a1409110efd1]
@glennlopez
glennlopez / openpgp.txt
Created July 29, 2017 08:59
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:19bc32aa7754397ad510291a83d5a1409110efd1]
@glennlopez
glennlopez / openpgp.txt
Created July 29, 2017 09:06
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:19bc32aa7754397ad510291a83d5a1409110efd1]