Skip to content

Instantly share code, notes, and snippets.

Avatar

Jack Platten plttn

View GitHub Profile
View gpg.strace
837 execve("/usr/bin/gpg", ["gpg", "--refresh-keys"], 0x7ffc5f842680 /* 27 vars */) = 0
837 brk(NULL) = 0x55e42cb8e000
837 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
837 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
837 fstat(3, {st_mode=S_IFREG|0644, st_size=21461, ...}) = 0
837 mmap(NULL, 21461, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f948e1b2000
837 close(3) = 0
837 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
837 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0203\0\0\0\0\0\0"..., 832) = 832
837 fstat(3, {st_mode=S_IFREG|0644, st_size=113088, ...}) = 0
View lab2solution.ino
// First we'll set up constants for the pin numbers.
// This will make it easier to follow the code below.
const int button1Pin = 2; // pushbutton 1 pin
const int ledPin = 13; // LED pin
void setup()
{
// Set up the pushbutton pins to be an input:
View lab2.ino
/*
PUSH BUTTONS
Use pushbuttons for digital input
Previously we've used the analog pins for input, now we'll use
the digital pins for input as well. Because digital pins only
know about HIGH and LOW signals, they're perfect for interfacing
to pushbuttons and switches that also only have "on" and "off"
states.
We'll connect one side of the pushbutton to GND, and the other
View oauth.py
from tweepy import OAuthHandler
ckey = "fooo"
csecret = "foo"
atoken = "foo-foo"
asecret = "foo"
dtKey = "foo"
def getOAuth():
View keybase.md

Keybase proof

I hereby claim:

  • I am plttn on github.
  • I am plttn (https://keybase.io/plttn) on keybase.
  • I have a public key ASC6jeQrZZhj8HrGIJlKcWYzSLEQWuf4NB0xCbD16RScbwo

To claim this, I am signing this object:

View prompt.sh
if set -q VIRTUAL_ENV
set venvbase (basename $VIRTUAL_ENV)
set venv "$color_bold_yellow^venv:$venvbase$color_reset"
end
echo -s $user (set_color yellow)'@' $machine ':' $directory $git $venv
@plttn
plttn / config.fish
Last active Aug 29, 2015
adjusts fish shell title (as well as fixes SSH title bug with Terminal.app)
View config.fish
# Load exit_handler
. $HOME/.config/fish/functions/exit_handler.fish
View .travis.yml
language: ruby
cache: bundler
rvm:
- 1.9.3
branches:
only:
- deploy
before_install: