Skip to content

Instantly share code, notes, and snippets.

View Joaquin6's full-sized avatar
🏠
Working from home

Joaquin Briceno Joaquin6

🏠
Working from home
  • Overland Park, KS
View GitHub Profile
@Joaquin6
Joaquin6 / mgdm.zsh-theme
Created July 26, 2017 08:43
ZSH theme for custom prompt
if [ "$(whoami)" = "root" ]
then CARETCOLOR="red"
else CARETCOLOR="white"
fi
host_color=0
local i=1
for val in $(echo $HOST | od -A n -t dC); do
host_color=$(($host_color + $i * $val))
i=$((i + 1))
@Joaquin6
Joaquin6 / jshintrc.json
Last active February 22, 2019 16:28
A copy of suitable .jshintrc file at `$HOME` for Mac
{
"asi": false,
"boss": false,
"camelcase": false,
"curly": true,
"eqeqeq": true,
"eqnull": false,
"esversion": 6,
"evil": false,
"expr": false,
@Joaquin6
Joaquin6 / default-packages
Last active June 22, 2017 11:23
File that gets picked up by NVM when installing a new version. File should live at $NVM_DIR/default-packages
app-root-path
aws-sdk
aws-sdk-apis
babel-cli
cross-env
coffeescript
coffee-script
coffee2js
@Joaquin6
Joaquin6 / bash_profile.sh
Last active July 18, 2017 10:50
ZSH Antigen - Hidden ".zshrc" and ".bash_profile" files that works without errors
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@Joaquin6
Joaquin6 / sublime-user-settings.json
Created June 8, 2017 14:01
Personal Favorite Sublime Text User Settings
{
"PersistentRegexHighlight":
{
"enabled": true
},
"atomic_save": false,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/Ksix (SL).tmTheme",
"fade_fold_buttons": false,
@Joaquin6
Joaquin6 / clean.sh
Last active June 19, 2017 19:11
File that lives in ./bin from the root dir. It is responsible for cleaning up the directory as desired.
#!/bin/bash
declare -a CLEAN=(
./.sass-cache
./eslint-debug.log
./npm-debug.log
./yarn-error.log
./logs
./node_modules
./build
@Joaquin6
Joaquin6 / greetings.js
Created May 16, 2017 08:46
JSON file containing multiple ways of saying "Hello"
module.exports = [{
code: 'AD',
name: 'Andorra',
greeting: 'Hola'
}, {
code: 'AE',
name: 'United Arab Emirates',
greeting: 'Marhaba'
}, {
code: 'AF',
#!/bin/sh
# Before running script, git must be installed
cd Desktop/
mkdir usr
cd usr/
mkdir git-sample-repos
cd git-sample-repos/
git clone git@github.com:DanialK/advanced-security-in-backbone.git
@Joaquin6
Joaquin6 / timezones.json
Created April 29, 2017 07:11
Timezone data for Moment-Timezone
{
"version": "2017b",
"zones": [
"Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5",
"Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5",
"Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5",
"Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5",
"Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6",
"Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldWV.E 2xonV.E|39e4",
"Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5",
@Joaquin6
Joaquin6 / tile-folder.js
Created March 23, 2017 08:28
tile a folder of images into a single images
// install with:
// npm i -g devtool
// npm i img javascript-natural-sort electron-canvas-to-buffer
//
// run:
// devtool tile-folder.js -qch
var fs = require('fs')
var path = require('path')
var loadImage = require('img')