Skip to content

Instantly share code, notes, and snippets.

View gr1ev0us's full-sized avatar

Dmitry gr1ev0us

  • Moscow
View GitHub Profile
@gr1ev0us
gr1ev0us / prepare-commit-msg
Created September 13, 2018 08:26
prepare-commit-msg hook adding branch name to commit message in editor
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
MERGE=$(grep -ic "merge" $1)
REBASE=$(grep -ic "rebase" $1)
<?php
$list=
'
8.3.2017
15.3.2017
21.3.2017
27.3.2017
'
;
@gr1ev0us
gr1ev0us / find.sh
Last active November 12, 2024 19:23
Cheatsheet for find linux
# List of cheatsheet for linux find.
# Taken from here http://alvinalexander.com/unix/edu/examples/find.shtml
# basic 'find file' commands
# --------------------------
find / -name foo.txt -type f -print # full command
find / -name foo.txt -type f # -print isn't necessary
find / -name foo.txt # don't have to specify "type==file"
find . -name foo.txt # search under the current dir
find . -name "foo.*" # wildcard