Skip to content

Instantly share code, notes, and snippets.

View chrisdchristo's full-sized avatar

Chris Damian chrisdchristo

View GitHub Profile
@chrisdchristo
chrisdchristo / keybase.md
Created June 28, 2016 07:15
Keybase Proof

Keybase proof

I hereby claim:

  • I am chrisdchristo on github.
  • I am chrisdchristo (https://keybase.io/chrisdchristo) on keybase.
  • I have a public key ASADpB6LwhOyusSvxim8CMbmramJAJAvueEHgSp_XP5StAo

To claim this, I am signing this object:

@chrisdchristo
chrisdchristo / ubuntu-java8-dockerfile
Last active August 29, 2015 14:04
Ubuntu + java8 Dockerfile
# chrischristo/ubuntu-java8
FROM ubuntu
# Install prerequisites
RUN apt-get update
RUN apt-get install -y software-properties-common
# Install java8
RUN add-apt-repository -y ppa:webupd8team/java
@chrisdchristo
chrisdchristo / ubuntu-java8-vertx2-dockerfile
Last active August 29, 2015 14:04
Ubuntu + java8 + vertx2 Dockerfile
# chrischristo/ubuntu-java8-vertx2
FROM chrischristo/ubuntu-java8
ENV VERTX_VERSION 2.1.1
RUN wget http://dl.bintray.com/vertx/downloads/vert.x-$VERTX_VERSION.tar.gz
RUN tar -zvxf vert.x-$VERTX_VERSION.tar.gz
RUN mv vert.x-$VERTX_VERSION /var/lib/vertx
RUN ln -s /var/lib/vertx/bin/vertx /usr/bin/vertx
RUN rm -rf vert.x*
@chrisdchristo
chrisdchristo / 101_etc_profile.md
Created January 6, 2014 16:23
Standard /etc/profile for Ubuntu
PS1='\[\e[0;36m\][\t] \[\e[31m\]\u@\H\[\e[32m\]$PWD \[\e[32m\]\n$\[\e[0m\] '

alias l="ls -la"

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JRE_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JAVA_OPTS="-Xmx1024M -Duser.timezone=UTC -Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8"

export MAVEN_HOME=/usr/share/maven
@chrisdchristo
chrisdchristo / 101_admin_user.md
Created January 6, 2014 16:18
101: Add an admin user to ubuntu
useradd -m -s /bin/bash chris
sudo usermod -a -G sudo chris
passwd chris
@chrisdchristo
chrisdchristo / 101_openejb.md
Last active January 1, 2016 14:49
101: OpenEJB

101: OpenEJB

(This is a constantly updated article, be sure to check back for updates!)

Configuring OpenEJB (or TomEE) can be a bit of a pain as its not always obvious where to place the specific settings you want. I will describe in as much detail in how you can configure it in the various forms, whether XML, properties or the newly introduced JSON config!

The intention is to have this article as your one stop shop in finding all the possible ways to configure your OpenEJB instance. With this info, you can truly master your server backend.

Introduction

@chrisdchristo
chrisdchristo / 101_webmin.md
Last active February 15, 2017 17:32
101: Webmin

101: Webmin

https://mydomain.com:10000

You will need some dependancy packages:

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl
sudo apt-get install libpam-runtime libio-pty-perl apt-show-versions python
@chrisdchristo
chrisdchristo / 101_tomcat.md
Created December 28, 2013 14:33
101: Tomcat

101: Tomcat

sudo apt-get install tomcat7

Setup Environment

Open up global profile:

@chrisdchristo
chrisdchristo / 101_phpbb3.md
Created December 28, 2013 14:24
101: PhpBB3
@chrisdchristo
chrisdchristo / 101_phpldapadmin.md
Created December 28, 2013 14:16
101: PhpLdapAdmin

101: PhpLdapAdmin

https://mydomain.com:446/pla

sudo apt-get install phpldapadmin

By default, an apache phpldapadmin.conf file is placed in /etc/apache2/conf.d/phpldapadmin.conf which links a conf file in the phpldapadmin installation. Its is better to manage the various websites via ssl encrypted virtual hosts.