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
// | |
// This is an incomplete VM that runs 16 bit bytecode written in C++. | |
// It's very basic and probably lacks a lot, so this is not to be used in production at all. | |
// It was however fun to write, so I provide this as a Gist. | |
// | |
// https://github.com/codecat | |
// | |
#include <cstdio> | |
#include <cstdint> |
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 | |
# Ubuntu Keyboard settings shortcut: | |
# xfce4-screenshooter -r -o "sh /location/to/imgur-uploader.sh" | |
API_KEY=YOUR_API_KEY_GOES_HERE | |
URL=http://api.imgur.com/2/upload | |
RESPONSE=$(curl -s -F "key=$API_KEY" -F "image=@$1" $URL) | |
echo "$RESPONSE" | grep -o -E "<original>.*</original>" | grep -o -E "http://.*\.png" | xsel -i -b |
NewerOlder