Skip to content

Instantly share code, notes, and snippets.

## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Hello World!')
})
Respond to POST request on the root route (/), the application’s home page:
app.post('/', function (req, res) {
res.send('Got a POST request')
@BradTotaro
BradTotaro / disable_ipv6.sh
Last active May 31, 2017 16:32
Debian 8 Disable IPV6
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
#or
sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6'
# permanent
echo 'blacklist ipv6' >> /etc/modprobe.d/blacklist
@BradTotaro
BradTotaro / Passing time
Last active August 29, 2015 14:22
Passing time
Maybe I tried to talk to you
'Cause I thought that you looked lonely
Or maybe I was lonely too
Maybe I asked to go with you
Because I thought that I could love you
Or maybe I just wanted the company
Maybe I'm in love
Or maybe I'm in trouble
Maybe I’m just fooling you