Skip to content

Instantly share code, notes, and snippets.

{
"order_schedule": {
"id": 2805,
"start_time": "2020-10-16T18:00:00.000Z",
"end_time": "2020-10-17T06:00:00.000Z",
"status": "accepted",
"total_time": "11.5",
"total_price": "448.5",
"total_payout": "333.5",
"flex": false,
#!/usr/bin/env bash
#
# Automatically adds branch name and branch description to every commit message.
# Include this script into file in directory (PROJECT)/.git/hooks/prepare-commit-msg
#
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(develop)
fi
sudo nano ~/.inputrc
# Copy and past
set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete
# Save the file
# In the windows, create a file with name .bashrc in user home "C:/User/userName/ and include this script
alias less='less -r'
# --show-control-chars: help showing Korean or accented characters
alias ls='ls -F --color --show-control-chars'
alias ll='ls -l'
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
#!/bin/sh
#
# Automatically adds branch name to every commit message.
# Include this script into file in directory (PROJECT)/.git/hooks/prepare-commit-msg
# On MacOS you must to give executable permission to the file
# Use chmod +x <path-to-the-file>
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(develop)
fi
#!/bin/sh
#
# Automatically adds branch name and branch description to every commit message.
# Include this script into file in directory (PROJECT)/.git/hooks/prepare-commit-msg
# Adapted by https://gist.github.com/shytikov/3132078
#
NAME=$(git branch | grep '*' | sed 's/* //')
TEXT=$(cat "$1" | sed '/^#.*/d')
echo "[$NAME]"' - '$(cat "$1" | sed '/^#.*/d') > "$1"