Skip to content

Instantly share code, notes, and snippets.

@supun19
supun19 / nginx-socketio-ssl-reverse-proxy.conf
Created February 6, 2019 07:54 — forked from gmanau/nginx-socketio-ssl-reverse-proxy.conf
How to setup nginx as nodejs/socket.io reverse proxy over SSL
upstream upstream-apache2 {
server 127.0.0.1:8080;
}
upstream upstream-nodejs {
server 127.0.0.1:3000;
}
server {
listen 80;
@supun19
supun19 / npm-using-https-for-git.sh
Created October 1, 2018 08:27 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use https:// instead of git://
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
@supun19
supun19 / screenrecording.txt
Last active August 1, 2018 08:36 — forked from keepitsimple/gist:a0aa7a2e10ab930d741d
Ubuntu 14.04 install Xvfb
# Dependencies to make "headless" chrome/selenium work:
sudo apt-get -y install xvfb gtk2-engines-pixbuf
sudo apt-get -y install xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable
echo "Starting X virtual framebuffer (Xvfb) in background..."
Xvfb -ac :99 -screen 0 1280x1024x16 &
export DISPLAY=:99
# serverless.yml
service:
name: beekeeper-serverless
frameworkVersion: 1.23.0
plugins:
- serverless-plugin-split-stacks
- serverless-plugin-custom-roles
@supun19
supun19 / README.md
Created April 28, 2018 02:12 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh