Skip to content

Instantly share code, notes, and snippets.

View terabyte's full-sized avatar

Carl Myers terabyte

View GitHub Profile
apply plugin: 'java'
dependencies {
compile fileTree(dir: "$System.env.INPUT_ARTIFACTS_DIR", include: 'strong/*/jars/*.jar')
}
version = "$System.env.PACKAGE_CUMULATIVE_VERSION"
sourceSets {
main {
#!/usr/bin/env bash
FILE="$HOME/.tmux.copybuffer"
scratch=$(mktemp -t tmp.XXXXXXXXXX)
function finish {
rm -rf "$scratch"
}
trap finish EXIT
@terabyte
terabyte / console
Created July 6, 2017 19:31
Can a directory conflict occur?
12:24:41 ⮀ ὐB 100%  cmyers@powerhouse ⮀ git init repro
Initialized empty Git repository in /home/cmyers/repro/.git/
12:24:43 ⮀ ὐB 100%  cmyers@powerhouse ⮀ cd repro
12:25:10 ⮀ ὐB 100%  cmyers@powerhouse ⮀ @master ⮀ echo "# Test merge conflicts with empty directories" > README.md
12:25:12 ⮀ ὐB 100%  cmyers@powerhouse ⮀ @master ? ⮀ git add README.md
12:25:16 ⮀ ὐB 100%  cmyers@powerhouse ⮀ @master ✚ ⮀ git commit -m"initial commit"
[master (root-commit) 02d25d9] initial commit
1 file changed, 1 insertion(+)
create mode 100644 README.md
12:25:19 ⮀ ὐB 100%  cmyers@powerhouse ⮀ @master ⮀ git checkout -b left
12:04:36 ⮀ ὐB 100%  cmyers@powerhouse ⮀ cd ~/projects
12:04:38 ⮀ ὐB 100%  cmyers@powerhouse ⮀ mkdir __
12:04:38 ⮀ ὐB 100%  cmyers@powerhouse ⮀ cd __
12:04:40 ⮀ ὐB 100%  cmyers@powerhouse ⮀ git init
Initialized empty Git repository in /home/cmyers/projects/__/.git/
12:04:46 ⮀ ὐB 100%  cmyers@powerhouse ⮀ @master ⮀ echo "foo" > foo.txt
12:04:52 ⮀ ὐB 100%  cmyers@powerhouse ⮀ @master ? ⮀ git add foo.txt
12:04:58 ⮀ ὐB 100%  cmyers@powerhouse ⮀ @master ✚ ⮀ git commit -m"initial commit"
[master (root-commit) 8f389ce] initial commit
1 file changed, 1 insertion(+)
#!/usr/bin/env bash
# usage: set-git-author.sh [HOME|WORK] /path/to/.git/config
# example crontab:
# find /home/cmyers/projects/cloudera -type f -path '*/.git/config' -exec /home/cmyers/bin/set-git-author.sh WORK {} \;
# find /home/cmyers/projects -type f -path '*/.git/config' -not -path '*/cloudera/*' -exec /home/cmyers/bin/set-git-author.sh HOME {} \;
TYPE="$1"
0a1,255
> refs/heads/2013-05-06_caching 8df885e2d25578655a9f164e40e5c406ca717780
> refs/heads/2013-05-17_caching 587bb1d25c39b7299f0661f341754dbe2a25227b
> refs/heads/2.7 b8be756a4d85d7de0b739191b9b79ae7d701e9ec
> refs/heads/5.x 22270b2878a9a77d6aa5c0014a6efa5121294e36
> refs/heads/788 a5ed8344e12a3722ca9c6766dbecd7a0280df66c
> refs/heads/aaron-contextweb-jsp 7bc1fabe5594ffc29105fce70347398a0d97c36e
> refs/heads/aaron-mrunit-serialization 2c6d37d3208c907b4593895e3fa283193babbb25
> refs/heads/aaron-sqoop-18 365ea69d1d93e8875eabf3584bd67794be80ed6e
> refs/heads/aaron-sqoop-classnames 84d45072ac3b54ca6b68a9f3047e891bfedf58bd
0a1,261
> refs/heads/2.7 b8be756a4d85d7de0b739191b9b79ae7d701e9ec
> refs/heads/2013-05-06_caching 8df885e2d25578655a9f164e40e5c406ca717780
> refs/heads/2013-05-17_caching 587bb1d25c39b7299f0661f341754dbe2a25227b
> refs/heads/5.x 22270b2878a9a77d6aa5c0014a6efa5121294e36
> refs/heads/788 a5ed8344e12a3722ca9c6766dbecd7a0280df66c
> refs/heads/CDH-26197 daddeb5b0fbfeb427a0dddfc6000a7316bfd3e06
> refs/heads/CDH-28171 6cbe4b81344cc7052007f7bd8d972bc71d58ce5c
> refs/heads/CDH3B4-tynt-20110307 a0bf7e40b0597a0a7c68dd6c8a351a17da113f33
> refs/heads/HADOOP-9780 3aa0f76993d35ccb0c8c93267eccbdd69760159a
* a9261da (origin/master, origin/HEAD) Merge pull request #48 from terabyte/cmyers/proposed-workaround-issue-41
|\
| * e48ac48 (origin/cmyers/proposed-workaround-issue-41) [Issue #41] Synchronize PRM table accesses
| * f041893 Attempting to write a test to catch the race
|/
* d0462fe (tag: 2.1.0) Fix DOMAIN_VERSION to be long, even when building on a tag
* c0fb6f8 Merge pull request #46 from memory/add-reason-to-triggers-bbs4
|\
| * 97fd389 (memory/add-reason-to-triggers-bbs4) abuse javascript to pass buildref in from trigger links
|/
* a9261da962d38824b2c3a921563de4b5be04e6d2 Carl Myers Wed Nov 16 15:40:30 2016 -0800  (origin/master, origin/HEAD)Merge pull request #48 from terabyte/cmyers/proposed-workaround-issue-41
|\
| * e48ac4822ac16ae5157c1520b81a3b81503a7eee Carl Myers Mon Nov 7 09:16:04 2016 -0800  (origin/cmyers/proposed-workaround-issue-41)[Issue #41] Synchronize PRM table accesses
| * f04189394bee25e75a917792a70814048ef44ac9 Carl Myers Wed Nov 16 14:20:18 2016 -0800 Attempting to write a test to catch the race
|/
* d0462fe8a55add016a1bf7a86f9d463bf5927966 Carl Myers Tue Oct 4 15:05:20 2016 -0700  (tag: 2.1.0)Fix DOMAIN_VERSION to be long, even when building on a tag
* c0fb6f8d729e3ec15c7b8e1252e30c5109dbb5d1 Carl Myers Tue Oct 4 14:58:58 2016 -0700 Merge pull request #46 from memory/add-reason-to-triggers-bbs4
|\
| * 97fd389709b15fadf60a
#!/usr/bin/env bash
set -e
CRED_FILE="$HOME/.githubCredentials"
if [[ ! -r "$CRED_FILE" ]]; then
echo "Credential File does not exist"
echo "To create, do this:"
echo "touch ~/.githubCredentials"