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 ruby | |
# == Bucket Finder - Trawl Amazon S3 buckets for interesting files | |
# | |
# Each group of files on Amazon S3 have to be contained in a bucket and each bucket has to have a unique | |
# name across the system. This means that it is possible to bruteforce names, this script does this and more | |
# | |
# For more information on how this works see my blog post "Whats in Amazon's buckets?" at | |
# http://www.digininja.org/blog/whats_in_amazons_buckets.php | |
# |
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 ruby | |
# == Bucket Finder - Trawl Amazon S3 buckets for interesting files | |
# | |
# Each group of files on Amazon S3 have to be contained in a bucket and each bucket has to have a unique | |
# name across the system. This means that it is possible to bruteforce names, this script does this and more | |
# | |
# For more information on how this works see my blog post "Whats in Amazon's buckets?" at | |
# http://www.digininja.org/blog/whats_in_amazons_buckets.php | |
# |
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 MergeSort { | |
public static void main(String[] args) { | |
int[] list = {8,3,6,2,7,1,9,4,10,5}; | |
printArray(list); | |
mergeSort(list, 0, list.length - 1); | |
} | |
public static void printArray(int[] array) { | |
System.out.print("{"); | |
for (int i = 0 ; i < array.length ; i++) { |
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
<?xml version="1.0"?> | |
<document> | |
<item a="0" b="0" c="0" name="0"/> | |
<item a="1" b="0" c="0" name="1"/> | |
<item a="0" b="1" c="0" name="2"/> | |
<item a="1" b="1" c="0" name="3"/> | |
<item a="0" b="0" c="1" name="4"/> | |
<item a="1" b="0" c="1" name="5"/> | |
<item a="0" b="1" c="1" name="6"/> | |
<item a="1" b="1" c="1" name="7"/> |
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
abstract class Lambda { | |
abstract public void func(); | |
} | |
public class Example { | |
public static void main(String args[]) { | |
System.out.println("Begin main"); | |
final String hello = "Hello World!"; | |
functionCall(new Lambda() { | |
public void func() { |
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
#!/bin/bash | |
ADDRESS="http://pastebin.com/api_public.php" | |
NAME=${NAME:-$USER} | |
URL=$(curl -d paste_private=1 -d "paste_code=$(cat $1)" -d "paste_name=$NAME" $FORMAT $SUBDOMAIN $ADDRESS 2>/dev/null) | |
echo $URL |
NewerOlder