Skip to content

Instantly share code, notes, and snippets.

View jredh's full-sized avatar
Go Braves!

jredh

Go Braves!
View GitHub Profile
@jredh
jredh / cover.sh
Created June 27, 2022 16:21
go cover
mkdir .coverage || echo "coverage folder exists"
go test -v -cover ./... -coverprofile .coverage/coverage.out
go tool cover -html=.coverage/coverage.out -o .coverage/coverage.html
@jredh
jredh / GLSL-Noise.md
Created November 4, 2020 16:17 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@jredh
jredh / git-ssh-configuration.sh
Created July 23, 2020 14:44
How to use SSH for Github instead of Username/Password
#!/bin/sh
git config --global url.ssh://git@github.com/.insteadOf https://github.com/
@jredh
jredh / development-gold-sbt.sh
Created May 8, 2019 19:26
my favorite sbt cli command
sbt "~;test-quick -- -l org.scalatest.tags.Slow;run"
@jredh
jredh / pre-push-hook-install.sh
Last active November 6, 2018 21:38 — forked from cvogt/pre-commit-hook-install.sh
git pre-push hook for Scala test passing
#!/bin/sh
cd "$(dirname "$0")"
touch .git/hooks/pre-push
rm .git/hooks/pre-push
ln -s ../../pre-push-hook.sh .git/hooks/pre-push
@jredh
jredh / sbt-task-dependency-tree.sh
Last active September 10, 2018 13:27
SBT Task Dependency Tree
!#/bin/sh
sbt "inspect tree clean"
# For library dependency info, there are also the detailed dependency reports generated by Ivy.
# After doing sbt update, open the XML reports in target/resolution-cache/reports/ in a browser like MSIE.
$> brew install sbt
$> brew install sbt@0.13
$> sbt -v
1.1
$> brew switch sbt 0.13.13
$> sbt -v
0.13.13
cqlsh -f ##file##
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
@jredh
jredh / .inputrc
Created June 7, 2018 15:06
~/.inputrc
"\e[A":history-search-backward
"\e[B":history-search-forward