Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted
@ankushnarula
ankushnarula / designer.html
Last active February 23, 2016 01:36
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map.html">
@ankushnarula
ankushnarula / command.txt
Created September 6, 2016 20:31 — forked from nrk/command.txt
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"

Keybase proof

I hereby claim:

  • I am ankushnarula on github.
  • I am ankushnarula (https://keybase.io/ankushnarula) on keybase.
  • I have a public key ASCvSRyIcKiMicdIThIkVJ4xxQxkRWHq1uB5pBkqQTOuLwo

To claim this, I am signing this object:

@ankushnarula
ankushnarula / aerial1.5.1beta6.debug.log
Created June 25, 2019 11:54
Aerial 1.5.1beta6 Debug Log
03:34:58 : avInit1 (0.0, 0.0, 296.0, 184.0)
03:34:58 : <AerialView: 0x7ff19f5020e0> AerialView setup init (V1.4.6)
03:34:58 : Time Management initialized
03:34:58 : Display Detection initialized
03:34:58 : ***Display Detection***
03:34:58 : 1 display(s) detected
03:34:58 : 1cm = 58.66141820384076 points
03:34:58 : npass: dict [__C.NSDeviceDescriptionKey(_rawValue: NSScreenNumber): 69733632, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceColorSpaceName): NSCalibratedRGBColorSpace, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceResolution): NSSize: {144, 144}, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceBitsPerSample): 8, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceSize): NSSize: {1680, 1050}, __C.NSDeviceDescriptionKey(_rawValue: NSDeviceIsScreen): YES]
03:34:58 : bottomLeftFrame (0.0, 0.0, 1680.0, 1050.0)
03:34:58 : src orig : (0.0, 0.0)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCqXXb9ymaktYQ7wCqEh35bd/WH36wALxGkgtkI1XV4jXgLGV7QorkXG5HSH4W8yyyI/go2J5Rz/Is/yHt/sG83DKDSpSgkZk1qxoe0pQUoc1D5/+MA1vf4NyTjzeFdpyRxsMzSONSLFcyLO7A/PnDkT7hsw2dGiMWmLfAFRaviSWb51IhJtkBZUWWJ1oEMUxzG9IwHnSUTlXCIySsJE9nuzPCMSMfCkBNEstgF5RCBJJPNNk2DMnMG7Pk7Ym2uKpgX5iDfqEZpIioSOZ+/PPCyHARKYmq5bAUR5g8oV1Y7L28AAV3EdEaKyIqXWy3NfaKUQM5o8qAPE15xMNnXrjJAd6LL9lAygLe+pfppE5MhQeEclPYvkNOjEGeiirrtFKqXP6aO4rdjsXx/lXcfnD76r+PnphUBGcl6pkRGzfOjrRBY7KTjudQ80ouPou5aojg4h3BFnnJf+zqT/t/mgMgYNXvnD+fYXqrQtsMbkcsl7qbTtI9BNh45xy+fRqhoHBM= ankush@hoppe
@ankushnarula
ankushnarula / email to calendar
Created September 29, 2021 01:44 — forked from bchartoff/email to calendar
An AppleScript to automatically create a calendar event from an e-mail containing a date and time of the form "March 10, 2015 12:00 - 2:00 PM". Distributed under MIT license (see below)
(*
Create Calendar event from Message
*)
set theContent to string
-- A subroutine to strip all tags from html
on remove_markup(this_text)
set copy_flag to true
set the clean_text to ""
repeat with this_char in this_text