Skip to content

Instantly share code, notes, and snippets.

@rk295
rk295 / gist:cd4244346a8c858c8318
Created October 10, 2014 12:25
bash variable foo
$ export foo=bar
$ export "baz"$foo=wibble
$ echo $bazbar
wibble
@ccarrasc
ccarrasc / install_graphite.sh
Last active December 18, 2015 16:49
Install Graphite on CentOS 6
#!/bin/bash
# The current process has unrestricted/unlimited (root) access when the Effective User ID (EUID) is 0:
if [[ $EUID -ne 0 ]]; then
echo -e "\e[1;31mThis script must be run as root or it will fail\e[0m" 1>&2
exit 1
fi
# Make sure we are on CentOS
OS=`cat /etc/redhat-release | awk {'print $1}'`
#!/bin/bash
# SPDX-License-Identifier: MIT
## Copyright (C) 2009 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# Lockable script boilerplate