Skip to content

Instantly share code, notes, and snippets.

Avatar
🌀
Fluttering

Sangam Kumar Shrestha 2shrestha22

🌀
Fluttering
View GitHub Profile
@2shrestha22
2shrestha22 / _common.conf
Created Jun 29, 2021 — forked from Daniel15/_common.conf
WordPress config with WP Super Cache for Nginx
View _common.conf
# /etc/nginx/snippets/wordpress/common.conf
index index.php;
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
location ~ /\. {
deny all;
}
# Block PHP files in uploads, content, and includes directory.
location ~* /(?:uploads|files|wp-content|wp-includes)/.*\.php$ {
@2shrestha22
2shrestha22 / .md
Created May 14, 2021 — forked from joepie91/.md
Running a Node.js application using nvm as a systemd service
View .md

Read this first!

Hi there! Since this post was originally written, nvm has gained some new tools, and some people have suggested alternative (and potentially better) approaches for modern systems. Make sure to have a look at the comments to this article, before following this guide!


The original article

Trickier than it seems.