Skip to content

Instantly share code, notes, and snippets.

View irving-caamal's full-sized avatar
🎯
Focusing

Irving Caamal irving-caamal

🎯
Focusing
View GitHub Profile
@irving-caamal
irving-caamal / wait-for-a-service.sh
Last active October 22, 2021 17:33
Check and wait for a service in any linux distro
#!/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
@irving-caamal
irving-caamal / bootstrap-4-sass-mixins-cheat-sheet.scss
Created July 18, 2021 03:41 — forked from anschaef/bootstrap-4-sass-mixins-cheat-sheet.scss
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// 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;
@irving-caamal
irving-caamal / yaml
Created March 3, 2021 14:50
CI pipeline for Github Actions, works with Laravel 8 with PHP 8
name: CI-pipeline
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
@irving-caamal
irving-caamal / ts-boilerplate.md
Created February 23, 2021 20:15 — forked from silver-xu/ts-boilerplate.md
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

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
@irving-caamal
irving-caamal / ohmyzsh.md
Created January 26, 2021 21:35 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux

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.

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 () {