I hereby claim:
- I am jfkingsley on github.
- I am jk (https://keybase.io/jk) on keybase.
- I have a public key whose fingerprint is 62D8 1415 C45F B602 08F4 4C84 C9CE CDC4 D64F CA3C
To claim this, I am signing this object:
#!/bin/bash | |
# Gets the *default* ip address only. | |
function default_ip | |
{ | |
/usr/bin/ruby -e ' | |
require "socket" | |
Socket.do_not_reverse_lookup = true |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh | |
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
if [ "`/usr/bin/whoami`" != "root" ]; then | |
echo "You need to execute this script as root." | |
exit 1 | |
fi | |
cat > /etc/yum.repos.d/centos.repo<<EOF |
var gMyHotKeyID = EventHotKeyID() | |
gMyHotKeyID.signature = OSType("swat".fourCharCodeValue) | |
gMyHotKeyID.id = UInt32(keyCode) | |
var eventType = EventTypeSpec() | |
eventType.eventClass = OSType(kEventClassKeyboard) | |
eventType.eventKind = OSType(kEventHotKeyPressed) | |
// Install handler. | |
InstallEventHandler(GetApplicationEventTarget(), {(nextHanlder, theEvent, userData) -> OSStatus in |
#include <iostream> | |
#include <memory> | |
#include <string> | |
#include <grpc++/grpc++.h> | |
#include "helloworld.grpc.pb.h" | |
using grpc::Server; | |
using grpc::ServerBuilder; |
const int LIGHT_PIN = 9; | |
const int BUTTON_PIN = 5; | |
const int DIFFICULTY = 5; | |
int ledSequence[DIFFICULTY]; | |
/** | |
* In this mode, the game shows the user a sequence to copy | |
*/ |
To blame a user just do: | |
git add . | |
git blameuser Jake | |
To add this function just run: | |
git config alias.blameuser '!sh -c "git commit -m \"$1 managed to break something..\""' - |
{ | |
"name": "_name", | |
"version": "_version", | |
"description": "_description", | |
"author": "_author", | |
"triggers": "this is not a test", | |
"actions" : [ | |
{ | |
"say":"testing", | |
"bash":"open ~", |
Dependencies: CMake | |
This project will install libwebsockets (if it is not already installed). | |
First download this: http://www.thebitguru.com/site_media/uploads/downloads/PlayButtoniTunesPatch-0.8.2.zip | |
Then double click and run Patch.command so iTunes doesnt boot when you press the play button | |
git clone --recursive git://github.com/whymarrh/media-keys.git | |
cd media-keys | |
./install.sh |
from debian:wheezy | |
# Install Node.js | |
RUN apt-get update | |
RUN apt-get install -y curl | |
RUN curl -sL https://deb.nodesource.com/setup | bash - | |
RUN apt-get install -y nodejs | |
# Install hubot generator | |
RUN npm install -g yo generator-hubot |