Skip to content

Instantly share code, notes, and snippets.

View andrepadez's full-sized avatar

André Alçada Padez andrepadez

View GitHub Profile
@andrepadez
andrepadez / gist:17b57d72898327161911
Created February 25, 2015 17:51
OpenShift setup
sudo gem install rhc
rhc setup
rhc tail -A maria
var ipaddress = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1";
var port = process.env.OPENSHIFT_NODEJS_PORT || 3000;
app.listen( port, ipaddress, function() {
console.log('listening on port ', port);
});
andrepadez in ~/develop/vigour-io/gaston on new-gaston*
⚡ rm -rf node_modules/
andrepadez in ~/develop/vigour-io/gaston on new-gaston*
⚡ cat package.json | grep nodegit
"nodegit": "nodegit/nodegit#master",
andrepadez in ~/develop/vigour-io/gaston on new-gaston*
⚡ clear
andrepadez in ~/develop/vigour-io/gaston on new-gaston*
⚡ npm i
andrepadez in ~/develop/vigour-io/directv-fl on master*
⚡ nodemon ../gaston/bin/gaston.js -w ../gaston/lib/
13 May 20:27:21 - [nodemon] v1.3.7
13 May 20:27:21 - [nodemon] to restart at any time, enter `rs`
13 May 20:27:21 - [nodemon] watching: /Users/andrepadez/develop/vigour-io/gaston/lib/**/*
13 May 20:27:21 - [nodemon] starting `node ../gaston/bin/gaston.js`
module.js:338
throw err;
^
Error: Cannot find module 'nodegit'
@andrepadez
andrepadez / btcpayserver-javascript-overrides.js
Created November 17, 2019 03:13
Btcpayserver Javascript Overrides
console.log('overriding biatch!')
@andrepadez
andrepadez / .tmux.conf
Last active March 11, 2023 04:16
my tmux configuration
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %