Skip to content

Instantly share code, notes, and snippets.

View sarveshacharya's full-sized avatar

Sarvesh Acharya sarveshacharya

View GitHub Profile
@sarveshacharya
sarveshacharya / readme.md
Created September 5, 2017 11:17 — forked from jobsamuel/readme.md
Run NodeJS as a Service on Ubuntu 14.04 LTS

Run NodeJS as a Service on Ubuntu 14.04 LTS

With Node you can write very fast JavaScript programs serverside. It's pretty easy to install Node, code your program, and run it. But > how do you make it run nicely in the background like a true server?

  • Go to /etc/init/
  • $ sudo vim yourapp.conf
  • Paste script.conf
  • $ sudo start yourapp
  • And when you wanna kill the process $ sudo stop yourapp
@sarveshacharya
sarveshacharya / docker-ssl-deployment.sh
Created June 2, 2017 09:42 — forked from jshimko/docker-ssl-deployment.sh
Deploy Reaction Commerce on Digital Ocean with Nginx and a Let's Encrypt SSL certificate
# start a server on Digital Ocean
# https://docs.docker.com/machine/drivers/digital-ocean/
docker-machine create \
--driver digitalocean \
--digitalocean-access-token <YOUR API KEY> \
--digitalocean-size 2gb \
reaction
# tell Docker to run commands on that server
@sarveshacharya
sarveshacharya / multiple_ssh_setting.md
Created November 26, 2016 11:50 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"