$ openssl enc -aes-256-cbc -e < *source-path* > *encrypted-file-path*
$ openssl enc -aes-256-cbc -d < *encrypted-source-path* > *decrypted-file-path*
#!/bin/bash | |
usage() { | |
echo "Usage $0 branchname" | |
exit 1 | |
} | |
if [ -z "$1" ]; then | |
usage | |
fi |
#!/bin/bash | |
all=`git remote` | |
echo "Pruning all remotes" | |
for r in $all; do | |
echo -n "$r... " | |
git remote prune $r && echo "done." | |
done |
#!/usr/bin/env ruby | |
original_file=ARGV[0] | |
ARGV.shift | |
$PROGRAM_NAME=original_file | |
require 'rubygems' | |
begin | |
require 'rubygems-bundler/noexec' |
#!/bin/bash | |
# | |
### BEGIN INIT INFO | |
# Provides: chef-server | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Control the Chef Server | |
# Description: Control the Chef Server |
#!/bin/bash | |
# | |
# Save somewhere and chmod o+x it and Run it from /etc/rc.local | |
# Modify and re-arrange as you see fit | |
# | |
# Change as appropriate | |
DOMAIN=local | |
USER_DATA=`/usr/bin/curl -s http://169.254.169.254/latest/meta-data/hostname` |
#!/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 |
sudo add-apt-repository ppa:webupd8team/java | |
sudo aptitude update | |
sudo aptitude install oracle-java8-installer oracle-java8-set-default |
#!/bin/bash | |
usage() { | |
echo "$0 usage:" | |
echo " $0 name new_name new_email" | |
exit 1 | |
} | |
if [ "$#" -ne 3 ]; then | |
usage |