Skip to content

Instantly share code, notes, and snippets.

View rene00's full-sized avatar

rene rene00

  • Melbourne, Australia
View GitHub Profile
serviceLimits:
defaults:
rateLimit: 1
cloudProviderOverrides:
aws:
rateLimit: 1
implementationLimits:
AmazonEC2:
defaults:
rateLimit: 1
#!/bin/bash
set -eux
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export DEBIAN_FRONTEND=noninteractive
# Update system
apt update -y
apt upgrade --assume-yes
# hal version bom
+ Get current deployment
Success
+ Get Spinnaker version
Success
+ Get current deployment
Success
+ Get Spinnaker version
Success
+ Get BOM for 1.8.4
@rene00
rene00 / Dockerfile
Created September 26, 2017 04:16 — forked from cwill747/Dockerfile
Python2.6 on Alpine Docker
FROM gliderlabs/alpine:3.4
# ensure local python is preferred over distribution python
ENV PATH /usr/local/bin:$PATH
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# install ca-certificates so that HTTPS works consistently
#!/bin/bash
WANT=$1
dotime () {
WANT=$1
if test -x /usr/local/bin/gdate; then
DATE='/usr/local/bin/gdate'
else
$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.4 (Final)
Release: 6.4
Codename: Final
$ iptables --version
iptables v1.4.7
$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.7 (Final)
Release: 6.7
Codename: Final
$ iptables --version
iptables v1.4.7
@rene00
rene00 / gist:071cf8f74e67ac36ed94
Created February 22, 2015 21:39
upstart init file
# cat /etc/init/gateone.conf
# Gate One - Web-based terminal and application platform
# NOTE: Gate One settings can be found in /etc/gateone/conf.d
# Documentation: http://liftoff.github.io/GateOne/
description "Gate One"
author "Dan McDougall"
start on startup
@@ -550,7 +550,7 @@
--enable-perlinterp \
--disable-tclinterp --with-x=yes \
--enable-xim --enable-multibyte \
- --with-tlib=ncurses \
+ --with-tlib=tinfo \
--enable-gtk2-check --enable-gui=gtk2 \
--with-compiledby="<bugzilla@redhat.com>" --enable-cscope \
--with-modified-by="<bugzilla@redhat.com>" \
@@ -581,7 +581,7 @@
@rene00
rene00 / ssh
Created January 13, 2013 02:02
#!/bin/bash
ssh() {
TMPDIR=~/tmp
case "$(uname -s)" in
Linux)
tmp_fifo=$(mktemp -u --suffix=._ssh_fifo)
;;
Darwin)
tmp_fifo=$(mktemp -u -t ._ssh_fifo)