Skip to content

Instantly share code, notes, and snippets.

View amonger's full-sized avatar
🏄‍♂️

Alan Monger amonger

🏄‍♂️
View GitHub Profile
// select the type and complete the matching tab below (***)
Type = "T";// [T:Text, W:Wi-Fi,P:Phone Call,V:vCard]
/* [*** Text Type ***] */
// string to encode (text, url, mail, ect.)
Text = "hello world"; // 128
@amonger
amonger / gist:2385361dfc73d283582986777dca9a98
Created September 18, 2024 10:19
Get a list of jiras associated with a PR
gh pr view 362 -q ".commits[].messageBody" --json commits | grep -o "EP-.\S* " | uniq | sort | sed -e "s/^/https:\/\/elevate.atlassian.net\/browse\//"
@amonger
amonger / gist:820e84ee55b77782bc7f82fd42bb781a
Created November 10, 2023 12:00
Open jira with current branch id
alias jira="git rev-parse --abbrev-ref HEAD | xargs -I{} open https://elevate.atlassian.net/browse/{}"
find . -iname "*.CR2" -print -exec sh -c 'convert {} $(echo {} | sed -n "s/CR2/JPG/p")' \;
@amonger
amonger / thunk.js
Created February 22, 2017 08:24
thunk
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers, applyMiddleware, compose, getInitialState } from 'redux';
import { connect } from 'react-redux';
import thunk from 'redux-thunk';
import './index.css';
// function getBalance() {
// return new Promise((resolve, reject) => {
@amonger
amonger / color-map.scss
Created April 28, 2016 13:54
Color Map
/**************************************
* Colour Definitions *
**************************************/
$blue: #72b9df;
$blue-low: #4e5980;
$yellow: #f1d901;
$yellow-low: #e0c801;
$sand: #ebca88;
$purple: #7e4d87;
@amonger
amonger / gist:d4c41c4d9f38eeefc04e
Created March 16, 2016 15:05
Remove Merged Branches
git config --global alias.cleanup '! git branch --merged | grep -v "^* master$" | grep -v "^ master$" | xargs git branch -d'
@amonger
amonger / cowsay.yml
Created August 6, 2015 22:26
Ansible Example
---
- name: Install Cowsay
hosts: localhost
sudo: yes
connection: local
tasks:
- name: install cowsay
apt: name=cowsay