Skip to content

Instantly share code, notes, and snippets.

Ben Balter benbalter

Block or report user

Report or block benbalter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View edit-desktop-button.php
<?php if ( $latest_version && apply_filters( 'document_revisions_enable_webdav', true ) ) { ?>
<object id="winFirefoxPlugin" type="application/x-sharepoint" width="0" height="0" style="visibility: hidden;"></object>
<a id="edit-desktop-button" href="<?php echo esc_url( get_permalink( $post->ID ) ); ?>" class="button" title="<?php esc_attr_e( 'Edit on Desktop', 'wp-document-revisions' ); ?>">
<?php esc_html_e( 'Edit on Desktop', 'wp-document-revisions' ); ?>
<?php } // End if(). %>
benbalter /
Last active Aug 24, 2016 — forked from mertkahyaoglu/
Jekyll Admin Initial Release
layout title date author categories
Jekyll Admin Initial Release
2016-08-23 13:21:02 -0700

Jekyll's Google Summer of Code Project has concluded. After three months of hard (but fun) work with my mentors @benbalter, @jldec, and @parkr, I'm proud to announce Jekyll Admin's initial release. Jekyll admin is a Jekyll plugin that provides users with a traditional CMS-style graphical interface to author content and administer Jekyll sites. You can start to use it right away by following these instructions.

benbalter / app-store.scpt
Created Dec 30, 2015
Programmatically install OS X app store apps
View app-store.scpt
-- List of app store apps to install, if not installed
-- Name must exactly match name as it appears on the "Purchased" tab of the App Store
set myApps to {"Chroma for Hue", "Pushbullet", "Thessa", "TweeDeck by Twitter", "Calca", "Gif Brewery", "Twitter"}
-- via
on FileExists(theFile) -- (String) as Boolean
tell application "System Events"
if exists file theFile then
return true
benbalter /
Created Aug 17, 2015
Mirror all organization repositories
for repo in $(curl -v -s "$org/repos?per_page=100&type=sources" 2>&1 | grep '"full_name": "*"' | cut -d':' -f2 | sed s'/,$//' | sed s'/"//g' ); do
filename=$(echo "$repo" | cut -d'/' -f2)
echo "Downloading $repo..."
curl -o "$" -L "$repo/archive/"
benbalter /
Created Jun 25, 2015
Convert CSVs to GeoJSON, in bulk
# Convert CSVs to GeoJSON, in bulk
# Usage: ./ [URL to list of CSV files]
# Outputs geoJSON files to the `output` folder
# Install csv2geojson if it's not installed
type csv2geojson || npm install -g csv2geojson
# Cleanup
rm -Rf ./tmp
benbalter /
Last active Aug 29, 2015
Ruby script to check if the status of an export license application (STELA request) has changed and output the result
|             Application XXXX                 |
| Application Type  | Commodity Classification |
| Review Status     | Completed                |
| Registration Date | 01/01/2015               |
| Completion Date   | 01/02/2015               |
| Final Decision    |                          |

GitHub Report




  • benbalter


benbalter / licensee-rugged-benchmark.txt
Created Oct 2, 2014
Benchmark of Licensee using Rugged
View licensee-rugged-benchmark.txt
Begining benchmark...
user system total real
Load: 0.000000 0.000000 0.000000 ( 0.000149)
15 licenses loaded
Benchmarking vendored licenses...
user system total real
agpl-3.0 0.020000 0.000000 0.020000 ( 0.023164)
gpl-2.0 0.000000 0.000000 0.000000 ( 0.000449)
benbalter / after.txt
Last active Aug 29, 2015
Licensee Benchmark
View after.txt
Begining benchmark...
user system total real
Load: 0.000000 0.000000 0.000000 ( 0.000161)
16 licenses loaded
Benchmarking vendored licenses...
user system total real
apache-2.0 0.220000 0.030000 1.610000 ( 0.724164)
artistic-2.0 0.020000 0.000000 0.200000 ( 0.089318)

GitHub for Government

What is GitHub

  • GitHub is a social network for software developers
  • GitHub is a social layer built on top of a long-standing open source project called Git.
  • At its most basic level, Git simply tracks who made what change when
  • Used by many popular open source projects, bulk of technology you touch on a daily basis built on our platform
  • While it was originally used for collaborative software development, and still is, the collaborative workflow is equally applicable to countless applications including modern open data and open government efforts
  • GitHub hosts projects, commonly referred to as repositories
You can’t perform that action at this time.