Skip to content

Instantly share code, notes, and snippets.

@jordigg
jordigg / pi-dashboards.md
Last active August 29, 2023 12:54
Setup dasboards using raspberryPi, chromium and VNC server for remote support
@jordigg
jordigg / mac_bootstrap.sh
Last active July 4, 2017 11:00
Bootstrap script for Mac via Puppet
#!/usr/bin/env bash
#
# This bootstraps Puppet on Mac OS X 10.12
#
# Optional environmental variables:
# - PUPPET_PACKAGE_URL: The URL to the Puppet package to install.
#
# Optional parameters
# - ROLE: Defines the role of the agent on a custom fact
#
@jordigg
jordigg / windows_bootstrap.ps1
Last active February 16, 2021 07:42
Puppet Boostrap for Windows
.SYNOPSIS
Installs Puppet on this machine.
.DESCRIPTION
Downloads and installs the PuppetLabs Puppet MSI package.
This script requires administrative privileges.
You can run this script from an old-style cmd.exe prompt using the
following:
powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -Command "& '.\windows.ps1' -Role Engineering -Type desktop"
.PARAMETER MsiUrl
This is the URL to the Puppet MSI file you want to install. This defaults
@jordigg
jordigg / setpath.sh
Last active February 9, 2016 10:24
Script to add paths to the system wide environment $PATH
#!/usr/bin/env bash
#
# This script adds a path to the env $PATH
#
# Run as --> ./setpath.sh yourpath
#
set -e
SET_PATH=$1
@jordigg
jordigg / ubuntu_bootstrap.sh
Last active February 21, 2017 15:01
Puppet agent bootstrap for Debian based systems (Debian, Ubuntu)
#!/usr/bin/env bash
#
# This bootstraps Puppet on Debian based systems
#
# To install latest version run as --> PUPPET_COLLECTION=pc1 ROLE=role TYPE=type ./ubuntu_bootstrap.sh
# role and type variables are custom_facts with the same name
# role can be: engineering, teamcityagent, puppetserver, puppetdb... or empty.
# type can be server or workstation. Defaults to workstation if not defined.
set -e
@jordigg
jordigg / devise.es.yml
Created February 5, 2015 01:38 — forked from Theby/devise.es.yml
Updated to 3.2.4
# Traducciones adicionales en https://github.com/plataformatec/devise/wiki/I18n
es:
devise:
confirmations:
confirmed: "Su cuenta ha sido confirmada."
send_instructions: "Recibira un correo electrónico en unos minutos con instrucciones sobre cómo restablecer su contraseña."
send_paranoid_instructions: "Si su correo electrónico existe en nuestra base de datos recibirás un correo electrónico en unos minutos con instrucciones sobre cómo reiniciar su contraseña."
failure:
already_authenticated: "Ya ha sido identificado."
@jordigg
jordigg / devise.es.yml
Created February 5, 2015 00:15 — forked from Theby/devise.es.yml
Updated to 3.2
# Traducciones adicionales en https://github.com/plataformatec/devise/wiki/I18n
es:
devise:
confirmations:
confirmed: "Tu cuenta ya ha sido confirmada."
send_instructions: "Recibirás un correo electrónico en unos minutos con instrucciones sobre cómo restablecer tu contraseña."
send_paranoid_instructions: "Si tu correo electrónico existe en nuestra base de datos recibirás un correo electrónico en unos minutos con instrucciones sobre cómo reiniciar tu contraseña."
failure:
already_authenticated: "Ya estás identificado."
@jordigg
jordigg / devise.ca.yml
Last active January 20, 2021 11:47 — forked from carlesjove/devise.ca.yml
Updated to 3.2
# Devise 3.2
ca:
devise:
confirmations:
confirmed: "El teu compte ha estat confirmat correctament. Si us plau, inicia la sessió."
send_instructions: 'En breu rebràs un correu electrònic amb instruccions sobre com confirmar el teu compte.'
send_paranoid_instructions: "Si la teva adreça electrònica existeix a la base de dades, rebràs un correu electrònic amb instruccions sobre com confirmar el teu compte."
failure:
already_authenticated: 'Ja estàs identificat.'