Skip to content

Instantly share code, notes, and snippets.

Ben Balter benbalter

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' ); ?>
</a>
<?php } // End if(). %>
@benbalter
benbalter / readme.md
Last active Aug 24, 2016 — forked from mertkahyaoglu/readme.md
Jekyll Admin Initial Release
View readme.md
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 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 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 Aug 17, 2015
Mirror all organization repositories
View mirror-org-repos.sh
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 Jun 25, 2015
Convert CSVs to GeoJSON, in bulk
View csv-to-geojson.sh
#!/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 Aug 29, 2015
Ruby script to check if the status of an export license application (STELA request) has changed and output the result
View example-output.md
Status: UNCHANGED
+-------------------+--------------------------+
|             Application XXXX                 |
+-------------------+--------------------------+
| Application Type  | Commodity Classification |
| Review Status     | Completed                |
| Registration Date | 01/01/2015               |
| Completion Date   | 01/02/2015               |
| Final Decision    |                          |
View organization-report.md

GitHub Report

Teams

Owners

Members:

  • benbalter

Repositories:

@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
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)
View github-government-one-pager.md

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.