Skip to content

Instantly share code, notes, and snippets.

View maggit's full-sized avatar
💅
Focusing

Raquel Hernandez maggit

💅
Focusing
View GitHub Profile
6/23/10 3:01:11 PM [0x0-0x10d10d].com.maccman.taskforce[21485] undefined method `constantize' for "Encoding":String
6/23/10 3:01:11 PM [0x0-0x10d10d].com.maccman.taskforce[21485] /Applications/Taskforce.app/Contents/Resources/vendor/gems/ruby/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:156:in `block in const_missing'
6/23/10 3:01:11 PM [0x0-0x10d10d].com.maccman.taskforce[21485] /Applications/Taskforce.app/Contents/Resources/vendor/gems/ruby/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:154:in `each'
6/23/10 3:01:11 PM [0x0-0x10d10d].com.maccman.taskforce[21485] /Applications/Taskforce.app/Contents/Resources/vendor/gems/ruby/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:154:in `const_missing'
6/23/10 3:01:11 PM [0x0-0x10d10d].com.maccman.taskforce[21485] /Applications/Taskforce.app/Contents/MacOS/libs/rubylib/1.9.1/uri/common.rb:721:in `<module:URI>'
6/23/10 3:01:11 PM [0x0-0x10d10d].com.maccman.taskforce[21485] /Applications
system:
system:
uname: "Darwin Raquel-Hernandezs-MacBook-Pro.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386"
shell: "bash"
version: "3.2.48(1)-release"
rvm:
version: "rvm 0.1.40 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]"
>> building = Building.find_all_by_address_or_name("301 Cumberland Street")
=> []
>> building = Building.find_by_address("301 Cumberland Street")
=> nil
>> building = Building.find_by_address("301 Cumberland Street")
=> nil
>> building = Building.find_by_landmark_name("301 Cumberland Street")
=> nil
>> building = Building.find_all_by_landmark_name("301 Cumberland Street")
=> []
@maggit
maggit / install.sh
Created August 18, 2012 15:40
Chef installer for OS X 10.8 Mountain Lion
#!/bin/bash
# This is the current stable release to default to, with Omnibus patch level (e.g. 10.12.0-1)
# Note that the chef-full template downloads 'x.y.z' not 'x.y.z-r' which should be a duplicate of the latest -r
release_version="10.12.0-1"
use_shell=0
# Check whether a command exists - returns 0 if it does, 1 if it does not
exists() {
if command -v $1 &>/dev/null
@maggit
maggit / cmj2012
Created October 12, 2012 19:13
Various CMJ RSVP links
http://cmj2012.splashthat.com/
http://cmj.planetarygroup.com/
http://gbhtv.com/signupdlvitalic.html
http://www.moscot.com/whatsnew.asp?id=2808
http://www.cmj.com/kexp/
@maggit
maggit / gist:6596844
Created September 17, 2013 16:31
codes
["bed", "bedding", "pillow", "feather", "down", "downpillow", "sleep", "pillow", "bed", "bedding", "foam", "memoryfoam", "memoryfoampillow", "bed", "bedding", "sleep", "pillow", "pillowcase", "ear", "earplugs", "ears", "noise", "sleep", "bed", "heat", "electric", "electricblanket", "pad", "bed", "covering", "bedding", "sleep", "baby", "blanket", "babyblanket", "bed", "bedding", "sleep", "duvet", "bed", "bedding", "comforter", "double", "doublebed", "duvet", "bed", "bedding", "comforter", "king", "kingbed", "hairdryer", "blower", "hair", "sheet", "sheets", "king", "kingbed", "bedlinens", "bedclothes", "bedclothes", "sleep", "donotdisturb", "privacy", "sign", "doorknob", "tag", "doortag", "dnd", "menu", "food", "breakfast", "roomservice", "doorknob", "hanging", "doortag", "tag", "door", "food", "menu", "roomservice", "breakfast", "lunch", "dinner", "snacks", "notes", "stationery", "paper", "notepaper", "notepaper", "notepad", "paperpad", "writing", "pens", "ballpoint", "stationery", "writing", "quill", "fire",
@maggit
maggit / gist:82b212f7bfd4c5519932
Created June 10, 2014 00:35
copy_s3_bucket.rb
#!/usr/bin/env ruby
#Script to copy content between to S3 buckets (from the same account or from different accounts)
require 'rubygems'
require 'aws-sdk'
# Get an instance of the S3 interface.
sourceS3 = AWS::S3.new(
:access_key_id => 'accesskey',
:secret_access_key => 'secret'
)
2014-07-14 17:25:22.540+0000 WARN [o.n.s.r.w.StreamingBatchOperations]:
java.lang.NullPointerException: null
at org.eclipse.jetty.server.Request.getHttpChannelState(Request.java:407) ~[jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:98) [jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.neo4j.server.web.Jetty9WebServer.invokeDirectly(Jetty9WebServer.java:339) ~[neo4j-server-2.1.2.jar:2.1.2]
at org.neo4j.server.rest.web.StreamingBatchOperations.invoke(StreamingBatchOperations.java:69) [neo4j-server-2.1.2.jar:2.1.2]
at org.neo4j.server.rest.batch.BatchOperations.performRequest(BatchOperations.java:201) [neo4j-server-2.1.2.jar:2.1.2]
at org.neo4j.server.rest.batch.BatchOperations.parseAndPerform(BatchOperations.java:171) [neo4j-server-2.1.2.jar:2.1.2]
at org.neo4j.server.re
#Fresh instalation on Ubuntu Neo 2.1.2
commands = [[:create_node, {:name=>"bob"}]]
neo = Neography::Rest.new
batch_results = neo.batch *commands #returns Neography::NeographyError: Neography::NeographyError
#Gemfile
#remote: git://github.com/maxdemarzi/neography.git
#revision: f1306a6f6c9d1eddc2ffe71156d13e53cc9b044e
#specs:
@maggit
maggit / index.php
Last active January 2, 2018 00:55
Agregar un sitio estatico con una linea de php
<?php include_once("home.html"); ?>