Skip to content

Instantly share code, notes, and snippets.

View abrindeyev's full-sized avatar

Andrey Brindeyev abrindeyev

View GitHub Profile
#!/usr/bin/env bash
function stop_here() {
echo "Exiting..."
[ -z "$PS1" ] && exit 1 || return 1
}
function f3() {
echo "in f3()"
stop_here
#!/usr/bin/env bash
echo $BASH_VERSION
function property_get() {
local pfile="$1"
local pname="$2"
local out=$( egrep "^${pname}=" "$pfile" )
r=$?
echo "r=$r"
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'