Skip to content

Instantly share code, notes, and snippets.

@sanrandry
sanrandry / node_nginx_ssl.md
Created July 13, 2020 11:18 — forked from bradtraversy/node_nginx_ssl.md
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

@sanrandry
sanrandry / Nuxt.js .htaccess
Created August 1, 2020 09:31 — forked from mariojankovic/Nuxt.js .htaccess
.htaccess for Nuxt.js under apache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
@sanrandry
sanrandry / sample.md
Created August 1, 2020 16:43 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

@sanrandry
sanrandry / ubuntu_server_star_configuration.md
Last active August 2, 2020 16:55
ubuntu server configuration
@sanrandry
sanrandry / loopback_spa_deployement.md
Last active August 4, 2020 04:59
loopback spa deployemnt
@sanrandry
sanrandry / tets encribpt dist tmp.md
Created August 4, 2020 05:02
tets encribpt dist tmp
  1. https://certbot.eff.org/

sudo apt-get update sudo apt-get install software-properties-common sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install python-certbot-nginx

  1. Auto, works when you have one virtual server on nginx
@sanrandry
sanrandry / wordpress theme starter.md
Last active August 8, 2020 09:58
wordpress theme starter

wordpress theme starter

create a the theme folder

create index.php and style.css

add comment to style.css

cpoy the comment in the index.css in the default theme to your index.css and edit it.

try to loop the post on the index.php page

<!DOCTYPE html>
<html lang="en">
@sanrandry
sanrandry / rakitra_note.md
Last active August 19, 2020 08:03
rakitra note
@sanrandry
sanrandry / vue_uikit.md
Last active October 5, 2020 07:33
vue uikit plugin

this is how we import a uikit with vue cli or nuxt js

form nuxt js

import the css in the css section on nuxt.config.js

 // Global CSS (https://go.nuxtjs.dev/config-css)
  css: ["@/assets/css/uikit.min.css"],

create a new plugin in the plugin directory and add this lines of code

import Vue from "vue";
@sanrandry
sanrandry / media-query.css
Created October 15, 2020 16:22 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS