Skip to content

Instantly share code, notes, and snippets.

@Matt1360
Matt1360 / uuidgen.c
Created September 28, 2014 23:14
Linux UUID generation, in C. Didn't realize it was this easy.
#include <stdio.h>
#include <uuid/uuid.h>
int main()
{
uuid_t uuid;
int i = 0;
uuid_generate( uuid );
@Matt1360
Matt1360 / screenshot.sh
Last active December 21, 2015 17:38
Screenshot script I use for things like screenshots, and screenshot accessories that can be used with multiple X screens.For good things(tm), I recommend binding keyboard shortcuts to the script.I should also note, you want public keys set up to upload it. Yarr.
#!/bin/bash
# Ensure some arg
if [ -z "$1" ]
then
echo "No arguments!"
exit -1
fi
# Full screenshot - both X screens