Skip to content

Instantly share code, notes, and snippets.

View mrjoshuak's full-sized avatar
💭
I may be slow to respond.

Joshua Kolden mrjoshuak

💭
I may be slow to respond.
View GitHub Profile
@mrjoshuak
mrjoshuak / .gitignore_global
Created August 1, 2013 14:32
Global ignore
#OSX
.DS_Store
.AppleDouble
.LSOverride
Icon
# Thumbnails
._*
# Files that might appear on external disk

Welcome!

If you have any suggestions, please leave a comment and mention me ( @dideler ) so I get a notification.
Pull requests aren't possible with gists (yet), so comments are more useful than forking this to make changes.

Don't forget to star this gist!

TODO
  • Organize resources into sections
  • More detailed sections (perhaps sections & subsections)
@mrjoshuak
mrjoshuak / index.md
Created November 16, 2013 23:13 — forked from rstacruz/index.md

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

#TODO

  • One thing c4 rials server with testing.

  • Build new c4 rials server with testing.

  • New Gui Elements

    • Opening Animation
      • logo artwork
  • C4
import QtQuick 2.0
import QtTest 1.0
TestCase {
id: mathTests
name: "MathTests"
function test_math() {
compare(2 + 2, 4, "2 + 2 = 4")
}
git review -s
Could not connect to gerrit.
Enter your gerrit username: MrJoshua
Trying again with ssh://MrJoshua@review.openstack.org:29418/openstack/openstack-manuals.git
<traceback object at 0x1098cac20>
We don't know where your gerrit is. Please manually create a remote
named "gerrit" and try again.
Traceback (most recent call last):
File "/usr/local/bin/git-review", line 1196, in <module>
main()
function myFunction(opts) {
var defaults = {
param1: 'foo',
param2: 'bar'
};
var options = __extend(defaults, opts);
return options;
}
myFunction({param2: 'baz'}); // { param1: 'foo', param2: 'baz' }

Simple Tasks

Platforms like mechanical turk. Many workers do simple tasks for a little amount of money. Often tasks get done more than once and the result most of the people gave, is taken as valid.

http://mturk.com http://clickworker.com/ http://microtask.com/ Mainly Digitizing http://samasource.org/ non-profit, content moderation, digitization, data entry, Data Mining and Enrichment, Business Listing Verification http://cloudcrowd.com/ "CloudCrowd provides Turk functionality and adds workflow functionality and innate quality control" http://www.mobileworks.com/ quality through exclusivity

Launch CoreOS on AWS GPU instance

  • Go to Launch CoreOS on AWS and find the HVM AMI you want to use, eg: ami-d878c3b0

  • Go to AWS control panel under EC2 instances

  • Launch a new instance

  • Under "Community AMIs", search for ami-d878c3b0

@mrjoshuak
mrjoshuak / docker.service.log
Last active March 17, 2016 22:19
Docker Issues in CoreOS beta (899.10.0) and alpha (983.0.0)
-- Reboot --
Mar 16 02:04:00 bishop-dev-01 systemd[1]: Started Docker Application Container Engine.
Mar 16 02:04:00 bishop-dev-01 dockerd[976]: time="2016-03-16T02:04:00.927735199Z" level=info msg="Firewalld running: false"
Mar 16 02:04:01 bishop-dev-01 dockerd[976]: time="2016-03-16T02:04:01.123652455Z" level=info msg="Loading containers: start."
Mar 16 02:04:01 bishop-dev-01 dockerd[976]: ..............................................................................................................................................................................................................................................................................................................
Mar 16 02:04:01 bishop-dev-01 dockerd[976]: time="2016-03-16T02:04:01.340752773Z" level=info msg="Loading containers: done."
Mar 16 02:04:01 bishop-dev-01 dockerd[976]: time="2016-03-16T02:04:01.340773475Z" level=info msg="Daemon has completed initialization"
Mar 16 02:04:01 bishop-dev-01 dockerd[976]: time="2016-03-16T02:04: