This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:set prompt "λx.x> " | |
:set prompt-cont " > " | |
:set -XNoStarIsType | |
:set -XGADTSyntax | |
:set -XGeneralizedNewtypeDeriving | |
:set -XInstanceSigs | |
:set -XLambdaCase | |
:set -XPartialTypeSignatures | |
:set -XScopedTypeVariables | |
:set -XTypeApplications |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cats.syntax.apply._ | |
IO.shift *> task | |
// equivalent to | |
implicitly[ContextShift[IO]].shift *> task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit | |
echo "Removing exited docker containers..." | |
docker ps -a -f status=exited -q | xargs -r docker rm -v | |
echo "Removing dangling images..." | |
docker images --no-trunc -q -f dangling=true | xargs -r docker rmi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NAME=$(git branch | grep '*' | sed 's/* //') | |
echo "[#$NAME"': '$(cat "$1")"]" > "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bash | |
# Usage: | |
# ./git_move.sh git@repo_site.com:/my_repo.git origin/folder/path/ /destination/repo/path/ new/folder/path/ | |
repo=$1 | |
folder=$2 | |
dest_repo=$3 | |
dest_folder=$4 | |
clone_folder='__git_clone_repo__' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit" | |
git lg -g (To see file changes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() | |
{ | |
echo "This script get a specific branch/tag from SVN through git-svn and config in your .git/config ref." | |
echo "OPTIONS:" | |
echo " -h Show help" | |
echo " -t Tag Name that we want to label our branch localy" | |
echo " -u SVN Tag URL" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#function parse_git_branch { | |
# ref=$(git-symbolic-ref HEAD 2> /dev/null) || return | |
# echo "("${ref#refs/heads/}")" | |
#} | |
function parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn -B release:prepare -DdryRun=true -Dchas-support-api-version=22.0.0 -Dchas-support-version=22.0.0 -Dtag=chas-flight-23.0.0 -DreleaseVersion=23.0.0 -DdevelopmentVersion=23.0.1-SNAPSHOT |
NewerOlder