Skip to content

Instantly share code, notes, and snippets.

View benbalter's full-sized avatar
Verified

Ben Balter benbalter

Verified
View GitHub Profile
<?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' ); ?>
</a>
<?php } // End if(). %>
@benbalter
benbalter / readme.md
Last active August 24, 2016 22:30 — forked from mertkahyaoglu/readme.md
Jekyll Admin Initial Release
layout title date author categories
news_item
Jekyll Admin Initial Release
2016-08-23 13:21:02 -0700
mertkahyaoglu
community

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
benbalter / app-store.scpt
Created December 30, 2015 23:07
Programmatically install OS X app store apps
-- 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 http://stackoverflow.com/a/3469708
on FileExists(theFile) -- (String) as Boolean
tell application "System Events"
if exists file theFile then
return true
else
@benbalter
benbalter / mirror-org-repos.sh
Created August 17, 2015 20:03
Mirror all organization repositories
org="whitehouse"
for repo in $(curl -v -s "https://api.github.com/orgs/$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 "$filename.zip" -L "https://github.com/$repo/archive/master.zip"
done
@benbalter
benbalter / csv-to-geojson.sh
Created June 25, 2015 07:11
Convert CSVs to GeoJSON, in bulk
#!/bin/bash
# Convert CSVs to GeoJSON, in bulk
# Usage: ./csv-to-geojson.sh [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
benbalter / example-output.md
Last active August 29, 2015 14:16
Ruby script to check if the status of an export license application (STELA request) has changed and output the result
Status: UNCHANGED
+-------------------+--------------------------+
|             Application XXXX                 |
+-------------------+--------------------------+
| Application Type  | Commodity Classification |
| Review Status     | Completed                |
| Registration Date | 01/01/2015               |
| Completion Date   | 01/02/2015               |
| Final Decision | |

GitHub Report

Teams

Owners

Members:

  • benbalter

Repositories:

@benbalter
benbalter / licensee-rugged-benchmark.txt
Created October 2, 2014 16:48
Benchmark of Licensee using Rugged
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
benbalter / after.txt
Last active August 29, 2015 14:07
Licensee Benchmark
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