Skip to content

Instantly share code, notes, and snippets.

Nicolò Paternoster adv0r

Block or report user

Report or block adv0r

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@adv0r
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
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:
/opt/local/bin/ncurses5-config
View Tweets.js
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.
You can’t perform that action at this time.