This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Geth auto-update | |
# Installs and reloads `geth` service, if version is different | |
# Assumes you have installed and are running a systemd service | |
# `/etc/systemd/system/geth.service` | |
# | |
# [Unit] | |
# Description=Go Ethereum Client | |
# After=network.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Return JSON traffic inspection (just the session part) of current NGROK (https://ngrok.com/docs) environment | |
* @author Alexander Gailey-White | |
* | |
* Example data: | |
* { | |
"Session": { | |
"Status": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Vanilla | |
for (var i = 1; i <= 100; i++) { | |
console.log | |
((i % 15 === 0) ? 'FizzBuzz' : | |
((i % 5 === 0) ? 'Buzz' : | |
((i % 3 === 0) ? 'Fizz' : | |
i | |
) | |
) | |
); |