Skip to content

Instantly share code, notes, and snippets.

public class MethodOverriding {
interface A {
default void foo() {
System.out.println("Foo: A");
}
}
interface B extends A {
@Override
default void foo() {
#!/usr/bin/env ruby
REGEX = %r{TRP.*(\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}).*(\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}).*(\d{2}:\d{2}:\d{2}).*(\d{4}\.\d{2}\.\d{2}\.\d{2}\.\d{2}\.\d{2})}
abort "You must enter file paths via CLI" unless ARGV.length > 0
ARGV.each do |file_path|
File.open(file_path, "rb") do |f|
results = f.read.scan(REGEX)
if results.length != 1
# This is a GNU Make file which describes how to build the application's
# DLL/SO for both x86 Windows and Linux systems.
#
#
# To do a full compile, invoke 'make all'
# To build just the test executable, invoke 'make bins'
#
CC:=$(shell which cc)
CFLAGS=-Wall -pedantic -O3 -std=c99
@Aenigma
Aenigma / Makefile
Created April 15, 2014 07:05
Simple buffer overflow example program
CC:=$(shell which cc)
CC_WIN_32:=$(shell which i686-w64-mingw32-gcc)
CC_WIN_64:=$(shell which x86_64-w64-mingw32-gcc)
CFLAGS=
DEFINES=-DDEBUG
CFILES=example.c
OUTPUT=example
BIN_DIR=bin
def mkhash(filelist)
hash = Hash.new()
hash.default = []
filelist.each do |path|
File.open(path) do |f|
tmp = f.read
hash[tmp].push(path)
end
end
return hash