Skip to content

Instantly share code, notes, and snippets.

View HokieGeek's full-sized avatar
🎄

Andrés Pérez HokieGeek

🎄
View GitHub Profile
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 / 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:]')"
*.csv
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*
@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
ID: 1
NAME: Uno
ID: 2
NAME: Dos
ID: 3
NAME: Tres
ID: 4
NAME: Cuatro
ID: 5
NAME: Cinco
@HokieGeek
HokieGeek / aic-docker-hierarchy.png
Last active July 11, 2016 04:06
AIC Docker presentation
aic-docker-hierarchy.png
@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"]
#include <cmath>
#include <cstdio>
#include <vector>
#include <map>
#include <iostream>
#include <algorithm>
using namespace std;
void printSentence(string s, int rows, int cols) {
/*
@HokieGeek
HokieGeek / .aliases.csh
Created June 13, 2016 13:15
Script that lets me source my primary aliases in csh
set num_processors=`grep -c processor /proc/cpuinfo | xargs expr 1 +`
set f=`mktemp`
awk '/NOCSH *$/ { next } /^ *alias/ { sub(/=/, " ", $2); print }' $HOME/.aliases > $f
source $f
unset num_processors