This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
_usage() { | |
cat <<__EOF | |
$0 usage: | |
$0 [options] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
_die() { | |
echo "$*" >&2 | |
exit 1 | |
} | |
bold=$(tput bold) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for the love of bacon! | |
# by Ian Mariano @ianmariano https://twitter.com/ianmariano https://github.com/ianmariano | |
# | |
# Free and provided AS-IS with no warranty. No license required. | |
# | |
import os | |
import mimetypes | |
import re | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION="20170125" | |
OUTPUT_FILE="./RELEASE_NOTES.md" | |
usage() { | |
cat << __EOF | |
git tagrelease usage: | |
git tagrelease [options] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - | |
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' | |
sudo apt-get update | |
sudo apt-get install jenkins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate an SHA-256 password hash base64 encoded | |
echo -n "password" | openssl dgst -sha256 -binary | openssl base64 | |
# better yet, use pepper (suffix the password with the pepper) | |
echo -n "passwordpepper" | openssl dgst -sha256 -binary | openssl base64 | |
# better yet, use salt (prefix the password with the salt) | |
echo -n "saltpassword" | openssl dgst -sha256 -binary | openssl base64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CASSANDRA_HOME=/opt/apache/cassandra | |
OPSCENTER_HOME=/opt/apache/opscenter | |
CASS_LOG_DIR=$CASSANDRA_HOME/logs | |
CASS_LOGFILE=$CASS_LOG_DIR/system.log | |
CASS_PIDFILE=$CASSANDRA_HOME/cassandra.pid | |
OPSCENTER_LOGFILE=$CASS_LOG_DIR/opscenter.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:webupd8team/java | |
sudo aptitude update | |
sudo aptitude install oracle-java8-installer oracle-java8-set-default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Make sure libxml2-devel, libxslt-devel and libiconv-devel are installed: | |
$ gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib --with-xslt-dir=/usr/include/libxslt --with-iconv-include=/usr/include --with-iconv-lib=/usr/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() { | |
echo "$0 usage:" | |
echo " $0 name new_name new_email" | |
exit 1 | |
} | |
if [ "$#" -ne 3 ]; then | |
usage |
NewerOlder