Skip to content

Instantly share code, notes, and snippets.

efuquen@ubuntest ~/Code/oss/libav (master) $ gdb ./avconv
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
@efuquen
efuquen / gist:2706664
Created May 16, 2012 01:48
Grooveshark MD5 Calculations
import java.io.*;
//Custom java md5 implementaiton, use whatever you have available, as long as you stream bytes
//into it.
import com.twmacinta.util.MD5;
public class FileHash
{
/*
import java.io.*;
//Custom java md5 implementaiton, use whatever you have available, as long as you stream bytes
//into it.
import com.twmacinta.util.MD5;
public class FileHash
{
/*
@efuquen
efuquen / knife-role-node-list
Created April 17, 2012 21:04
Lists all the nodes that fall under a specified role
#!/bin/bash
function search_node {
NODE_ROLES=$(knife node show $1 | grep Roles | grep $2)
if [ "" != "$NODE_ROLES" ]
then
echo "$1"
fi
}