Skip to content

Instantly share code, notes, and snippets.

View samnela's full-sized avatar

Samuel NELA samnela

View GitHub Profile
@samnela
samnela / config_test.yml
Created June 18, 2017 14:22
lil boost for functional test in symfony
# add in config_test.yml
security:
encoders:
AppBundle\Entity\User:
algorithm: md5 # or plaintext if you don't care ( win more seconds with plaintext )
encode_as_base64: false
iterations: 0
@samnela
samnela / .gitignore_global
Last active April 7, 2019 12:18
A global .gitignore
# MacOS
.DS_Store
.DS_Store?
._*
.Trashes
# IDE
/.idea
/nbproject
/.vscode
@samnela
samnela / prepare-commit-msg
Last active June 8, 2020 20:23
Add the jira ticket number from the branch name
#!/bin/bash
COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
branchName=`git rev-parse --abbrev-ref HEAD`
branchToSkip=(master develop)
message=$(cat "$COMMIT_MSG_FILE")
for branch in ${branchToSkip[*]}
do