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 / npm_completion.sh
Last active February 9, 2017 12:21
Allows for autocompletion for npm commands
. <(npm completion)
@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 <spearce@spearce.org>
# 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 / 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 / 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 / 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 / add-issue-id-hook
Created January 26, 2017 06:12
Customize the final commit message using placeholders: - {issue_id} replaced with discovered issue id - {user_message} replaced with message provided by the user commit_message_format = '{issue_id} {user_message}'. Set this to a custom JIRA project key format or explicitly specify a single project name, e.g. 'EXAMPLE' project_format = '[A-Z][A-Z…
#!/usr/bin/env python
# add-issue-id-hook version 1.1.0
#
# Created by Joaquin Briceno
# https://github.com/pbetkier/add-issue-id-hook
# customize the final commit message using placeholders:
# - {issue_id} replaced with discovered issue id
# - {user_message} replaced with message provided by the user
@Joaquin6
Joaquin6 / git-jira-hook-rest
Created January 26, 2017 06:04
This is a git hook, to be used in an environment where git is used as the source control and Jira is used for bug tracking.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2014 Max Oberberger (max@oberbergers.de)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@Joaquin6
Joaquin6 / git-jira-hook
Created January 26, 2017 05:39
This is a git hook, to be used in an environment where git is used and jira as the project Task Tracking System. This hook allows us to (for lack of a better word) 'force' developers into an organized set of habits that provide proper project documentation and task details.
#!/usr/bin/env python
##########################################################################
# Copyright 2009 Broadcom Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@Joaquin6
Joaquin6 / post-merge
Created January 25, 2017 14:27
git hook to run a command after `git pull` if a specified file was changed.In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed.Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
@Joaquin6
Joaquin6 / .bash_profile
Created January 21, 2017 00:15
This file holds all my BASH configurations and aliases
# ---------------------------------------------------------------------------
#
# 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