Skip to content

Instantly share code, notes, and snippets.

@luan-cestari
luan-cestari / gist:6482016
Created September 8, 2013 05:09
Processing the file to extract data using REGEX
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) throws Exception{
import java.net.InetSocketAddress;
import java.net.StandardSocketOptions;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
/* @author Norman Maurer */
public class BugReproducerClient
{
import java.net.InetSocketAddress;
import java.net.StandardSocketOptions;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
/*@author Norman Maurer */
public class BugReproducer
{
import java.net.InetSocketAddress;
import java.net.StandardSocketOptions;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
/* @author Norman Maurer */
public class BugReproducerClient
{
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://camel.apache.org/schema/spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
">
<camel:camelContext id="testCamelContext" managementNamePattern="#symbolicName#">
@luan-cestari
luan-cestari / Test.java
Created April 16, 2014 16:23
Testing parameter getName (for bug/enhancement)
import java.util.Map;
import java.util.function.Function;
import java.lang.reflect.Parameter;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.TreeMap;
import java.util.Date;
public class Test {
@luan-cestari
luan-cestari / TestLampda.java
Created April 16, 2014 16:24
Testing parameter getName (for bug/enhancement)
import java.util.Map;
import java.util.function.Function;
import java.lang.reflect.Parameter;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.TreeMap;
import java.util.Date;
public class TestLampda {
@luan-cestari
luan-cestari / DML.json
Last active August 29, 2015 14:02
JSon Schema for validation / proof of concept
{
"copyright": [
"Copyright 2013 Red Hat, Inc. and/or its affiliates.",
"This file is part of lightblue.",
"This program is free software: you can redistribute it and/or modify",
"it under the terms of the GNU General Public License as published by",
"the Free Software Foundation, either version 3 of the License, or",
"(at your option) any later version.",
"This program is distributed in the hope that it will be useful,",
"but WITHOUT ANY WARRANTY; without even the implied warranty of",
chdir(/home/lcestari/repositories/go_test)
fchdir() to previous dir
chdir(/etc)
fchdir() to previous dir
sourcing "/etc/vimrc"
chdir(/usr/share/vim/vim74/syntax)
fchdir() to previous dir
line 50: sourcing "/usr/share/vim/vim74/syntax/syntax.vim"
Searching for "syntax/synload.vim" in "/home/lcestari/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,/home/lcestari/.vim/after"
Searching for "/home/lcestari/.vim/syntax/synload.vim"
@luan-cestari
luan-cestari / dtrace4linux; make clean ; make all &> output
Created September 20, 2014 12:24
Building dtrace4linux: output from make
BUILD_DIR=build-3.15.10-200.fc20.x86_64 tools/build.pl build-3.15.10-200.fc20.x86_64 `uname -m`
tools/check_dep.pl
tools/mkport.pl
Generating: build-3.15.10-200.fc20.x86_64/port.h
tools/libgcc.pl
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/32
tools/mksyscall.pl
Processing (32): /usr/include/asm/unistd_32.h
Creating: build-3.15.10-200.fc20.x86_64/driver/syscalls-x86.tbl - 350 entries
Processing (64): /usr/include/asm/unistd_64.h