Skip to content

Instantly share code, notes, and snippets.

Michael Kirk michaelkirk

Block or report user

Report or block michaelkirk

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 show-remote-branch-info.sh
#!/bin/sh
#
# Too many crusty old git branches? Run this to find likely candidates for deletion
# It lists all the remote branches and sorts them by age.
#
# Folks at pivotal shared this with me
#
#$ . show-remote-branch-info.sh
# 2012-05-04 09:42:29 -0700 4 minutes ago Ted & Bill \torigin/hey_Bill
View YapDatabaseConnection.swift
import Foundation
/**
* Welcome to YapDatabase!
*
* The project page has a wealth of documentation if you have any questions.
* https://github.com/yapstudios/YapDatabase
*
* If you're new to the project you may want to visit the wiki.
View [SRRunloop main].crash
Incident Identifier: CEB3B94A-2B03-4FDE-B333-38D82E64B967
CrashReporter Key: dcd6f3ed70ababf8aa3d455c29d16532a26e1d70
Hardware Model: iPhone8,1
Process: Signal [186]
Path: /private/var/mobile/Containers/Bundle/Application/EADBFFDD-04CC-47D1-A0D9-398A4685BD94/Signal.app/Signal
Identifier: org.whispersystems.signal
Version: 2.3.3.0 (2.3.3)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
View [SRProxyConnect _dequeueInput].crash
Incident Identifier: 611E05B7-EF63-469F-9B9F-9E2865E30E72
CrashReporter Key: 1310ff747e7aa34772e89732256d084280788f43
Hardware Model: iPhone7,2
Process: Signal [848]
Path: /private/var/containers/Bundle/Application/F8AA11CD-CAA1-4355-97F5-21C2C8E27E4C/Signal.app/Signal
Identifier: org.whispersystems.signal
Version: 2.3.3.0 (2.3.3)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
@michaelkirk
michaelkirk / Localizable.strings.diff
Created Mar 12, 2016
git diff master b6f18486d838d44be33cee11bb73844f83b6b109 -- Signal/translations/en.lproj/Localizable.strings
View Localizable.strings.diff
diff --git a/Signal/translations/en.lproj/Localizable.strings b/Signal/translations/en.lproj/Localizable.strings
index a911cbb..1378c0c 100644
--- a/Signal/translations/en.lproj/Localizable.strings
+++ b/Signal/translations/en.lproj/Localizable.strings
@@ -40,6 +40,7 @@
"IN_CALL_SECURING" = "Answered. Securing...";
"IN_CALL_TALKING" = "Secured. Active.";
"IN_CALL_TERMINATED" = "Done.";
+"IRREVERSIBLE_ACTION_TITLE" = "This cannot be undone.";
"KEYPAD_NAV_BAR_TITLE" = "Keypad";
View plugin.rb
require 'yaml'
module MyPlugin
SETTINGS = YAML.load './plugins/my_plugin/settings.yml'
end
View UnMarshaller.java
package com.getinsured.parser;
import gov.cms.ffe.ee.applicant_eligibility.extension._1.ApplicantEligibilityResponseType;
import java.io.File;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
@michaelkirk
michaelkirk / gist:6849441
Created Oct 6, 2013
Add items to the Navigation Bar
View gist:6849441
availableNavItems: function() {
var loggedOn = !!Discourse.User.current();
var extraNavItem = Discourse.NavItem.fromText("foo", {
loggedOn: loggedOn
});
return Discourse.SiteSettings.top_menu.split("|").map(function(i) {
return Discourse.NavItem.fromText(i, {
loggedOn: loggedOn
View .ackrc
--nosql
--ignore-file=match:tags
--ignore-dir=.idea
--ignore-dir=node_modules
--ignore-dir=.env
--ignore-dir=tmp
--ignore-dir=build
--ignore-dir=log
--ignore-dir=tiny_mce
--ignore-dir=tmp/capybara/
@michaelkirk
michaelkirk / .rspec
Created Jun 18, 2013
This is my .rspec file (lives in the project root). I always recommend running with --profile, in the hope that _maybe_ if we have to see which tests are the slowest we might accidentally fix them.
View .rspec
-c
--drb
--profile
You can’t perform that action at this time.