Make Collectd Graph Panel show Apache records on FreeBSD 10.1

...

June 1, 2015 · 1 min

Flush Saved Git Credentials on OS X

...

May 11, 2015 · 1 min

Validating Packet Filter rules

...

April 20, 2015 · 1 min

Clean up and Reorder Factors/Categories in R

Another reminder of my classics. Sometimes, when you reduce data in a data frame some levels of categories are no longer contained in the observations after filtering but the factors still contain them in their levels. To clean these up use the following command: cleanfactor <- as.factor(as.character(oldfactor)) That’s it again. Cheers, iss

April 19, 2015 · 1 min

Reduce FreeBSD boot time

...

April 19, 2015 · 1 min

Create Color Maps in R

This is a classic in R and I tend to forget it every once in a while. So I write it down as a note for my future me. This line creates a gray scale with len steps: grey(1:len/len) This line creates a color scale going through hue, saturation, and value (luminance): hsv(1:len/len) This line creates a color scale using the hue, chroma, luminance space: hcl(1:360/len) That’s it again. Cheers, iss

April 18, 2015 · 1 min

Change line endings in an R plot

This one is extremely useful if you want to create a quick histogram or stem plot in R. # makes line ends round (0) / butt (1) / square (2) par(las=2) That’s it iss

March 11, 2015 · 1 min

Create set plots or an alternative histogram or barplot with R

...

March 11, 2015 · 1 min

Get rid of row names in R

Yesterday I had to remind myself on how to remove the row names in a data.frame. Row names are usually added by filtering steps such as subset, etc. Assume we want to remove the row names of the data.frame called data, we can type: rownames(data) <- c() That’s it iss

March 11, 2015 · 1 min

Mounting a ZFS ZPool (RaidZ) from a FreeBSD Rescue System

...

March 8, 2015 · 1 min