Skip to content

Instantly share code, notes, and snippets.

View juaniyyoo's full-sized avatar

John Guignard juaniyyoo

View GitHub Profile
@juaniyyoo
juaniyyoo / Vim-CheatSheet
Last active August 29, 2015 14:10
Vim CheatSheet
# 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
@juaniyyoo
juaniyyoo / Git-CheatSheet
Created November 20, 2014 15:04
Git CheatSheet
# 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
@juaniyyoo
juaniyyoo / project-init.sh
Last active February 5, 2016 20:53
Node.js project initialization
# 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"
@juaniyyoo
juaniyyoo / benchmark.sh
Last active October 26, 2016 12:20
A simple benchmark runner with a date parser
#!/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