Skip to content

Instantly share code, notes, and snippets.

View miwillhite's full-sized avatar

Matthew Willhite miwillhite

View GitHub Profile
@miwillhite
miwillhite / vpn.log
Created December 3, 2012 21:06
VPN log
Dec 03 13:05:26: Viscosity Mac 1.4.2 (1092)
Dec 03 13:05:26: Viscosity OpenVPN Engine Started
Dec 03 13:05:26: Running on Mac OS X 10.8.2
Dec 03 13:05:26: ---------
Dec 03 13:05:26: Checking reachability status of connection...
Dec 03 13:05:26: Connection is reachable. Starting connection attempt.
Dec 03 13:05:28: OpenVPN 2.2.1 x86_64-apple-darwin10.8.0 [SSL] [LZO2] [PKCS11] [eurephia] built on Aug 1 2011
Dec 03 13:05:30: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Dec 03 13:05:30: LZO compression initialized
Dec 03 13:05:30: UDPv4 link local: [undef]
// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget.addEventListener
(function() {
if (!Event.prototype.preventDefault) {
Event.prototype.preventDefault=function() {
this.returnValue=false;
};
}
if (!Event.prototype.stopPropagation) {
Event.prototype.stopPropagation=function() {
this.cancelBubble=true;
NSDictionary *questionData = [[self.previousQuestionnaireData filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"(id == %@)", cell.question.objectId]] lastObject];
@miwillhite
miwillhite / log
Created August 15, 2013 19:41
chef output
Running chef-solo...
stdin: is not a tty
[Thu, 15 Aug 2013 19:34:41 +0000] INFO: Forking chef instance to converge...
[Thu, 15 Aug 2013 19:34:41 +0000] INFO: *** Chef 11.6.0 ***
[Thu, 15 Aug 2013 19:34:41 +0000] INFO: Setting the run_list to ["recipe[apt]", "recipe[rvm]", "recipe[git]", "recipe[nginx]", "recipe[mysql]"] from JSON
[Thu, 15 Aug 2013 19:34:41 +0000] INFO: Run List is [recipe[apt], recipe[rvm], recipe[git], recipe[nginx], recipe[mysql]]
[Thu, 15 Aug 2013 19:34:41 +0000] INFO: Run List expands to [apt, rvm, git, nginx, mysql]
[Thu, 15 Aug 2013 19:34:41 +0000] INFO: Starting Chef Run for natty.talifun.com
[Thu, 15 Aug 2013 19:34:41 +0000] INFO: Running start handlers
[Thu, 15 Aug 2013 19:34:41 +0000] INFO: Start handlers complete.
<attribute name="imageName" attributeType="String" syncable="YES"/>
<attribute name="isPlacedInScene" optional="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
<attribute name="name" attributeType="String" defaultValueString="piece" syncable="YES"/>
<attribute name="uuid" attributeType="Integer 32" syncable="YES"/>
<attribute name="xPosition" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
<attribute name="xScale" attributeType="Double" defaultValueString="1" syncable="YES"/>
<attribute name="yPosition" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
<attribute name="yScale" attributeType="Double" defaultValueString="1" syncable="YES"/>
<attribute name="zPosition" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
<attribute name="zRotation" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
@miwillhite
miwillhite / log
Last active December 21, 2015 12:39
[2013-08-22 15:15:42] requirements_debian_libs_install
requirements_debian_libs_install ()
{
__rvm_try_sudo apt-get --no-install-recommends --yes install "$@" || return $?
}
current path: /home/vagrant
command(4): requirements_debian_libs_install libgdbm-dev pkg-config libffi-dev
Reading package lists...
Building dependency tree...
Reading state information...
Installing mysql2 (0.3.11)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
# Install mysql server
mysql-server:
pkg:
- installed
mysql:
service.running:
- name: mysql
- require:
- pkg: mysql-server
# Install mysql server
mysql-server:
pkg:
- installed
mysql:
service.running:
- name: mysql
- require:
- pkg: mysql-server
Currently I'm using a template system. For each element there is a template that all instances will be based off of. These templates don't hold any positioning information, just the absolute basics to create a new element for the canvas.
Attributes required from the server:
imageName <string>
message <string>
type* <string>
I'll also be storing the 'id' as 'uuid'.