Skip to content

Instantly share code, notes, and snippets.

@moondev
moondev / docker-compose.yml
Created March 13, 2017 18:10
tomcat-compose
version: '2'
services:
tomcat:
image: tomcat:7.0.72-jre8
ports:
- 7070:8080
@moondev
moondev / jenkinsfunctions.groovy
Last active April 6, 2017 20:52
jenkinsfunctions.groovy
def buildImage(registry, imageName, tagName) {
sh "docker build -t ${registry}/${imageName}:${tagName} ."
}
return this
@moondev
moondev / docker-compose.yml
Created April 10, 2017 19:06
cassandra-compose
version: '2'
services:
cassandra-server:
image: cassandra:2
environment:
CASSANDRA_START_RPC: "true"
cassnadra-client:
# Copyright 2017 Mirantis
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@moondev
moondev / install.sh
Created February 20, 2012 23:03
install.sh
sudo apt-get install xvfb git build-essential gtk2-engines-pixbuf xfonts-100dpi x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
sudo apt-get install libqt4-dev libqtwebkit-dev qt4-qmake python-qt4
@moondev
moondev / browserstuff.sh
Created February 21, 2012 17:57
browserstuff
sudo apt-get install flashplugin-nonfree msttcorefonts
cd ~/
git clone git://github.com/ariya/phantomjs.git && cd phantomjs
qmake-qt4 && make
sudo cp bin/phantomjs /usr/local/bin/
@moondev
moondev / shotty2.js
Created February 21, 2012 17:46
shotty2.js
var page = new WebPage();
page.open('http://espn.go.com/nfl/', function (status) {
//once page loaded, include jQuery from cdn
page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function() {
//once jQuery loaded, run some code
//inserts our custom text into the page
page.evaluate(function(){$("h2").html('Many NFL Players Scared that Chad Moon Will Enter League');});
//take screenshot and exit
page.render('espn.png');
@moondev
moondev / keybase.md
Created October 10, 2017 19:10
keybase.md

Keybase proof

I hereby claim:

  • I am moondev on github.
  • I am chadmoon (https://keybase.io/chadmoon) on keybase.
  • I have a public key ASCSUngZgK6SS-RzCpB-r1n4RgykiCaOCzBitCVhIkO3Fwo

To claim this, I am signing this object:

@moondev
moondev / build.sh
Last active October 12, 2017 05:15
parodus build
FROM ubuntu:xenial
RUN apt-get update
RUN apt-get install -y git build-essential check libcunit1 libcunit1-dev uuid-dev valgrind cmake libssl-dev automake libtool
RUN git clone https://github.com/Comcast/parodus.git; cd parodus; git checkout master; mkdir build; cd build; cmake ..; make; make test