Skip to content

Instantly share code, notes, and snippets.

Rick O. osowski

Block or report user

Report or block osowski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@osowski
osowski / incept-minikube.sh
Last active Aug 30, 2019
Install Minikube, Kubectl, and Virtualbox on Ubuntu
View incept-minikube.sh
#Installing VirtualBox
echo "Installing VirtualBox........................"
sudo apt-get install virtualbox
#Installing kubectl https://kubernetes.io/docs/getting-started-guides/kubectl/
echo "Installing kubectl..........................."
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.4/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/kubectl
@osowski
osowski / push-it-flow.js
Created Oct 23, 2015
Node-RED flow to use GitHub web hooks to play audio when code is pushed
View push-it-flow.js
[{"id":"d014cd72.2feb3","type":"websocket-listener","path":"/ws/audio","wholemsg":"false"},{"id":"ed3b7433.12c488","type":"watson-text-to-speech","name":"","lang":"english","voice":"en-US_MichaelVoice","x":460,"y":263.9999933242798,"z":"2df11d26.d20ee2","wires":[["1c671986.e398e6"]]},{"id":"4a98cccf.b56734","type":"inject","name":"","topic":"","payload":"Hello my name is James","payloadType":"string","repeat":"","crontab":"","once":false,"x":149.09091186523438,"y":140.72726440429688,"z":"2df11d26.d20ee2","wires":[["9cc01711.633fe8"]]},{"id":"de94b273.216b5","type":"websocket out","name":"","server":"d014cd72.2feb3","client":"","x":811.0908813476562,"y":325.72725772857666,"z":"2df11d26.d20ee2","wires":[]},{"id":"301d54b3.cfe2ac","type":"http in","name":"","url":"/audio","method":"get","swaggerDoc":"","x":190.81817626953125,"y":383.36363220214844,"z":"2df11d26.d20ee2","wires":[["67b82a64.9847d4"]]},{"id":"d7b2d215.284d3","type":"http response","name":"","x":613.3636646270752,"y":391.63634872436523,"z":"2df11d26
@osowski
osowski / lets-chat-build.sh
Last active Sep 23, 2015
IBM Bluemix DevOps Services build scripts for Let's Chat Docker images. Based off the default scripts provided by the service, these have had most comments removed for clarity.
View lets-chat-build.sh
#!/bin/bash
log_and_echo "$LABEL" "Starting build script"
cd ${WORKSPACE}/lets-chat
if [ -f Dockerfile ]; then
log_and_echo "$LABEL" "Building ${FULL_REPOSITORY_NAME}"
${EXT_DIR}/utilities/sendMessage.sh -l info -m "New container build requested for ${FULL_REPOSITORY_NAME}"
# build image
BUILD_COMMAND=""
@osowski
osowski / gist:cff7fbfc60fe65ed0bd8
Created Sep 10, 2015
Node-RED flow to query Fitbit for your current daily steps, using Nodes from https://github.com/node-red/node-red-web-nodes/tree/master/fitbit
View gist:cff7fbfc60fe65ed0bd8
[{"id":"606bf65c.701848","type":"inject","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":135,"y":196,"z":"2adfbdc6.dede72","wires":[["b2e08b61.b5e3c"]]},{"id":"b2e08b61.b5e3c","type":"fitbit","fitbit":"","name":"Query Activities","dataType":"activities","x":384,"y":189,"z":"2adfbdc6.dede72","wires":[["25995aa.974bf26","e848c7de.acfee8"]]},{"id":"5c30a6c1.8de82","type":"debug","name":"","active":true,"console":"false","complete":"false","x":667,"y":167,"z":"2adfbdc6.dede72","wires":[]},{"id":"25995aa.974bf26","type":"function","name":"Filter Summary","func":"msg.payload = msg.payload.summary.steps;\nreturn msg;","outputs":1,"noerr":0,"x":534,"y":246,"z":"2adfbdc6.dede72","wires":[["5c30a6c1.8de82"]]},{"id":"592febbd.0f489c","type":"http in","name":"GET Current Steps","url":"/steps","method":"get","swaggerDoc":"","x":147,"y":270,"z":"2adfbdc6.dede72","wires":[["b2e08b61.b5e3c"]]},{"id":"a3898ac2.ca1558","type":"http response","name":"GET Current Steps Response","
@osowski
osowski / Dockerfile
Created Jul 2, 2015
WebSphere Liberty Dockerfile & custom scripts (executing prior to server start) updating server configuration files with IBM Bluemix service credential information dynamically
View Dockerfile
FROM registry-ice.ng.bluemix.net/ibmliberty:latest
RUN apt-get update && apt-get install -y \
git \
python-lxml
# Add a SSH key, this will allow to perform SSH into containers
COPY id_rsa.pub /root/.ssh/
RUN chmod 600 /root/.ssh/id_rsa.pub \
You can’t perform that action at this time.