This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8.4. Timing events | |
------------------ | |
Timers provide a great help in troubleshooting network problems. All values are | |
reported in milliseconds (ms). These timers should be used in conjunction with | |
the session termination flags. In TCP mode with "option tcplog" set on the | |
frontend, 3 control points are reported under the form "Tw/Tc/Tt", and in HTTP | |
mode, 5 control points are reported under the form "Tq/Tw/Tc/Tr/Tt" : | |
- Tq: total time to get the client request (HTTP mode only). It's the time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env boot | |
;; or `BOOT_FILE=ec2query.boot boot repl' for interactive use | |
(set-env! :dependencies '[[amazonica "0.3.23"] | |
[com.datomic/datomic-free "0.9.5344"]]) | |
(require '[amazonica.aws.ec2 :as ec2] | |
'[amazonica.core :refer [defcredential]] | |
'[boot.cli :refer [defclifn]] | |
'[boot.util :refer [info]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultiTenantDataSource implements ManagedDataSource { | |
private final ManagedDataSource managedDataSource; | |
private final SchemaResolver schemaResolver; | |
public MultiTenantDataSource( final ManagedDataSource managedDataSource, final SchemaResolver schemaResolver ) | |
{ | |
this.managedDataSource = managedDataSource; | |
this.schemaResolver = schemaResolver; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CurrentUserLoggingFilter implements Filter { | |
public static final String MDC_CURRENT_ACCOUNT_ID_KEY = "CurrentAccountId"; | |
@Context | |
HttpContext context; | |
@Override | |
public void init(FilterConfig filterConfig) throws ServletException { /* unused */ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.yourcompany.test; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.SortedSet; | |
import javax.sql.DataSource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OSX Apps | |
- Total Spaces, for keeping X11 in different space and faster switching | |
- MenuAndDockless for hidding topbar menu | |
X11 - Macports | |
- sudo port install xorg-server | |
- sudo port install xinit | |
- sudo port install terminus-font dejavu-fonts bitstream-fonts | |
Suckless - suckless.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "service" | |
start on filesystem | |
stop on runlevel S | |
respawn | |
respawn limit 10 5 | |
oom never | |
kill timeout 86400 #If it's given a stop order, this is how long it will take to stop. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.developerb.dropbot; | |
import com.developerb.dropbot.instrumentation.MethodInvocationTimingInterceptor; | |
import com.google.inject.AbstractModule; | |
import com.yammer.metrics.annotation.Timed; | |
import static com.google.inject.matcher.Matchers.annotatedWith; | |
import static com.google.inject.matcher.Matchers.any; | |
/** |