Skip to content

Instantly share code, notes, and snippets.


Nicolò Paternoster adv0r

View GitHub Profile
adv0r /
Created Aug 3, 2022
A script to update lighthouse to a given version
# 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
adv0r / S3Client.js
Created Jul 27, 2017
AWS s3 : Generate a pre-signed URL - step-by-step. {Node.js}
View S3Client.js
//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-----------------------------------------------------------
adv0r / bewout
Created Jul 30, 2015
brew doctor
View bewout
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:
View Tweets.js
var sys=require('sys'), http = require('http');
var query = "Winter Olympics";
var twitter = http.createClient(80, "");
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.