Skip to content

Instantly share code, notes, and snippets.

View lohithn4's full-sized avatar
🎯
...

Lohith lohithn4

🎯
...
  • ECPL
  • bangalore
View GitHub Profile
@lohithn4
lohithn4 / 2019-https-localhost.md
Created December 8, 2022 09:49 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@lohithn4
lohithn4 / crontab-perm-denied.md
Created March 18, 2021 02:55 — forked from plembo/crontab-perm-denied.md
crontab says fopen: permission denied

When crontab gives fopen: permission denied error

While trying to open my user's crontab on Ubuntu, the system barked back:

$ crontab -l
crontabs/myuser/: fopen: Permission denied

This is due to improper permissions on crontab executable.

@lohithn4
lohithn4 / A Nuxt.js VPS production deployment.md
Created January 12, 2021 02:45 — forked from DreaMinder/A Nuxt.js VPS production deployment.md
Deployment manual for a real-world project built with nuxt.js + koa + nginx + pm2

Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.

This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger than a landing page.

UPD: This manual now compatible with nuxt@2.3. For older versions deployment, see revision history.


Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock: