Without external devices: no USB keyboard, mouse, or HDMI monitor are needed.
- Pi Zero (or W)
- MicroUSB cable
- MicroSD card
- An additional computer (I'm on a Mac)
| // little js function to toggle between staging server and live production server. Nice for previewing differences between web environments. | |
| (function(){ | |
| var staging = 'staging.site.com'; | |
| var live = 'www.site.com'; | |
| var a = location.href.split('/'); | |
| if (a[2] === live) { | |
| a[2] = staging; | |
| } else if (a[2] === staging) { | |
| a[2] = live; | |
| } |