Skip to content

Instantly share code, notes, and snippets.

View jovertical's full-sized avatar
🦉
Working from home

Jovert Lota Palonpon jovertical

🦉
Working from home
View GitHub Profile
@jovertical
jovertical / Errors.js
Created February 9, 2021 11:29 — forked from jeffochoa/Errors.js
Vue Form and Error validator (Laracasts)
class Errors {
/**
* Create a new Errors instance.
*/
constructor() {
this.errors = {};
}
/**
#!/usr/bin/env bash
echo "Starting rs0"
mongod --replSet rs0 --port 27017 --bind_ip localhost --dbpath /Users/jovert/mongodb/rs0-0 --oplogSize 128 > /dev/null 2>&1 &
echo "Starting rs1"
mongod --replSet rs0 --port 27018 --bind_ip localhost --dbpath /Users/jovert/mongodb/rs0-1 --oplogSize 128 > /dev/null 2>&1 &
echo "Starting rs2"
mongod --replSet rs0 --port 27019 --bind_ip localhost --dbpath /Users/jovert/mongodb/rs0-2 --oplogSize 128 > /dev/null 2>&1 &
{
"diffEditor.ignoreTrimWhitespace": false,
"editor.fontLigatures": true,
"editor.fontFamily": "'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier', 'monospace'",
"editor.lineHeight": 26,
"editor.multiCursorModifier": "ctrlCmd",
"editor.suggestSelection": "first",
"editor.rulers": [80, 120],
"editor.tabCompletion": "on",
"editor.tabSize": 2,

1. Project Overview

This tiny twitter clone project must consist the following features:

  1. User registration & login
  2. Profile
  3. Follow other users
  4. Tweet
  5. Like each others tweet
  1. Install Inertia:
# Server side adapter
composer require inertiajs/inertia-laravel

# Install Vue.js && client side adapter for Vue.js
npm install vue @inertiajs/inertia @inertiajs/inertia-vue
@jovertical
jovertical / work-references
Last active May 13, 2020 02:05
My Work References
Name: Lourd Rancy Guanzon
Position: UI / UX Designer (Remote)
Company: Appetiser Apps (Australia)
Phone Number: +639471078592
Email Address: [email protected]
Name: Leonardo Louie Ordonez
Position: Software Developer
Company: Unosoft Inc. (QC)
Phone Number: 09662351750
@jovertical
jovertical / revert-a-commit.md
Created January 12, 2020 14:22 — forked from gunjanpatel/revert-a-commit.md
Git HowTo: revert a commit already pushed to a remote repository

Revert the full commit

Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.

git revert {commit_id}'

About History Rewriting

Delete the last commit

Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:

@jovertical
jovertical / nginx-conf
Last active December 28, 2019 09:47
Nginx Configration
Nginx Configuration