Skip to content

Instantly share code, notes, and snippets.

View thatkookooguy's full-sized avatar

Neil Kalman thatkookooguy

View GitHub Profile
@thatkookooguy
thatkookooguy / ubuntu8FreshInstall.sh
Last active June 10, 2018 16:10
ubuntu 18.04 fresh install script
#!/bin/bash
# Define colors if needed
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
@thatkookooguy
thatkookooguy / ubuntu-18-04-changes.md
Last active June 5, 2018 12:00
this is how I made my ubuntu 18.04 look like I want it to

prep

Need the following:

make beautiful:

  • Set the following themes:
@thatkookooguy
thatkookooguy / objectMapper.js
Last active January 1, 2019 23:30
create a specific output value from any input object based on a mapper object. originally designed to allow achievibit (achievibit.kibibit.io) to work with multiple git cloud networks (GitHub, Gitlab, Bitbucket, etc.)
/**
* @fileOverview trying to create a general mapping utility.
* please credit me if you use this :-)
*
* @example
* const requestData = {
* user: 'thatkookooguy',
* project: 'achievibit',
* more: {
* user: 'ortichon'
@thatkookooguy
thatkookooguy / sum-pipe.js
Last active January 1, 2019 23:30
an example on how to create pipe functions that behave nicely when used
function sum(initialValue) {
// we need both of these here to allow returning
// the result if no number was added
innerSum.result = initialValue;
innerSum.toString = () => innerSum.result;
return innerSum;
function innerSum(addedValue) {
innerSum.result += addedValue;
var tbl = jQuery('.publicholidays tr').get().map(function(row) {
return jQuery(row).find('td').get().map(function(cell) {
return jQuery(cell).text();
});
}).map((holiday) => {
const regex = /\d{4}-\d{2}-\d{2}/g;
let match = regex.exec(holiday[0] || "");
let date = match ? match[0] : null;
let name = (holiday[2] || "").trim();

dependencies

  1. node.js
  2. brew (optional)

install

  1. run npm install -g git-stats-importer jira-cmd git-stats in your terminal
    • git-stats-importer is used to import git history into git-stats
    • git-stats is used to show your contribution graph
    • jira-cmd is used to show a specific agile board
@thatkookooguy
thatkookooguy / example.diff
Last active December 25, 2017 14:35
diff2html-cli example file that gives 0 file changes
diff --git a/lib/commandDefinitions.js b/lib/commandDefinitions.js
index f1809d7..e5b9e1d 100644
--- a/lib/commandDefinitions.js
+++ b/lib/commandDefinitions.js
@@ -4,8 +4,10 @@ var statusGitflow = require('./gitflow/status');
var commitGitflow = require('./gitflow/commit');
var finishGitflow = require('./gitflow/finish');
var featureGitflow = require('./gitflow/feature');
+var releaseGitflow = require('./gitflow/release');
var hotfixGitflow = require('./gitflow/hotfix');
###COLORS###
BLUE='\x1B[0;34m'
NC='\x1B[0m' # No Color
brew install zsh zsh-completions md5sha1sum fortune toilet jq ghi gnu-sed
gem install wkhtmltoimage-binary
# Install oh-my-zsh and switch default shell to zsh
sudo curl -L http://install.ohmyz.sh | sudo sh
chsh -s $(which zsh)
# Install powerline fonts for theme compatability
@thatkookooguy
thatkookooguy / index.html
Created November 15, 2017 12:57
kibibit new team member
<div class="main">
<div id="logo" class="kb-logo"><span class="letter">k</span><!--
--><div class="shape-animation shape-one to-red">
<div class="shape shape1"></div>
<div class="shape shape2"></div>
</div><!--
--><div class="shape-animation shape-zero">
<div class="shape shape1"></div>
<div class="shape shape2"></div>
</div><!--
@thatkookooguy
thatkookooguy / index.html
Created November 10, 2017 00:33
kibibit logo animation
<div class="toggler" id="loader">loader animation</div>
<div class="toggler" id="kt">always k & t</div>
<div class="toggler" id="colors">toggle colors</div>
<div id="logo"><span class="letter">k</span><!--
--><div class="shape-animation shape-one to-red">
<div class="shape shape1"></div>
<div class="shape shape2"></div>
</div><!--
--><div class="shape-animation shape-zero">
<div class="shape shape1"></div>