- Configure Gmail in you gitconfig:
[sendemail]
smtpserver = smtp.gmail.com
smtpserverport = 587
smtpencryption = tls
smtpuser = <gmail email address>
from = <email address for From: field>
demo: | |
provider: openstack | |
auth_service: | |
name: identity | |
host_uri: http://192.168.42.11:5000 | |
request: create_token | |
validator: list_tenants | |
api_version: v3 |
# | |
# Installation: | |
# mkdir -p ~/.byobu | |
# wget -O ~/.byobu/keybindings.tmux byobu.relaxdiego.com | |
# tmux source-file ~/.byobu/keybindings.tmux | |
# | |
# Rebind Ctrl-a as the prefix | |
unbind-key -n C-a | |
set -g prefix ^A |
[sendemail]
smtpserver = smtp.gmail.com
smtpserverport = 587
smtpencryption = tls
smtpuser = <gmail email address>
from = <email address for From: field>
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
#!/usr/bin/env bash | |
# | |
# Author: Stefan Buck | |
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
# | |
# | |
# This script accepts the following parameters: | |
# | |
# * owner | |
# * repo |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xvzf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure --prefix=/usr/local | |
make | |
sudo make install |
#!/usr/bin/env bash | |
# | |
# Usage: ./yaml-to-json.sh | jq . | |
# | |
file=$1 | |
if ! pip show pyyaml >/dev/null; then | |
echo "PyYAML needs to be installed" |
#!/usr/bin/env bash | |
ip_address=$( | |
aws ec2 describe-instances --instance-id $instance_id | \ | |
jq -r ".Reservations[] | .Instances[] | select(.InstanceId==\"$instance_id\") | .PublicIpAddress" | |
) | |
if ! grep $ip_address ~/.ssh/known_hosts >/dev/null; then | |
# Print the SSH fingerprints for jumpbox | |
echo "Valid server key fingerprints:" | |
aws ec2 get-console-output --instance-id $instance_id | \ |
cd /tmp | |
curl -O -L http://sourceforge.net/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz && tar xvzf sshpass-1.06.tar.gz | |
cd sshpass-1.06 | |
./configure | |
sudo make install |