Skip to content

Instantly share code, notes, and snippets.

View repiatx's full-sized avatar
😘
Hehe.

Hayrettin GÖK repiatx

😘
Hehe.
View GitHub Profile
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active May 18, 2024 04:24
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@Guibzs
Guibzs / .htaccess
Last active March 26, 2023 15:17
Symfony 4 ~ .htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /index.php/
@alessandroraffa
alessandroraffa / bootstrap-masonry-plugin.js
Last active December 27, 2020 11:54
Responsive Bootstrap 3 Masonry
$(document).ready(function () {
var masonryOptions = {
columnWidth: '.masonry-sizer',
itemSelector: '.masonry-item',
percentPosition: true
};
var $masonryContainer = $('.masonry-container');
var masonryBreakpoint = 767; // change this as you wish
var masonryActive = false;
var activateMasonry = function () {
@sscovil
sscovil / en.json
Last active June 14, 2020 08:38
Node Express server with i18next. Language files go in a `locales/` directory.
{
"home": {
"title": "Hello World!"
}
}