Skip to content

Instantly share code, notes, and snippets.

@gabriel
gabriel / prever.md
Last active December 16, 2015 21:42

Prereleases

Versioning

We use a semantic versioning string, that looks like 1.2.3 or 1.2.3-400 or 1.2.3-400+comment. After the dash (-) is the "prerelease" info. After the plus (+) is a comment field.

There are two ways to set the build number:

Verifying that +gabrielh is my blockchain ID. https://onename.com/gabrielh

Proposal for release versioning

  • We use a semantic versioning (e.g. 1.2.3-400)
  • Major, minor or patch only get incremented on production releases, 1.2.3 -> 1.2.4 or 1.3.1 or 2.0.0.The build number can be omitted or hidden when displaying this release version to humans. Code always passes around full version string.
  • We have a build version, that gets incremented on any packaged build, for testing (1.2.3-400) -> (1.2.3-401).
  • Obviously follow conventions for when to increment major, minor or patch
  • Staging releases are test releases so they increment build number

Upsides

@gabriel
gabriel / gist:12bf61bbe3bbeade76d9
Created August 20, 2015 23:09
Bingo nights (SF)
Monday: Elixir
Wednesdays: Sycamore? (7:30ish)
Wednesdays: Hi Top (http://hitopssf.com/)
Thursdays: Knockout (http://www.theknockoutsf.com/)
#
# Usage:
# tree.rb -l <low-value> -h <hi-value> -f <file>
# Function:
# Read in the file, one value per line. Then output all words between
# [<low-value>,<hi-value>] inclusive to standard output, in sorted order.
# This is a test-of-concept for a server function that will preload a binary-tree
# and then serve queries in O(log(n) + m) time, where n is the number of
# items in the input file, and m is the number of items in the output set.
AFNetworking - HTTP
SDWebImage - Images
ObjectiveSugar - Enhancements
YapDatabase - Storage (maybe check out Realm?)
Mantle - Object Serialization (binary and JSON)
YOLayout - View Layout**
MRProgress - Progress Indicators
GHUITable - Tables**
GHKit - Enhancements**
Slash - Attributed Text
codesign -dvvvv osxfusefs.fs/Support/osxfusefs.kext
Executable=osxfusefs.fs/Support/osxfusefs.kext/Contents/MacOS/osxfusefs
Identifier=com.github.osxfuse.filesystems.osxfusefs
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=724 flags=0x0(none) hashes=28+3 location=embedded
Hash type=sha1 size=20
CDHash=06b5ab8f4785c4519a921d10aef3737c4a6fc61f
Signature size=8571
Authority=Developer ID Application: Benjamin Fleischer (3T5GSNBU6W)
Authority=Developer ID Certification Authority

Read Me About SMJobBless

1.5

SMJobBless demonstrates how to embed a privileged helper tool in an application, how to securely install that tool, and how to associate the tool with the application that invokes it.

SMJobBless uses the Service Management framework that was introduced in Mac OS X 10.6 Snow Leopard. As of 10.6 this is the preferred method for managing privilege escalation on OS X and should be used instead of earlier approaches such as BetterAuthorizationSample or directly calling AuthorizationExecuteWithPrivileges.

Packing List

{
"bold_folder_labels": true,
"caret_style": "solid",
"ensure_newline_at_eof_on_save": true,
"highlight_line": true,
"ignored_packages":
"preview_on_click": false,
"rulers":
[
120
// MyView.m
#import "MyView.h"
@interface MyView ()
@property UIImageView *imageView;
@property DynamicHeightSubview *dynamicHeightSubview;
@end
@implementation MyView
- (void)sharedInit {