This file contains hidden or 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/python | |
from kubernetes import client, config | |
# Configs can be set in Configuration class directly or using helper utility | |
config.load_kube_config(context="foobar") | |
#v1 = client.CoreV1Api() | |
v1 = client.AppsV1beta1Api() | |
print("Listing deployments with their IPs:") |
This file contains hidden or 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
# Default values for clair. | |
# This is a YAML-formatted file. | |
# Declare variables to be passed into your templates. | |
replicaCount: 1 | |
logLevel: info | |
insecureTls: false | |
image: | |
repository: quay.io/coreos/clair-git | |
tag: latest | |
pullPolicy: Always |
This file contains hidden or 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/python | |
import sys | |
logLines = sys.stdin.readlines() | |
for line in logLines: | |
#print("line is: " + line) | |
tokens = line.split(" ") | |
#print("elb status code: " + tokens[8]) | |
if(tokens[8].startswith("5")): |
This file contains hidden or 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
" vim: set ts=4 sw=4 expandtab tw=120 : | |
set fileformats=unix | |
" Use Pathogen, if available, to manage bundles | |
if filereadable(expand("~/.vim/autoload/pathogen.vim")) | |
call pathogen#infect() | |
endif | |
" Basic options -------------------------------------------------------------- |
This file contains hidden or 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 | |
WEBSERVERS=( 12.3.4.5 | |
54.111.111.111 \ | |
54.222.222.222 ) | |
SSHKEYFILE=.ssh/server.key | |
for SERVER in ${WEBSERVERS[@]}; do | |
echo "Server is $SERVER" |
This file contains hidden or 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
<powershell> | |
Start-Transcript; | |
# Install IIS | |
Import-Module ServerManager; | |
Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName 'IIS-WebServerRole', 'IIS-WebServer', 'IIS-ManagementConsole'; | |
# Install CodeDeploy Agent | |
Import-Module AWSPowerShell; | |
New-Item -Path "C:\Temp" -ItemType "directory" -Force; |
This file contains hidden or 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
export BASH_CONF="bashrc" | |
# Some useful colours | |
hash _c_define > /dev/null 2>&1 | |
if [[ $? -eq 0 ]]; then | |
. _c_define |
This file contains hidden or 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
# Most of these from: http://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html | |
alias ll='ls -alh' | |
# Directory Navigation | |
alias cd..='cd ..' | |
alias ..='cd ..' | |
alias ...='cd ../../' | |
alias ....='cd ../../../' | |
alias .....='cd ../../../../' | |
alias .4='cd ../../../../' |
This file contains hidden or 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
[color] | |
ui = auto | |
[svn] | |
authorsfile = ~/.svnauthors | |
[alias] | |
st = status -uno | |
ci = commit | |
br = branch |
This file contains hidden or 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
Subject | |
Description | |
Issue(s): None |