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 / jira-rest.pm
Created January 26, 2017 06:28
ABSTRACT: Thin wrapper around JIRA's REST API
package JIRA::REST;
# ABSTRACT: Thin wrapper around JIRA's REST API
use 5.008_008;
use utf8;
use strict;
use warnings;
use Carp;
use URI;
@Joaquin6
Joaquin6 / Gitignore-Template
Last active January 27, 2017 10:56
This is the usual .gitignore file i use for all projects.
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
build/
logs/
npm-debug.log.*
@Joaquin6
Joaquin6 / git-aliases-list
Last active August 10, 2017 23:14
Shell script that can be executed with NPM scripts. The original plan is to run this script at "postinstall" as it executes the script for the current repo.
g=git
ga='git add'
gaa='git add --all'
gapa='git add --patch'
gau='git add --update'
gb='git branch'
gba='git branch -a'
gbd='git branch -d'
gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
gbl='git blame -b -w'
@Joaquin6
Joaquin6 / git-prompt.sh
Created February 9, 2017 11:37
This script allows you to see repository status in your prompt.
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@Joaquin6
Joaquin6 / npm_completion.sh
Last active February 9, 2017 12:21
Allows for autocompletion for npm commands
. <(npm completion)
@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')
@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",
#!/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 [email protected]:DanialK/advanced-security-in-backbone.git
@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',
@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