Skip to content

Instantly share code, notes, and snippets.

View irozgar's full-sized avatar

Isaac Rozas García irozgar

View GitHub Profile
@irozgar
irozgar / main.go
Created January 24, 2024 18:58
wlg
package main
import (
"encoding/json"
"flag"
"fmt"
"io"
"log"
"os"
"path/filepath"
@irozgar
irozgar / SearchableSelectComposition.vue
Last active March 17, 2022 21:43
Searchable select with menuselect and vue
<script setup>
import { ref, watch } from 'vue';
const options = [
"Barcelona",
"Madrid",
"Sevilla",
"Valencia",
"Vitoria",
"La Rioja",
name: CI for API
on:
pull_request:
paths:
- 'api/**'
- '.github/workflows/ci_api.yaml'
jobs:
coding-standard:
@irozgar
irozgar / installer.sh
Last active June 18, 2023 17:24
Arch installer
#!/usr/bin/env bash
#
#
# Credits: This script is heavily inspired by this post https://disconnected.systems/blog/archlinux-installer
set -uo pipefail
trap 's=$?; echo "$0: Error happened in script at line $LINENO: $BASH_COMMAND"; exit $s' ERR
KEYMAP=${KEYMAP:-us}
LOCALE=${LOCALE:-en_US}
@irozgar
irozgar / set -e && set -o pipefail
Last active January 29, 2020 15:21
notes about bash
#!/usr/bin/env bash
# set -exo pipefail
set -ex
echo running false
# grep fails, but since it's piped and pipefail is not enabled the result of the full
# command exists with zero (sort is the last command executed) if we enable pipefail
# this will fail, so teh script will exit with error code 1 because of -e
grep test nonexistentfile | sort
@irozgar
irozgar / VSCode PHP setup.md
Last active November 18, 2019 11:56
VSCode PHP setup
@irozgar
irozgar / mailcatcher-setup-symfony-vagrant.md
Created January 11, 2018 13:49 — forked from snoek09/mailcatcher-setup-symfony-vagrant.md
mailcatcher setup with symfony running in vagrant box

Forward port 1080 in Vagrantfile

config.vm.network :forwarded_port, host: 1080, guest: 1080

Install mailcatcher on vagrant box

sudo apt-get install ruby-dev
sudo apt-get install libsqlite3-dev
sudo gem install mailcatcher
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.