Skip to content

Instantly share code, notes, and snippets.

Julien Carsique jcarsique

View GitHub Profile
export NPM_USER=<LdapUsername>
export NPM_PASS=<LdapPassword>
export NPM_EMAIL=<GitHubEmail>
sudo npm install -g npm-cli-adduser
npm config set email $NPM_EMAIL
for repo in $(curl -s -u "$NPM_USER:$NPM_PASS" -X GET "" -H "accept: application/json"|jq -r ' .[] | select(.format == "npm") | .name'); do
[[ $repo == "npm-internal" ]] && continue
echo $repo
npm-cli-adduser -r$repo/
View gitformat1
#!/bin/bash -e
pushd $(git rev-parse --show-toplevel)
FILES=`git diff-index --name-only HEAD`
TMP=`mktemp -d`
echo $TMP > /tmp/gitformat1
cp -a --parents $FILES $TMP/
nb=`find $TMP/ -type f|wc -l`
echo Copied $nb files to $TMP/
git stash save -q -u "safety stash $TMP"
git stash apply -q
View .vimrc
"use to allow VIm to view the text content of a .docx file directly.
autocmd BufReadPre *.docx set ro
autocmd BufReadPost *.docx %!
set number
" size of a hard tabstop
set tabstop=4
" size of an "indent"
set shiftwidth=4
" a combination of spaces and tabs are used to simulate tab stops at a width other than the (hard)tabstop
set softtabstop=4
jcarsique /
Last active Nov 18, 2015
Nuxeo Platform releases notification
TWITTER="New Set of Addons released on for Nuxeo Platform $VERSION:\nG+_POST_URL\n$HASHTAG"
GOOGLE="\n\nNew Set of Addons released on for the Nuxeo Platform $VERSION:\n"
while IFS=' ' read url name; do
[ -z "$url" ] && continue
GOOGLE="$GOOGLE\n¤ *$name* $version\n$url\n"
done <<< "

Execute on the repository(ies) to merge.


Run ./ /path/to/repo1:. /path/to/repo2:.

Merged repository is in merged-repo

Update .gitignore and remove those in sub-directories

jcarsique / installAfterRestart.log
Last active Apr 21, 2017
nxserver/data/installAfterRestart.log for Explorer update
View installAfterRestart.log
View .gitaliases
# Standalone aliases install:
# wget -O ~/.gitaliases
# git config include.path ~/.gitaliases
ls = "ls-tree --name-only"
ll = "ls-tree -l"
st = status -sb
ci = commit
co = checkout
View bookmarks-luna.xml
<?xml version="1.0" encoding="UTF-8"?>
<site url="" selected="true" name="andrei plugins"/>
<site url="" selected="true" name="Mylyn for Eclipse 3.7, 3.8 and 4.2"/>
<site url="" selected="true" name="Mylyn for Eclipse 3.6, 3.7 and 3.8"/>
<site url="" selected="true" name="Nuxeo IDE DEV update site"/>
<site url="" selected="true" name="Nuxeo IDE Update Site"/>
<site url="" selected="true" name="Update Site"/>
<site url="" selected="true" name="Update Site"/>
<site url="" selected="false" name=""/>
View .bash_aliases
alias cd..="cd .."
alias md="mkdir"
alias rd="rmdir"
alias mvni="mvn install -DskipTests=true -DskipITs=true"
alias mvnia="mvn install -DskipTests=true -DskipITs=true -Paddons,distrib,all-distributions"
alias mvnci="mvn clean install -DskipTests=true -DskipITs=true"
alias mvncia="mvn clean install -DskipTests=true -DskipITs=true -Paddons,distrib,all-distributions"
alias mvneclipse='mvn eclipse:clean eclipse:eclipse -Declipse.useProjectReferences=true -fae'
alias mvnecl='mvn eclipse:clean eclipse:eclipse -Declipse.useProjectReferences=true -Paddons,distrib,all-distributions -fae -nsu ; ~/workspace/nuxeo/fixeclipse'
alias mvn2ecl="mvn eclipse:clean eclipse:m2eclipse -Paddons,distrib,all-distributions -Declipse.useProjectReferences=true && ~/workspace/nuxeo/fixeclipse"
View marketplace.ini
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
You can’t perform that action at this time.