This file contains hidden or 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 | |
# Assumption 1: you have lighthouse running on ubuntu with systemctl | |
# Assumption 2: lighthouse binary is in /home/lighthouse/.cargo/bin/lighthouse | |
# If otherwise, change the script accordingly | |
latestVersion="2.5.0" ##Change this before running, see https://github.com/sigp/lighthouse/releases | |
logFile="/home/lighthouse/lighthouseUpdate.log" | |
filename="lighthouse-v"$latestVersion"-aarch64-unknown-linux-gnu.tar.gz" |
This file contains hidden or 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
//A quick way to generate valid URL to GET files hosted on private AWS S3 bucket | |
//I didn't want to use an SKD so I followed the documentation to make my own and learn | |
//The code is dirty, but since I couln't find anything online, | |
//I figured this could be handy to someone | |
//Requirements : Node and Crypto-js (install with npm install crypto-js) | |
//Remote settings----------------------------------------------------------- |
This file contains hidden or 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
Warning: "config" scripts exist outside your system or Homebrew directories. | |
`./configure` scripts often look for *-config scripts to determine if | |
software packages are installed, and what additional flags to use when | |
compiling and linking. | |
Having additional scripts in your path can confuse software installed via | |
Homebrew if the config script overrides a system or Homebrew provided | |
script of the same name. We found the following "config" scripts: | |
/opt/local/bin/ncurses5-config |
This file contains hidden or 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
var sys=require('sys'), http = require('http'); | |
var query = "Winter Olympics"; | |
var twitter = http.createClient(80, "search.twitter.com"); | |
var since = 0; | |
function scanTweet() { | |
// the httpclient "twitter" we created above - here we build a | |
// query to Twitter, requesting a JSON response. It's not | |
// fired off until we call the "finish" method on it. |