Make sure your working tree is clean. Stash or commit anything you're working on.
❯ git status
# On branch features/enrollment_popout
nothing to commit, working directory clean
Fetch the latest changes from the server.
require 'mysql2' | |
SIMULATE = true | |
DB_HOST = "localhost" | |
DB_NAME = "database" | |
DB_USER = "root" | |
DB_PASS = "password" | |
@client = Mysql2::Client.new( | |
:host => DB_HOST, |
sudo apt-get install libcap2-bin | |
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node |
# | |
# The goal of this exercise is work on identifying abstraction which helps simplify, document, | |
# and separate the concerns going on in file. | |
# | |
# Exercise: | |
# * Find related ideas in the below code | |
# * Abstract them out (methods, modules, classes, etc, you pick!) | |
# * If you find multiple ways, then do a separate gist for each way. | |
# * Rinse repeat until you see no other ways. | |
# |
<samlp:AuthnRequest AssertionConsumerServiceURL="http://ruby-saml-example.herokuapp.com/saml/consume" | |
Destination="https://ec2-54-235-224-165.compute-1.amazonaws.com:9443/samlsso" | |
ID="_2D729750-3EB6-43A4-8416-938C7114D8C6" | |
IssueInstant="2013-03-12T16:25:08" | |
Version="2.0" | |
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"> | |
<saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"> | |
ruby-saml-example.herokuapp.com | |
</saml:Issuer> | |
</samlp:AuthnRequest> |
2013-03-26 16:54:12.678 palette[655:907] iCloud is available | |
2013-03-26 16:54:12.795 palette[655:1103] Creating iCloud store | |
2013-03-26 16:54:12.936 palette[655:907] iCloud is available | |
2013-03-26 16:54:13.311 palette[655:1103] Persistent store is ready | |
2013-03-26 16:54:13.313 palette[655:1103] notification: NSConcreteNotification 0x1fd55ca0 {name = NSPersistentStoreCoordinatorStoresDidChangeNotification; object = <NSPersistentStoreCoordinator: 0x1fdc1870>; userInfo = { | |
added = ( | |
"<NSSQLCore: 0x208af020> (URL: file://localhost/private/var/mobile/Library/Mobile%20Documents/3488MV35N5~com~mutuallyhuman~palette/data.nosync/v62/CB1BD919-3E96-4D3E-B6DE-5270D7F5AE1C/palette.sqlite)" | |
); | |
}} | |
2013-03-26 16:54:13.315 palette[655:1103] ==========UI READY=========== |
❯ lineman run | |
Running "configure" task | |
Running "common" task | |
Running "coffee:compile" (coffee) task | |
File generated/js/app.coffee.js created. | |
File generated/js/spec.coffee.js created. | |
>> Destination not written because compiled files were empty. |
# Get the path to the already-built info.plist | |
buildPlist="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
# Construct our version string (in this case, date+git commit) | |
date=`date -u +"%Y-%m-%dT%H:%M:%SZ"` | |
rev=`git rev-parse --short HEAD` | |
buildString="$date-$rev" | |
# Replace CFBundleVersion with our string | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildString" "$buildPlist" |
Make sure your working tree is clean. Stash or commit anything you're working on.
❯ git status
# On branch features/enrollment_popout
nothing to commit, working directory clean
Fetch the latest changes from the server.
I heard you like headless VMs on your Mac so I wrote this script for your launchd
s.
/Virtual Machines
<div id="consolelog" style="font-family: 'Courier New', Courier, monospace; font-size: 12px; margin: 40px 30px 0px; background-color: white; border: 2px solid black; padding: 10px;"></div> | |
<input type="text" id="consoleinput" style="margin: 0px 30px; width: 400px;" onkeypress="return evalConsoleInput(event, this.value);" /> | |
<script type="text/javascript"> | |
var appendConsole = function(message, type) { | |
var color = "black"; | |
if (type === "error") { | |
color = "red"; | |
} else if (type === "debug") { |