Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Irving Caamal. irvv17

🎯
Focusing
View GitHub Profile
@irvv17
irvv17 / wait-for-a-service.sh
Last active Oct 22, 2021
Check and wait for a service in any linux distro
View wait-for-a-service.sh
#!/bin/sh
# $: means that is an ENV variable
if [ "$DATABASE" = "postgres" ]
then
echo "Waiting for postgres..."
while ! nc -z $POSTGRESQL_ADDON_HOST $POSTGRESQL_ADDON_PORT; do
sleep 0.1
done
@irvv17
irvv17 / bootstrap-4-sass-mixins-cheat-sheet.scss
Created Jul 18, 2021 — forked from anschaef/bootstrap-4-sass-mixins-cheat-sheet.scss
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
View bootstrap-4-sass-mixins-cheat-sheet.scss
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// Updated to Bootstrap v4.5.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/master/scss/mixins
/* -------------------------------------------------------------------------- */
// Grid variables
$grid-columns: 12;
$grid-gutter-width: 30px;
@irvv17
irvv17 / yaml
Created Mar 3, 2021
CI pipeline for Github Actions, works with Laravel 8 with PHP 8
View yaml
name: CI-pipeline
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
@irvv17
irvv17 / ts-boilerplate.md
Created Feb 23, 2021 — forked from silver-xu/ts-boilerplate.md
Setup a Node.js project with Typescript, ESLint, Prettier, Husky
View ts-boilerplate.md

Setup a Node.js project with Typescript, ESLint, Prettier, Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@irvv17
irvv17 / ohmyzsh.md
Created Jan 26, 2021 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux
View ohmyzsh.md

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.

View index.js
const express = require('express')
const consola = require('consola')
const { Nuxt, Builder } = require('nuxt')
const app = express()
// Import and Set Nuxt.js options
const config = require('../nuxt.config.js')
config.dev = process.env.NODE_ENV !== 'production'
async function start () {