Skip to content

Instantly share code, notes, and snippets.

Bernd ecki

Block or report user

Report or block ecki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rednaxelafx / TestSafepoint.h
Created Oct 26, 2011
An example of JNI call and GC/Safepoint interaction. Shows that native call doesn't block GC/Safepoint. JNI postpones a GC if it's in a critical section.
View TestSafepoint.h
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class TestSafepoint */
#ifndef _Included_TestSafepoint
#define _Included_TestSafepoint
#ifdef __cplusplus
extern "C" {
jeromyanglim / example-r-markdown.rmd
Created May 17, 2012
Example of using R Markdown
View example-r-markdown.rmd
This post examines the features of [R Markdown](
using [knitr]( in Rstudio 0.96.
This combination of tools provides an exciting improvement in usability for
[reproducible analysis](
Specifically, this post
(1) discusses getting started with R Markdown and `knitr` in Rstudio 0.96;
(2) provides a basic example of producing console output and plots using R Markdown;
(3) highlights several code chunk options such as caching and controlling how input and output is displayed;
(4) demonstrates use of standard Markdown notation as well as the extended features of formulas and tables; and
(5) discusses the implications of R Markdown.
witscher / tomcat.conf
Created Jun 13, 2012
Apache Tomcat Upstart script
View tomcat.conf
description "Tomcat Server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn limit 10 5
# run as non privileged user
# add user with this command:
## adduser --system --ingroup www-data --home /opt/apache-tomcat apache-tomcat
chrisvest /
Created Jun 14, 2012 — forked from rednaxelafx/JDK5u22_client.log
PrintCompilation on different versions of HotSpot VM

About PrintCompilation

This note tries to document the output of PrintCompilation flag in HotSpot VM. It was originally intended to be a reply to a blog post on PrintCompilation from Stephen Colebourne. It's kind of grown too big to fit as a reply, so I'm putting it here.

Written by: Kris Mok

Most of the contents in this note are based on my reading of HotSpot source code from OpenJDK and experimenting with the VM flags; otheres come from HotSpot mailing lists and other reading materials listed in the "References" section.

Creative Commons License
This <span xmlns:dct="" href="" rel="dct:type

WPsites / logstash.index.json
Last active Sep 17, 2017
Elasticsearch index template for logstash that contains additional NGINX fields
View logstash.index.json
"template" : "logstash*",
"settings" : {
"number_of_shards" : 5,
"index.cache.field.type" : "soft",
"index.refresh_interval" : "5s",
"" : true,
"index.query.default_field" : "message",
"index.routing.allocation.total_shards_per_node" : 5
davidhooey / oracle_segment_advisor_for_all_segments_in_schema.sql
Created Sep 24, 2013
Oracle Segment Advisor for All Segments in Schema
View oracle_segment_advisor_for_all_segments_in_schema.sql
-- Segment Advisor for All Segments in Schema
-- 1. Grant the ADVISOR and SELECT ANY DICTIONARY roles to the schema owner.
-- 2. Execute the script as the schema owner.
-- 3. Revoke the ADVISOR and SELECT ANY DICTIONARY roles from the schema owner.
set echo off
set feedback off
kofemann /
Created Sep 25, 2013
Expose Google's guava Cache vie JMX
public interface GuavaCacheMXBean {
public long getRequestCount();
public long getHitCount();
public double getHitRate();
public long getMissCount();
ryancdotorg / dnaas.c
Created Oct 30, 2013
Wrapper library to use /dev/null as a service on Linux via LD_PRELOAD
View dnaas.c
/* This is a wrapper library that will give your server the power of
* /dev/null as a service, as seen at
* Compile:
* gcc -ggdb -shared -fPIC dnaas.c -ldl -lcurl -o
* Try:
* LD_PRELOAD=./ dd if=/dev/sda of=/dev/null bs=8192 count=16
* Install:
defuse / attack.php
Last active Jan 22, 2019
PoC: Attack Against PHP Crypto
View attack.php
* This code is copied from
* to demonstrate an attack against it. Specifically, we simulate a timing leak
* in the MAC comparison which, in a Mac-then-Encrypt (MtA) design, we show
* breaks confidentiality.
* Slight modifications such as making it not serialize/unserialize and removing
mohamed-el-habib / gist:00deef599e8ba1cdbece
Last active Sep 6, 2016 — forked from abs/gist:c0d598996870dda719b3
Downloads and installs the startssl CA certs into the global Java keystore
View gist:00deef599e8ba1cdbece
# Downloads and installs the startssl CA certs into the global Java keystore
set -euf -o pipefail
# Check if JAVA_HOME is set
if [ "$JAVA_HOME" = "" ]
echo "ERROR: JAVA_HOME must be set."
exit 1
You can’t perform that action at this time.