Skip to content

Instantly share code, notes, and snippets.

🏎
Rockin' in the new world.

David J Eddy davidjeddy

🏎
Rockin' in the new world.
Block or report user

Report or block davidjeddy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Terraform crash 2019-04-17 @1730
2019/04/17 17:30:39 [INFO] Terraform version: 0.11.13
2019/04/17 17:30:39 [INFO] Go runtime version: go1.11.5
2019/04/17 17:30:39 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan", "--out", "./out.plan", "-var-file=.env"}
2019/04/17 17:30:39 [DEBUG] Attempting to open CLI config file: /home/pheagey/.terraformrc
2019/04/17 17:30:39 Loading CLI configuration from /home/pheagey/.terraformrc
2019/04/17 17:30:39 [INFO] CLI command args: []string{"plan", "--out", "./out.plan", "-var-file=.env"}
2019/04/17 17:30:39 [TRACE] module source: "./terraform/s3_mount"
2019/04/17 17:30:39 [TRACE] Preserving existing state lineage "f399098d-65b1-d414-592d-709cc2e7d2bc"
2019/04/17 17:30:39 [TRACE] Preserving existing state lineage "f399098d-65b1-d414-592d-709cc2e7d2bc"
2019/04/17 17:30:39 [DEBUG] Service discovery for app.terraform.io at https://app.terraform.io/.well-known/terraform.json
View keybase.md

Keybase proof

I hereby claim:

  • I am davidjeddy on github.
  • I am davidjeddy (https://keybase.io/davidjeddy) on keybase.
  • I have a public key whose fingerprint is 7218 3F15 84B8 E3B1 1325 6AC8 29C9 16FF 8E32 5E23

To claim this, I am signing this object:

@davidjeddy
davidjeddy / git-branches-by-commit-date.sh
Created Sep 15, 2017 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
View git-branches-by-commit-date.sh
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
View Docker delete all images and containers
#!/bin/bash
#containers
# Delete all containers forcefully
docker rm $(docker ps -a -q) --force
# When you want to copy something from inside a container to the host:
`docker cp {container ID}:/path/in/container/ /path/on/host
#Images
@davidjeddy
davidjeddy / Remove all your local git branches but keep master
Last active Jul 16, 2016
Remove all your local git branches but keep master
View Remove all your local git branches but keep master
$ git branch | grep -v "master" | xargs git branch -D
---or as a bash alias---
alias gitcb="git branch | grep -v "master" | xargs git branch -D"
@davidjeddy
davidjeddy / gist:c3f3183f907c6b8726a79833b4579c34
Created Jun 20, 2016
Disable pulling tags from a specific remote using GiT
View gist:c3f3183f907c6b8726a79833b4579c34
git config remote.{remote name}.tagopt --no-tags
@davidjeddy
davidjeddy / prepare-commit-msg
Created Dec 23, 2015
Automatically adds branch name to the start of every commit message.
View prepare-commit-msg
#!/bin/bash
#
# Automatically adds branch name to the start of every commit message.
#
BRANCHNAME=$(git branch | grep '*' | sed 's/* //')
echo -e [$BRANCHNAME] $(cat "$1") > "$1"
@davidjeddy
davidjeddy / gist:eb19e79c2de05a0fcea9
Created Dec 12, 2015
Access Google Contact API and return contact's
View gist:eb19e79c2de05a0fcea9
/**
* Contact Google via Oauth + API
* All getenv() referances are application configuration variables
* $this->curlGoole(/*...*/) is a typical cURL call capable of GET and POST
*/
public function actionGoogle()
{
// holder vars
$queryStringArray = [];
$returnData = null;
@davidjeddy
davidjeddy / dateDiff.php
Last active Oct 16, 2015
time() / strtotime() differance as human readable string even over long periods
View dateDiff.php
/**
* [dateDiff description]
* @source http://www.if-not-true-then-false.com/2010/php-calculate-real-differences-between-two-dates-or-timestamps/
* @since 0.0.5 [<description>]
* @param [type] $time1 [description]
* @param [type] $time2 [description]
* @param integer $precision [description]
* @return [type] [description]
*/
public static function dateDiff($time1, $time2, $precision = 6)
You can’t perform that action at this time.