Skip to content

Instantly share code, notes, and snippets.

View petergdoyle's full-sized avatar

Peter Doyle petergdoyle

View GitHub Profile
@petergdoyle
petergdoyle / equip_centos7_java7_64.sh
Last active August 29, 2015 14:22
install an oracle 7 jdk into a fedora or centos based 64 bit OS
#!/bin/sh
#
# Centos Fedora Equip
# Java 7 64-bit Equip
# Licence: MIT
# to run: wget --no-check-certificate https://gist.githubusercontent.com/petergdoyle/c60903823a21847ee5c6/raw/4ceaeb79075964ea0f668e2a0d5b4b89bd049804/equip_centos7_java7_64.sh && bash equip_centos7_java7_64.sh
if [ -d "/usr/java/jdk7/" ]; then
echo "There's already an installation of Java JDK in /usr/java/jdk7/"
@petergdoyle
petergdoyle / centos7-wandisco-svn.repo
Created June 5, 2015 00:33
create a svn repo entry into /etc/yum.repos.d/wandisco-svn.repo
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0
@petergdoyle
petergdoyle / equip_centos7_maven3_64.sh
Last active December 28, 2016 06:31
install maven 3 on a CentOS or Fedora distro
#
# Centos Fedora Equip
# Maven 3 Equip
# Licence: MIT
# to run: wget --no-check-certificate https://gist.githubusercontent.com/petergdoyle/42a988fbb07ad0e7ca99/raw/e316473c97aee9fd44fc25d8765d1fef6b7148cf/equip_centos7_maven3_64.sh && bash equip_centos7_maven3_64.sh
if [ -d "/usr/maven/default/" ]; then
echo "There's already an installation of Maven 3 in /usr/maven/default/"
rm -f equip_centos7_maven3_64.sh
@petergdoyle
petergdoyle / mongodb.repo
Last active August 29, 2015 14:22
define a mongodb repo entry into /etc/yum.repos.d/mongodb.repo
[mongodb-org-3.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1
@petergdoyle
petergdoyle / Vagrantfile.plex.vbx
Created August 13, 2015 19:39
A set of Vagrant box definitions
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "CentOS-7.1.1503-x86_64"
config.vm.network "forwarded_port", guest: 32400, host: 32400, host_ip: "0.0.0.0", id: "plex", auto_correct: true
config.vm.provision "shell", inline: <<-SHELL
# We borrow heavily from the kernel build setup, though we are simpler since
# we don't have Kconfig tweaking settings on us.
# The implicit make rules have it looking for RCS files, among other things.
# We instead explicitly write all the rules we care about.
# It's even quicker (saves ~200ms) to pass -r on the command line.
MAKEFLAGS=-r
# The source directory tree.
srcdir := ..
yum -y groupinstall "X Window System"
#install the lightweight xfce desktop
yum -y groupinstall xfce
yum -y install xfce4-terminal
#install additional themes. these can be selected with the desktop settings widget on xfce
wget -O crunchy-dark-grey.tar.gz https://dl.orangedox.com/xCs7czovfGqWuOhBgm/crunchy-dark-grey.tar.gz?dl=1
tar -xvf crunchy-dark-grey.tar.gz
mv crunchy-dark-grey /usr/share/themes
@petergdoyle
petergdoyle / hello_world.sh
Created January 2, 2016 13:55
script used for testing script execution from gist
#!/bin/sh
echo hello world!
<profile>
<id>copy-dependencies</id>
<!--
Usage: mvn clean install -Pcopy-dependencies -Dpackage-name=om.manning.nettyinaction.chapter2 -Dclass-name=Ech
oServer
java -jar target/${artifactId}.jar
-->
<build>
<plugins>
import java.util.Iterator;
import static com.gslab.pepper.input.FieldDataFunctions.*;
import static com.gslab.pepper.input.CustomFunctions.*;
public class MessageIterator1498484495874 implements Iterator<String> {
private static StringBuilder builder = new StringBuilder();
@Override