Skip to content

Instantly share code, notes, and snippets.

View mikeakers's full-sized avatar

Mike Akers mikeakers

  • Peloton Interactive
  • New York, NY
View GitHub Profile
@mikeakers
mikeakers / jenkinsBuild.sh
Last active November 10, 2016 10:08
minimal jenkins build script for iOS Xcode project
WORKSPACE="FooTornado.xcworkspace"
SCHEME="FooTornado"
CONFIGURATION="Release"
RELEASE_BUILDDIR="Build/Products/Release-iphoneos"
APPLICATION_NAME="FooTornado"
BUILD_OUTPUT_DIR="buildOutput"
PROVISONING_PROFILE="FooCorp Generic AdHoc Profile"
rm -rf $BUILD_OUTPUT_DIR
mkdir $BUILD_OUTPUT_DIR
@mikeakers
mikeakers / repos.py
Created April 22, 2020 23:42
Pulls or clones all repos in a GitHub org
#!/usr/bin/env python2.7
""" Print all of the (git/ssh or http) urls for all repos (public or
private+public with personal_token) in a GitHub account (user or organization).
Usage example::
[HTTP_URLS=1] python2.7 list-all-repos.py account_name [personal_token]
It requires the pygithub3 module, which you can install on macos (Mac OSX) like this::
# get pip if you don't have it
sudo python -m ensurepip
# In macos versions El Capitan and later, you must deal with System Integrity Protection
pip2 install --user pygithub3
@mikeakers
mikeakers / insert_test.sql
Last active April 7, 2022 12:55
Inserts 1 million rows into a sqlite db
-- This sequence of commands will create a table named 'test1' and insert
-- 1,000,000 values into it.
--
-- On my machine (M1 pro Mac) running this script with this command:
--
-- cat insert_test2.sql | time sqlite3 foo.sqlite
--
-- takes 0.244 seconds and creates an 11 megabyte sqlite3 db file
-- gzipping the db file reduces the size to 4.6 megs :)