I hereby claim:
- I am ctcherry on github.
- I am ctcherry (https://keybase.io/ctcherry) on keybase.
- I have a public key whose fingerprint is 57D4 59CF 8EC5 795E D211 199A 0C9C EC84 6868 75D1
To claim this, I am signing this object:
require 'digest/md5' | |
require 'base64' | |
require 'stringio' | |
data = StringIO.new(Base64.decode64(DATA.read)) | |
byte_hashes = [] | |
while d = data.read(16) | |
byte_hashes << d.unpack('H*').first | |
end |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
echo "running" | |
KEY="$(echo -n $(cat ~/.screenshot_uploader.secret))" | |
HOST="s8t.us" | |
SFILE="$(find /Users/USER/Desktop -mtime -5s -type f -name 'Screen Shot*' | head -1)" |
I hereby claim:
To claim this, I am signing this object:
mks() { | |
sname=$(basename ${PWD//./-}) | |
tmux has-session -t $sname 2>/dev/null | |
if [ "$?" -eq 1 ] ; then | |
tmux new-session -d -s $sname | |
fi | |
tmux switch -t $sname | |
} |
git config --global core.packedGitWindowSize 16m | |
git config --global core.packedGitLimit 64m | |
git config --global pack.windowMemory 64m | |
git config --global pack.packSizeLimit 64m | |
git config --global pack.thread 1 | |
git config --global pack.deltaCacheSize 1m | |
# Source: http://uberspace.de/dokuwiki/development:git#ram-nutzung |
upstream app { | |
# Path to Puma SOCK file, as defined previously | |
server unix:/home/deploy/appname/shared/sockets/puma.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
root /home/deploy/appname/public; |
#[derive(Debug)] | |
struct RingBuffer<T: Clone> { | |
storage: Vec<Option<T>>, | |
read_idx: usize, | |
write_idx: usize, | |
len: usize | |
} | |
#[derive(Debug, PartialEq)] | |
struct Full; |