Use: message "Informing you about something"
message () {
printf "\n";
printf "\e[30;48;5;82m ${1} \e[0m "
printf "\n";
}
<script src="https://gist.github.com/sanusart/5944686.js"></script> |
<?php | |
// functions.php | |
function temp_mode() { | |
if ( ! current_user_can( 'edit_themes' ) || ! is_user_logged_in() ) { | |
echo '<!DOCTYPE html> | |
<html> | |
<head> | |
<title>coming soon</title> |
angular.module('App.filters', []) | |
.filter('joinBy', function () { | |
return function (input,delimiter) { | |
return (input || []).join(delimiter || ','); | |
}; | |
}); |
RewriteEngine on | |
RewriteRule .*\.git/.* - [F] |
checking for C compiler default output file name... a.out | |
checking whether the C compiler works... yes | |
checking whether we are cross compiling... no | |
checking for suffix of executables... | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether /usr/bin/clang accepts -g... yes | |
checking for /usr/bin/clang option to accept ISO C89... none needed | |
checking whether we are using the GNU C++ compiler... yes | |
checking whether /usr/bin/clang++ accepts -g... yes |
// Routing | |
angular.module('myAppName', []) | |
.config(function($routeProvider) { | |
$routeProvider | |
.when('/', { | |
templateUrl: 'views/home.html', | |
controller: 'homeCtrl' | |
}) | |
.when('/inner', { | |
templateUrl: 'views/inner.html', |
<Files ~ "\.(js|sql)$"> | |
order deny,allow | |
deny from all | |
</Files> |
#!/usr/bin/env bash | |
# --- Usage: `./shell_json_parse.sh /path/to/package.json version` | |
get_value_by_key() { | |
JSON_FILE=${1} | |
KEY=${2} | |
REGEX="(?<=\"${KEY}\":.\")[^\"]*" | |
JSON_VALUE=$(cat ${JSON_FILE} | grep -Po ${REGEX}) |
git filter-branch --force --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch DIR-OR-FILE' --tag-name-filter cat -- --all |