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. |
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
#!/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 |
#!/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} |
name: CI for API | |
on: | |
pull_request: | |
paths: | |
- 'api/**' | |
- '.github/workflows/ci_api.yaml' | |
jobs: | |
coding-standard: |
<script setup> | |
import { ref, watch } from 'vue'; | |
const options = [ | |
"Barcelona", | |
"Madrid", | |
"Sevilla", | |
"Valencia", | |
"Vitoria", | |
"La Rioja", |
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"path/filepath" |