Skip to content

Instantly share code, notes, and snippets.

On my way building something ...

Manda Putra mandaputtra

On my way building something ...
View GitHub Profile
kimyvgy /
Created May 24, 2018 — forked from s-lyn/
Deploy nodejs app with and pm2

Deploy nodejs app with and pm2

This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:

  • Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
  • Windows 10 on my PC to work.
DreaMinder / A Nuxt.js VPS production
Last active May 19, 2021
Deployment manual for a real-world project built with nuxt.js + koa + nginx + pm2
View A Nuxt.js VPS production

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 or 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:

steven2358 /
Last active Jun 16, 2021
FFmpeg cheat sheet
View vue_js_cheatsheet.js
/* *******************************************************************************************
* Vue.config is an object containing Vue’s global configurations.
* You can modify its properties listed below before bootstrapping your application.
* ******************************************************************************************* */
// Configure whether to allow vue-devtools inspection
Vue.config.devtools = true
pooot / uppy-vue-example
Created Jan 2, 2018
Very basic vuejs usage of uppy
View uppy-vue-example
<div :id="uppyId">
<div class="ThumbnailContainer" v-if="collection === 'thumbnail'">
<button id="open-thumbnail-modal" class="button">Select file</button>
<div class="DashboardContainer" v-else></div>
NigelEarle /
Last active Jun 13, 2021
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

View Makefile
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.
staltz /
Last active Jun 16, 2021
The introduction to Reactive Programming you've been missing