Thomas Mullaly

DevOps, Security and IT Leadership

Java Review - Flow Control

Selection

##If statements with optional else clauses

if (boolean condition)
  statement;
else
statement;

Switch statements

switch (interger value) {
  case FIRST_NAME:
    statements;
  case SECOND_NAME:
    statements;
  default:
    statements;
}

Abstract Data Types (ADT) in Java

A data type is a set of values and operations that can be preformed on thoses values. In Java, the primitive data types (byte, short, int, long, float, double, boolean, char) have values and operations defined in Java itself. An Abstract Data Type (ADT) is a data type that has values and operations that are NOT defined in the Java language itself. In Java, ADT is implemented using a class or an interface.

Ossec NFS Statd Static Port

First edit /etc/default/nfs-common and add:

STATDOPTS="--port 4000 --outgoing-port 4001"

Next add the file /etc/modprobe.d/options.conf

options lockd nlm_udpport=4002 nlm_tcpport=4002

reboot and you should be good

Risk Analysis

Always start off with your threat analysis. You need to understand what the threats are, you have to identy what your critical assets are, you then figure out your vulnerabilities. Now take your risk and plot the severity.

identifying critical assets and threats to them identifying the vulnerabilities, both organizational and technological, that expose those threats, creating risk to the organization developing a practice-based protection strategy and risk mitigation plan to support the organization’s mission and priorities

Welcome to Jekyll!

You’ll find this post in your _posts directory - edit this post and re-build (or run with the -w switch) to see your changes! To add new posts, simply add a file in the _posts directory that follows the convention: YYYY-MM-DD-name-of-post.ext.

Jekyll also offers powerful support for code snippets:

def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.

Check out the Jekyll docs for more info on how to get the most out of Jekyll. File all bugs/feature requests at Jekyll’s GitHub repo.

How to Make an Ubuntu Gold Master

This guide show you how to make a gold master virtual machine image of Ubuntu 12.04 LTS. The purpose of this is because we’ll be creating a lot of new virtual machines and it’s far easier to clone a master image than to install each and every time. Let’s get started…

RStudio

sudo add-apt-repository 'deb http://cran.rstudio.com/bin/linux/ubuntu precise/'
apt-get update
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
apt-get update
apt-get install r-base