Skip to content

Instantly share code, notes, and snippets.

View jryans's full-sized avatar

J. Ryan Stinnett jryans

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jryans
jryans / upload.sh
Created June 20, 2012 16:43
Upload all the things
ack -a -G '\.vizr' -l 'upload' | xargs -n 1 dirname | xargs -n 1 -I 'f' sh -c 'vizr build f && vizr dist f && vizr upload f'
@jryans
jryans / deploy-changed.sh
Created August 10, 2012 18:29
Upload Modified Vizs
git diff --name-only HEAD~4 HEAD | cut -d'/' -f 2 | uniq | xargs -n 1 -I 'f' sh -c 'vizr build f && vizr dist f && vizr upload f'
@jryans
jryans / list-endpoints.sh
Created August 16, 2012 18:43
List all endpoints
find . -name '.vizr' | xargs grep 'endpoint' | cut -d' ' -f 4 | sort
@jryans
jryans / add_fields.rb
Created August 22, 2012 16:31
Add fields to all specs
def insert_at(parent, pos, new_field)
parent.viz_fields.all(:conditions => ['position >= ?', pos]).each do |child|
child.position += 1
child.save
end
new_field[:position] = pos
parent.viz_fields.create(new_field)
end
@jryans
jryans / gist:3795829
Created September 27, 2012 19:08
Adobe Update Errors
DPS Desktop Tools CS6 2.04.1 Update
Installation Successful. Error Code: U44M1I0
Adobe Media Encoder CS6 6.0.2 Update
Installation Successful. Error Code: U44M1I0
Adobe InDesign CS6 8.0.1 update
Installation Successful. Error Code: U44M1I0
@jryans
jryans / mobile.md
Created November 27, 2012 16:13
Mobile Strategy

This is an opinionated technical design for our mobile strategy. We can use this to frame our discussion and evolve it as new decisions are made.

What does "mobile" mean?

Mobile means a lot of different things to different people. It's really not just one extra case to consider. In the context of our visualizations, we should think about each of the following use cases:

  1. Visualization embedded into client's responsive site:
  • Viewed on a desktop
  • Viewed on a tablet
  • Viewed on a smartphone
@jryans
jryans / openssh-launchagent.patch
Last active October 17, 2015 21:33
Allow OpenSSH to run as a launch agent
diff --git a/ssh-agent.c b/ssh-agent.c
index a335ea3..594cb8a 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -71,6 +71,9 @@
#ifdef HAVE_UTIL_H
# include <util.h>
#endif
+#ifdef __APPLE__
+# include <launch.h>

Viz Startup Time

  • Before: 1.91s
  • After: 0.97s

Startup Data Transferred

  • Before: 186 KB
  • After: 137 KB