Skip to content

Instantly share code, notes, and snippets.

View carlos-reynosa's full-sized avatar
🏠
Working from home

Carlos Reynosa carlos-reynosa

🏠
Working from home
View GitHub Profile
@carlos-reynosa
carlos-reynosa / WaitForDbConnection.sh
Last active January 8, 2021 17:22
Wait for DB Connection Bash Script
#!/bin/bash
# Author: Tasos Latsas
# spinner.sh
#
# Display an awesome 'spinner' while running your long shell commands
#
# Do *NOT* call _spinner function directly.
# Use {start,stop}_spinner wrapper functions
@carlos-reynosa
carlos-reynosa / .xbindkeysrc
Last active April 27, 2020 20:05
Linux Key Bindings
"xte 'keydown Control_L' 'keydown Alt_L' 'key Up' 'keyup Control_L' 'keyup Alt_L'"
b:9
"xte 'keydown Control_L' 'keydown Alt_L' 'key Down' 'keyup Control_L' 'keyup Alt_L'"
b:8
"xte 'keydown Alt_L' 'key F1' 'keyup Alt_L'"
b:2
"xte 'keydown Alt_L' 'key F1' 'keyup Alt_L'"
b:2 + release
@carlos-reynosa
carlos-reynosa / bash_boilerplate_template.sh
Created January 24, 2020 22:24
Customized Bash Boilerplate Script
#!/usr/bin/env bash
# This file:
#
# - Demos BASH3 Boilerplate (change this for your script)
#
# Usage:
#
# LOG_LEVEL=7 ./main.sh -f /tmp/x -d (change this for your script)
#
# Based on a template by BASH3 Boilerplate v2.4.1
@carlos-reynosa
carlos-reynosa / module-readme-template.md
Created January 15, 2020 20:08 — forked from magento-docbot/module-readme-template.md
README template for Magento modules
@carlos-reynosa
carlos-reynosa / module-readme-template.md
Created January 15, 2020 20:08 — forked from magento-docbot/module-readme-template.md
README template for Magento modules
Example infrastructure outage incident report
Friday, May 13, 2077
By the Example Security Team
Earlier this week we experienced an outage in our API infrastructure. Today we’re providing an incident report that details the nature of the outage and our response.
The following is the incident report for the Example Security outage that occurred on April 30, 2077. We understand this service issue has impacted our valued developers and users, and we apologize to everyone who was affected.
@carlos-reynosa
carlos-reynosa / solarized-color-palette
Created September 9, 2014 18:47
Solarized Bash Terminal Color Palette
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_background" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_colors" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/palette" --type string "#070736364242:#D3D301010202:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#00002B2B3636"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#65657B7B8383"
@carlos-reynosa
carlos-reynosa / Gruntfile.js
Last active August 29, 2015 14:03
Grunt dependencies and tasks for running a php and livereload server in a project.
/**
* Tasks for running the php dev server and livereload server
*
*/
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),