Skip to content

Instantly share code, notes, and snippets.

View fguisso's full-sized avatar
🌭
Hot dogs

Fernando Guisso fguisso

🌭
Hot dogs
View GitHub Profile
@fguisso
fguisso / Teste
Last active February 27, 2020 22:22 — forked from anonymous/Teste
var express = require('express');
var test = express();
var port = process.env.PORT || 8080;
//routes
test.get('/api/users', function(req, res){
var user_id = req.param('id');
var token = req.param('token');
var geo = req.param('geo');
@fguisso
fguisso / install.sh
Last active September 17, 2017 13:46 — forked from Gutem/install
Shell script to automate environment installs after a vanilla OSX install
#!/bin/bash
red='\033[0;31m'
green='\033[0;32m'
NC='\033[0m' # No Color
################################################################################
# XCode CLI
################################################################################
xcode-select --install
@fguisso
fguisso / teste.js
Last active January 29, 2017 01:16
this.log.writeln('\n→ INITIAL SETTINGS');
return this.prompt(questions)
.then((answers) => {
this.answers = answers; })
.bind(this);
@fguisso
fguisso / osx-10.10-setup.md
Last active September 28, 2016 01:59 — forked from kevinelliott/osx-10.10-setup.md
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@fguisso
fguisso / socket.js
Last active September 6, 2015 23:57 — forked from Anderson-Juhasc/socket.js
var ws = new WebSocket('wss://api.blinktrade.com/trade/');
ws.on('open', function() {
console.log('open connect');
ws.send("channel or msg");
});
ws.on('message', function(message) {
console.log(message);
, mongoose = require('mongoose')
, dbURI = 'mongodb://localhost/boilerplate'
, db = mongoose.connection
;
mongoose.connect(dbURI);
// CONNECTION EVENTS
// Quando a conexão der certo
db.on('connected', function () {
console.log('Conexão mongoose aberta com ' + dbURI);
});