From e979b64b68351168da84dde22184997ec357c44b Mon Sep 17 00:00:00 2001 From: Nic0Nic0Nii Date: Mon, 4 Oct 2021 06:02:32 +0000 Subject: [PATCH] Project and gitpod environment setup --- .gitignore | 1 + .gitpod.yml | 7 +++++++ coauthors.sh | 40 ++++++++++++++++++++++++++++++++++++++++ ffxivai.jar | Bin 0 -> 862 bytes run | 5 +++++ src/sig/FFXIV.java | 7 +++++++ 6 files changed, 60 insertions(+) create mode 100644 .gitignore create mode 100644 .gitpod.yml create mode 100755 coauthors.sh create mode 100644 ffxivai.jar create mode 100755 run create mode 100644 src/sig/FFXIV.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c5e82d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..a248717 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,7 @@ +# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ +tasks: + - init: sh ./coauthors.sh +vscode: + extensions: + - redhat.java + - mhutchie.git-graph \ No newline at end of file diff --git a/coauthors.sh b/coauthors.sh new file mode 100755 index 0000000..e97524b --- /dev/null +++ b/coauthors.sh @@ -0,0 +1,40 @@ +npm i -g git-mob +cat <<-EOF > ~/.git-coauthors +{ + "coauthors": { + "sig": { + "name": "sigonasr2", + "email": "sigonasr2@gmail.com" + } + } +} +EOF +git mob sig +cat <<-EOF > .git/hooks/prepare-commit-msg +#!/usr/bin/env node +let exec = require('child_process').exec, + fs = require('fs'); +const commitMessage = process.argv[2]; +// expect .git/COMMIT_EDITMSG +if(/COMMIT_EDITMSG/g.test(commitMessage)){ + let contents = ""; + exec("git mob-print", + function (err, stdout) { + if(err) { + process.exit(0); + } + // opens .git/COMMIT_EDITMSG + contents = fs.readFileSync(commitMessage); + if(contents.indexOf(stdout.trim()) !== -1) { + process.exit(0); + } + const commentPos = contents.indexOf('# '); + const gitMessage = contents.slice(0, commentPos); + const gitComments = contents.slice(commentPos) + fs.writeFileSync(commitMessage, gitMessage + stdout + gitComments); + process.exit(0); + }); +} +EOF +chmod +x .git/hooks/prepare-commit-msg +echo "Environment is setup!" \ No newline at end of file diff --git a/ffxivai.jar b/ffxivai.jar new file mode 100644 index 0000000000000000000000000000000000000000..3b223c2cf468b482cc23e5291d384aef1e446348 GIT binary patch literal 862 zcmWIWW@Zs#;Nak3a5ZoVW*(j{<{BKL=j-;__snS@Z(Y5MyxzK6=gyqp9At3C_`%a6JuhD!Pv48Bt5~=g zT)*)2ikQf(_9_->((d*SD()^7vH3jdt4Za~8e!wlC3A~~y1UnkbQxd%dgqRk&Eblj z6+6LB`}1Piib$ZvQ9ulG8W#ft(7EXTVgbq)XQu1pc04~+g_~Q1XP91cPGWI!Zh)`% zVF!WQ%UgVf7q4Braz1Odz#{hIk6|B`L|PX)E#aCssf;uFlVYaQkIi2eJUA%-pkF9` zaX`zv#I)yUt2gI=d;R;d@Bz*$wO1KZ8Hsxvw{`NFmE5q})$(hlPfDHJg*k@}7go*l zV_j%DsdI5r3Lw=7t^F!}N!v2C2!T00h%{MS3XC^Pj`}qZMJ=y+2PB{3T4VppQIoYNJml6b=~djjPU_A(7(BILYfb7~c2M%rlsdmh zm63sA2@nT(Gct)Vpr$TZ(gCF|Q~*ydptOdr6*+1_X$t{tflRnoq?86Sfr|lm5