I hereby claim:
- I am nhr on github.
- I am nhr (https://keybase.io/nhr) on keybase.
- I have a public key ASCGcOkRqk0u8phOEfMIWB0AQzSbI0QGQ07Nh2jKG03H2Qo
To claim this, I am signing this object:
function get_eth0_ipaddr() { | |
eth0_ip=$(ip addr list eth0 | grep 'inet ' | tr -s ' ' | cut -d ' ' -f 3 | cut -d '/' -f 1) | |
echo "${eth0_ip}" | |
} | |
function get_public_ipaddr() { | |
public_ip=$(curl -s ipecho.net/plain) | |
echo "${public_ip}" | |
} |
#!/bin/bash | |
RESTORE=false | |
RESTORE_DIR='' | |
while getopts ":r:" OPT; do | |
case $OPT in | |
r) | |
RESTORE_DIR="$OPTARG" | |
RESTORE=true |
# Helper function for our fancy prompt. | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
# Fancy prompt function | |
function proml { | |
local BLUE="\[\033[0;34m\]" | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" |
sudo dnf install rpmdevtools fedora-packager nodejs npm libgit2-devel libgnome-keyring-devel | |
sudo npm install -g npm@2 | |
sudo npm install -g inherits@2 | |
git clone https://github.com/nylas/N1 | |
script/build (takes a very long time) | |
script/grunt mkrpm | |
find rpm in /tmp/nylas-build/rpm/ |
[#<MCollective::RPC::Result:0x00000007746970 @agent="openshift", @action="cartridge_do", @results={:sender=>"ip-10-165-39-157", :statuscode=>1, :statusmsg=>"cartridge_do_action failed 157. Output Failed to execute: 'control start' for /var/lib/openshift/454448264886696208760832/immutant\nCLIENT_MESSAGE: Starting immutant cart\nCLIENT_MESSAGE: Timed out waiting for http listening port\n", :data=>{:time=>nil, :output=>"Failed to execute: 'control start' for /var/lib/openshift/454448264886696208760832/immutant\nCLIENT_MESSAGE: Starting immutant cart\nCLIENT_MESSAGE: Timed out waiting for http listening port\n", :exitcode=>157}}>] |
#!/usr/bin/env ruby | |
require 'fastimage' | |
FWIDTH = 1024 | |
FHEIGHT = 600 | |
workdir = Dir.pwd | |
Dir.foreach(workdir) { |item| |
apiVersion: v1 | |
kind: Template | |
metadata: | |
creationTimestamp: null | |
name: swn | |
objects: | |
- apiVersion: v1 | |
kind: BuildConfig | |
metadata: | |
creationTimestamp: null |
apiVersion: v1 | |
kind: Template | |
metadata: | |
creationTimestamp: null | |
name: swn | |
objects: | |
- apiVersion: v1 | |
kind: BuildConfig | |
metadata: | |
creationTimestamp: null |
I hereby claim:
To claim this, I am signing this object:
# This is an example of a bring your own (byo) host inventory | |
# Create an OSEv3 group that contains the masters and nodes groups | |
[OSEv3:children] | |
masters | |
nodes | |
#etcd | |
#lb | |
# Set variables common for all OSEv3 hosts |