Skip to content

Instantly share code, notes, and snippets.

View fahmilatib's full-sized avatar

fahmi fahmilatib

View GitHub Profile
@fahmilatib
fahmilatib / pur
Created December 31, 2020 22:26
phpunit runner
#!/bin/bash
executed_files=()
if [[ "$1" == '--all' ]]; then
file_param=$2
output_all=true
else
file_param=$1
fi
@fahmilatib
fahmilatib / settings.json
Last active April 11, 2023 07:25
VS Code settings
{
"editor.fontFamily":"JetBrains Mono NL",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"editor.fontSize": 13,
"jestrunner.jestCommand": "npm run test --"
}
@fahmilatib
fahmilatib / laravel-post-receive
Last active January 22, 2021 18:42
Git post-receive hook
#!/bin/sh
git_dir=$(pwd)
production_dir=<path>
artisan() { php artisan $1; }
cd "$production_dir"
# Begin maintenance mode