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 | |
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] ; then | |
echo 'Usage : $0 [PRE-COMMAND] [COMMAND] [RESULT FILE]' | |
exit 1 | |
fi | |
if [ ! -f $3 ] ; then | |
echo "Creating result file : $3" | |
touch $3 |
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
# Initialization of a Node.js project with npm, .eslint, travis, grunt, | |
GITHUB_ACCOUNT=Picta-it | |
# Read github project name | |
echo -n "Enter your github project name : " | |
read PROJECT_NAME | |
# Display github link | |
echo "You must create your account repository first https://github.com/organizations/$GITHUB_ACCOUNT/repositories/new" |
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 | |
## Configuration | |
git config --global user.name "<Mon Nom>" : Configure the user name | |
git config --global user.email "<Mon Emaill>" : Configure the user email | |
git config --global core.editor vim : Configure VIM as the default editor | |
git config --global core.autocrlf input : Configure automatic conversion of CRLF to LF | |
git remote add <name> <repository> : Add a remote repository | |
git remote remove <name> : Remove a remote repository |
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
# VIM : | |
## Command mode : | |
gf : Go to file | |
>i{ : Indent within { | |
>a{ : Indent with { | |
dap : Delete Outter paragraph | |
dip : Delete inner paragraph | |
ye : Yank to the end of the current word | |
* : Look for the current word in the document |