cd /tmp
curl -O http://www.meadowy.org/~gotoh/ssh/connect.c
gcc connect.c -o connect -lresolv
sudo mv connect /usr/local/bin
Edit host:port as necessary
-- from http://veritrope.com/code/copy-omnifocus-item-uri-to-evernote/ | |
tell front window of application "OmniFocus" | |
try | |
set theTrees to selected trees of content | |
if (count of theTrees) < 1 then | |
set theTrees to selected trees of sidebar | |
end if | |
if (count of theTrees) < 1 then |
#!/usr/bin/env bash | |
# | |
# Convert a .mov or .mp4 to a .gif using ffmpeg and gifsicle. | |
# | |
# Tools install: https://gist.github.com/dergachev/4627207#installation | |
# | |
# Sources: | |
# 1. https://discovergrid.com/animated-gif-with-ffmpeg-palettegen/ | |
# Use ffmpeg with a generated palette to map colors better | |
# 2. https://gist.github.com/dergachev/4627207 |
#!/bin/bash | |
# | |
# Wrap tilt so that a Ctrl-C will call `tilt down` when done. | |
tilt= | |
do_auto_down() { | |
echo "Interrupt; killing $tilt" | |
kill -INT $tilt | |
tilt down | |
exit 0 |
#!/bin/bash | |
# | |
# Send a message to OSX Notification Center when Tilt finishes building resources | |
# | |
# usage: tiltnotify [options] | |
# | |
# Options are passed as command-line arguments to `tilt get` (e.g., --port). | |
notify() { | |
local title= subtitle= message= |
#!/bin/bash | |
# | |
# Homebrew has removed openssl 1.0 from the core repo, making the default | |
# openssl 1.1. We still have a number of packages that rely on openssl 1.0 | |
# (including ruby 2.2.7), so we need to bring it back. | |
# Commit 0349a7ca76f483483c6d5c1d4cfe6b458dee2665 is the commit that removed 1.0 | |
# from the repo. Commit 30fd2b68feb458656c2da2b91e577960b11c42f4 is its parent | |
# commit that still has 1.0. | |
# Uninstall 1.1 if it is currently installed as 'openssl' |
#!/bin/bash | |
# | |
# Zoom.us full uninstall script | |
# | |
# - Download this file locally | |
# - Run `chmod 755 ./remove_zoom_us_macos.sh` | |
# - Run `./remove_zoom_us_macos.sh` | |
echo Cleaning Zoom… |
I hereby claim:
To claim this, I am signing this object:
class RequestStorePlugin < ::Delayed::Plugin | |
callbacks do |lifecycle| | |
lifecycle.before(:enqueue) do |job| | |
obj = job.payload_object | |
obj.instance_variable_set(:@_request_store, RequestStore.store) | |
job.payload_object = obj # reserialize the job | |
end | |
lifecycle.before(:perform) do |worker, job, &block| | |
request_store = YAML.load(job.handler).instance_variable_get(:@_request_store) || {} |