start new:
tmux
start new with session name:
tmux new -s myname
package de.devsurf.html.tail; | |
import java.io.IOException; | |
import java.util.Date; | |
import java.util.Set; | |
import java.util.concurrent.CopyOnWriteArraySet; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.ScheduledExecutorService; | |
import java.util.concurrent.TimeUnit; |
package org.baeldung.web.hateoas; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.context.ApplicationListener; | |
import org.springframework.stereotype.Component; | |
import org.springframework.web.util.UriComponentsBuilder; | |
import com.google.common.base.Preconditions; |
if (!Date.prototype.toISOString) { | |
Date.prototype.toISOString = function () { | |
function pad(n) { return n < 10 ? '0' + n : n; } | |
function ms(n) { return n < 10 ? '00'+ n : n < 100 ? '0' + n : n } | |
return this.getFullYear() + '-' + | |
pad(this.getMonth() + 1) + '-' + | |
pad(this.getDate()) + 'T' + | |
pad(this.getHours()) + ':' + | |
pad(this.getMinutes()) + ':' + | |
pad(this.getSeconds()) + '.' + |
There are two ways of installing meld on osx (May 2023), using brew
and .dmg
package (from @yousseb). Since I found https://yousseb.github.io/meld/, I've installed it with .dmg
package, but having macOS Ventura Version 13.4 (22F66)
in place, it's not even starting for me. So I tried brew
installation, and the application is working as expected, including symlink to start it from the terminal.
brew install --cask meld
# set meld as your default git mergetool
#!/bin/bash | |
# Origianl version : http://www.keepthingssimple.net/2012/10/creating-requests-per-time-graph-from-nginx-or-apache-access-log/ | |
# This version is a port to Mac OSX | |
# dreampuf (http://huangx.in) | |
# useage : | |
# graphit.sh logfile.log | |
# open result-2013-06-04.png |
input { | |
## WebLogic Server Log | |
file { | |
type => "weblogic" | |
path => [ "/var/log/weblogic/domain/managedserver.log" ] | |
codec => multiline { | |
pattern => "^####" | |
negate => true | |
what => previous | |
} |
filter { | |
## WebLogic Server Http Access Log | |
if [type] == "weblogic-access" { | |
grok { | |
match => [ "message", "%{IP:client} - - \[(?<timestamp>%{MONTHDAY}[./-]%{MONTH}[./-]%{YEAR}:%{TIME}\s+%{ISO8601_TIMEZONE})] \"%{WORD:verb} %{URIPATHPARAM:uri}\s+HTTP.+?\" %{NUMBER:status} %{NUMBER:response_time}" ] | |
} | |
date { | |
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ] | |
} | |
} |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
Due to the OSX limitations in ports below 1024, in order to use them without running as root the virtualbox headless you can do the following workaround, (remember the command ipfw is deprecated on El Capitan)
In the Vagrant file use ports over 1024, for instance change 80 and 443 to 8080 and 8043.
# Apache
config.vm.network "forwarded_port", guest: 80, host: 8080