Skip to content

Instantly share code, notes, and snippets.

View acsrujan's full-sized avatar

Srujan acsrujan

View GitHub Profile
ruanbekker /
Last active October 3, 2023 04:41
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
marcan /
Last active April 19, 2023 02:12
Linux kernel initialization, translated to bash
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name
pnommensen / gist:707b5519766ba45366dd
Last active July 26, 2023 05:18
Ghost CMS with NGINX for Maximum Performance
View gist:707b5519766ba45366dd

Full blog post can be found here:

Ghost is an open source platform for blogging founded by John O'Nolan and Hannah Wolfe. It's a node.js application and therefore works great in conjunction with nginx. This guide will will help you create a high performance nginx virtual host configuration for Ghost.

"Don't use #nodejs for static content" - @trevnorris. If #nginx isn't sitting in front of your node server, you're probably doing it wrong.

— Bryan Hughes (@nebrius) August 30, 2014
<script async src="//" charset="utf-8"></script>

The node.js application runs on a port on your server