Skip to content

Instantly share code, notes, and snippets.

View HokieGeek's full-sized avatar
🎄

Andrés Pérez HokieGeek

🎄
View GitHub Profile
@HokieGeek
HokieGeek / Dockerfile
Created July 1, 2016 05:04
Dockerfile for running biologistd
FROM golang:1.6-onbuild
RUN go get github.com/hokiegeek/biologistd
CMD ["biologistd", "--port", "8081"]
@HokieGeek
HokieGeek / aic-docker-hierarchy.png
Last active July 11, 2016 04:06
AIC Docker presentation
aic-docker-hierarchy.png
ID: 1
NAME: Uno
ID: 2
NAME: Dos
ID: 3
NAME: Tres
ID: 4
NAME: Cuatro
ID: 5
NAME: Cinco
@HokieGeek
HokieGeek / test.sh
Last active August 12, 2016 02:40
Want to remember to do this...
#!/bin/bash
IFS='-'; for v in $1; do
[[ $v =~ ^([0-9]{2}\.?){3}$ ]] && { echo $v; break; }
done
FROM openjdk:jdk
## Install scala
RUN wget http://downloads.lightbend.com/scala/2.11.8/scala-2.11.8.tgz
RUN tar -xvzf scala-2.11.8.tgz
RUN cp scala-2.11.8/bin/* /usr/bin
RUN cp scala-2.11.8/lib/* /usr/lib
RUN rm -rf scala-2.11.8*
*.csv
@HokieGeek
HokieGeek / jenkins-build-branch.sh
Last active September 26, 2016 01:18
Jenkins scripts for work
#!/bin/bash
branch=$1
./jenkins-trigger-job.sh \
'ApiTest' \
"BRANCH:${branch}" \
"IMAGE_ID:$(echo $branch | tr '[:upper:]' '[:lower:]')"
FROM hokiegeek/hrs:latest
RUN apk add --no-cache curl
RUN echo "curl --output /root/.hours https://dl.dropboxusercontent.com/u/6524/.work.hours" >> /tmp/hrs-home
RUN echo "hrs" >> /tmp/hrs-home
ENTRYPOINT ["/bin/sh", "/tmp/hrs-home"]
@HokieGeek
HokieGeek / index.html
Created September 30, 2016 10:58
Trying out angular
<html ng-app="tester">
<head>
<title>Angular testing</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
<script>
angular.module('tester', [])
.directive()
// .controller('tctrl', function($scope) {
// $scope.name = "TESTING";
@HokieGeek
HokieGeek / Dockerfile-life
Last active October 6, 2016 10:15
Sets up a dev environment for a small project
FROM golang:latest
RUN mkdir -p /go/src/github.com/hokiegeek && cd /go/src/github.com/hokiegeek && mkdir -p life biologist biologistd
ADD life /go/src/github.com/hokiegeek/life
ADD biologist /go/src/github.com/hokiegeek/biologist
ADD biologistd /go/src/github.com/hokiegeek/biologistd
RUN go install github.com/hokiegeek/biologistd