Skip to content

Instantly share code, notes, and snippets.

View cuzz22000's full-sized avatar

Chris Wilson cuzz22000

View GitHub Profile
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
/*
## Anything you type or change here will be seen by the other person in real time.
#
# Given a collection of intervals, merge all overlapping intervals. For example:
@cuzz22000
cuzz22000 / nptd-refresh-coros.sh
Created October 6, 2017 16:12
Reset CoreOs system time.
sudo systemctl stop ntpd
sudo ntpd -gq
sudo systemctl start ntpd
@cuzz22000
cuzz22000 / git-scm_migrate.md
Last active August 2, 2016 17:07
Migrate git-scm to Git Hub

Pull the repositoy that you want to migrate

$> git clone <url-to-repo>

You can either create the target repository through the UI or use hub from the command line.

@cuzz22000
cuzz22000 / aws_creds.sh
Created October 14, 2015 16:47
Export AWS access and secret keys
#!/bin/bash
[ "$1" = '' ] && PROF='default' || PROF=$1
export AWS_ACCESS_KEY_ID=`aws configure --profile=$PROF get aws_access_key_id`
export AWS_SECRET_ACCESS_KEY=`aws configure --profile=$PROF get aws_secret_access_key`
echo Credentials for $PROF
echo AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID ,AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
@cuzz22000
cuzz22000 / showhidden.sh
Created July 29, 2015 19:01
Show hidden files in OSx Finder
#!/bin/bash
#togles hidden files in the finder application
if [ "$1" = "" ] || ! [ "$1" = "true" ] && ! [ "$1" = "false" ]
then
echo "useage: ./showhidden [true | false]"
exit
fi
@cuzz22000
cuzz22000 / gist:92af43bebecef22088d8
Last active September 10, 2016 07:15
OSX brew v0.9.5 formula for Docker 1.6.2

Formula for Docker 1.6.2 is not included in brew's index.

$ brew search docker
boot2docker	 docker		  docker-compose   docker-machine   docker-swarm
homebrew/completions/boot2docker-completion		      homebrew/versions/docker150
homebrew/completions/docker-completion			      Caskroom/cask/boot2docker-status
homebrew/versions/boot2docker133			      Caskroom/cask/boot2docker
homebrew/versions/boot2docker141			      Caskroom/cask/docker-compose
homebrew/versions/docker133				      Caskroom/cask/docker-machine
@cuzz22000
cuzz22000 / keybase.md
Created May 18, 2015 15:11
Keybase verifcation

Keybase proof

I hereby claim:

  • I am cuzz22000 on github.
  • I am cwilsonjdev (https://keybase.io/cwilsonjdev) on keybase.
  • I have a public key whose fingerprint is 3BCA DC8B 2C04 8207 048D 60F7 1FFB C696 9A38 D660

To claim this, I am signing this object: