Skip to content

Instantly share code, notes, and snippets.

View sweettirexkiller's full-sized avatar
🖼️
MiNI PW / GRUPA AQUAEL

Piotr Tadeusz Józef Jankiewicz sweettirexkiller

🖼️
MiNI PW / GRUPA AQUAEL
  • AQUAEL
  • Dubowo, Suwałki
View GitHub Profile
@theatlasroom
theatlasroom / basic-post-receive-hook-with-pm2
Last active August 16, 2022 23:00
Basic post-receive hook - node + pm2
#!/bin/sh
# This is for an expressjs node app, it uses npm + bower packages and pm2 to start the app
# [pm2](https://github.com/Unitech/pm2)
# Assumes you've created a [bare git repo](https://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server) with on your server with git init --bare
# Adapted from http://javascript.tutorialhorizon.com/2014/08/17/push-to-deploy-a-nodejs-application-using-git-hooks/
PORT=1337
APP_NAME="app-name"
APP_ROOT="/var/www/app"
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active March 8, 2024 13:18
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to: