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
<div class="w-100 position-relative" style="padding-top: 100%">
<img src="http://" class="position-absolute t-0 w-100 h-100 object-cover object-center">
</div>
@jovertical
jovertical / nginx-build-from-source.md
Last active December 27, 2019 16:45
Simple custom Nginx build with http_ssl_module included

Step 1: Download a tarball by going to: http://nginx.org/en/download.html

Step 2: Extract the tarball: tar <name-of-tarball-file>

Step 3: Configure from extracted source:

./configure --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre --pid-path=/var/run/nginx.pid --with-http_ssl_module

Step 4: Make & install

@jovertical
jovertical / nginx-conf
Last active December 28, 2019 09:47
Nginx Configration
Nginx Configuration
@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 / 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
  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

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
{
"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,
#!/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 &