Skip to content

Instantly share code, notes, and snippets.

View jcarsique's full-sized avatar

Julien Carsique jcarsique

View GitHub Profile
@jcarsique
jcarsique / .bash_aliases
Last active January 12, 2024 11:33
Bash config
alias cd..="cd .."
alias md="mkdir"
alias rd="rmdir"
alias mvni="mvn install -DskipTests=true"
alias mvnci="mvn clean install -DskipTests=true"
alias mvnecl='mvn eclipse:clean eclipse:eclipse -Declipse.useProjectReferences=true -fae -nsu ; ~/workspace/nuxeo/fixeclipse'
alias mvn2ecl="mvn eclipse:clean eclipse:m2eclipse -Declipse.useProjectReferences=true && ~/workspace/nuxeo/fixeclipse"
alias mvneclj="mvn eclipse:clean eclipse:eclipse -DdownloadJavadocs=true -Declipse.useProjectReferences=true && ~/workspace/nuxeo/fixeclipse"
alias mvnecls="mvn eclipse:clean eclipse:eclipse -DdownloadSources=true -Declipse.useProjectReferences=true && ~/workspace/nuxeo/fixeclipse"
alias hgl='hg glog|less'
[DEFAULT]
other_versions = 5.9.1-SNAPSHOT/5.9.1/5.9.2-SNAPSHOT
branch = master
tag = auto
next_snapshot = auto
maintenance_version = auto
mp_to_upload = marketplace/target/marketplace*.zip
[marketplace-agenda]
@jcarsique
jcarsique / pre-commit
Created November 25, 2013 15:30
Git pre-commit hook
#!/bin/sh
#
# A git hook script to find and fix trailing whitespace
# in your commits. Bypass it with the --no-verify option
# to git-commit
#
if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then
against=HEAD
@jcarsique
jcarsique / wtf-did-i-do
Last active February 24, 2022 16:05
"WTF did I do?!" from https://coderwall.com/p/saylrw
#!/bin/bash
function usage() {
echo 'Usage: wtf-did-i-do {options}'
echo
echo 'OPTIONS:'
echo " -a author/committer; '' is allowed (defaults to $USER)"
echo ' -s since such date (defaults to 7.days.ago)'
echo ' -u until such date (defaults to today)'
echo ' -m directories max depth recurse (defaults to 1)'
@jcarsique
jcarsique / ndrive.desktop
Last active December 16, 2015 10:39
Nuxeo Drive Linux desktop entry
[Desktop Entry]
Type=Application
Exec=ndrive
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[fr_FR]=Nuxeo Drive
Name=Nuxeo Drive
Comment[fr_FR]=
Comment=