Skip to content

Instantly share code, notes, and snippets.

@OliverZ
OliverZ / index.js
Created March 26, 2019 21:56 — forked from graphicbeacon/index.js
How to handle the POST request body without using a framework
const http = require('http');
const { parse } = require('querystring');
const server = http.createServer((req, res) => {
if (req.method === 'POST') {
collectRequestData(req, result => {
console.log(result);
res.end(`Parsed data belonging to ${result.fname}`);
});
}
@OliverZ
OliverZ / gitlab-installer.sh
Last active December 15, 2015 13:18 — forked from blind-coder/gist:4948038
under construction from line 156
# Install necessary packages
pkgin up
pkgin -y install \
bash \
coreutils \
curl \
gcc47 \
# gcc47-runtime \
gmake \
icu \