Skip to content

Instantly share code, notes, and snippets.

View RudyOnRails's full-sized avatar

Kevin Musiorski RudyOnRails

  • Maslar Industries, LLC
  • Chicago, IL
View GitHub Profile
@RudyOnRails
RudyOnRails / gist:3629971
Created September 5, 2012 03:39
start your engines
rails plugin new <name> (basics)
rails plugin new <name> -T (skip Test::Unit)
rails plugin new <name> -T --dummy-path=spec/dummy (specify dummy app path since we're using rspec)
rails plugin new <name> -T --dummy-path=spec/dummy --full --mountable (full is for making an engine, mountable is for putting inside dummy app)
@RudyOnRails
RudyOnRails / gist:3750772
Created September 19, 2012 16:57
blog comment I couldn't post, but wanted to share!
Thanks! This helped me understand nested resource needs in forms! Still have more controller methods to update but got the hang of it. Hopefully in the future I will nest resources from the beginning so that the generators set up things magically!
Just a heads up on this error I got when trying to comment on your blog:
http://angry-fly.com/wp-comments-post.php
ERROR: Could not read CAPTCHA token file.
There is a problem with the directory /si-captcha-for-wordpress/captcha/temp/.
Directory Unwritable (fix permissions). Permissions are: 0755 Fixing this may require assigning 0755 permissions or higher (e.g. 0777 on some hosts. Try 0755 first, because 0777 is sometimes too much and will not work.) Fixing the actual problem is recommended, but you can uncheck this setting on the si captcha options page: "Use CAPTCHA without PHP session" and the captcha will work this way just fine (as long as PHP sessions are working).
@RudyOnRails
RudyOnRails / gist:3956880
Created October 26, 2012 04:58
Jaret bash prompt tweak
export PS1="JLM$"
@RudyOnRails
RudyOnRails / gist:4319162
Created December 17, 2012 15:34
On Saturday afternoon around 3pm before TSL's anniversary party, I got the urge to rewrite "Twas the night before Christmas" with a more StarterLeague tone. Thanks to Karen for recording it. Listen at https://soundcloud.com/rudyonrails/starterleague-twas-the-night
Twas the night of Demo-Day
By Kevin Musiorski aka @RudyOnRails
December 15, 2012
It was the night before Demo-day, when all through 1871,
Not a macbook was booted, no commands were run.
The keynotes were all dropboxed with care,
In hopes that applauding crowds soon would be here.
The students were resting, all snug in their sub leases,
@RudyOnRails
RudyOnRails / gist:4622941
Created January 24, 2013 15:20
bobbilee
#container
- if current_user
.bttn.header=link_to("Profile", affiliate_path(current_user))
.bttn.header=link_to("Logout", logout_path, :method => :delete)
@RudyOnRails
RudyOnRails / application.css.scss
Created June 20, 2013 17:34
Trying to see where this 8px margin on my body element is coming from...
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<ActivityId CorrelationId="73bbd6fa-f623-4019-bfdd-a487b558d18d" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">c586a362-f9bc-4fc6-b96c-070d90c8f5e4</ActivityId>
</s:Header>
<s:Body>
<GetCarriersPlansBenefitsResponse xmlns="http://www.quotit.com/Services/ActWS/ACA/2">
<GetCarriersPlansBenefitsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<RequestId xmlns="">3425375</RequestId>
<PodId xmlns="">Stage-v2</PodId>
<TotalMilliseconds xmlns="">689</TotalMilliseconds>
@RudyOnRails
RudyOnRails / output.log
Created January 17, 2014 03:49
pspec failure in 1.7.3
Failures:
1) Bxml::ClientApiLogger request logging should log a transaction id for the request before any other messages
Failure/Error: BRIX_API_LOGGER.debug_log.should include(expected_message)
expected "Account: Joe Smith: [CH-DEV/TestEE] - Server: Kevins-MacBook-Air.local - Process: 9477 - Transaction: 1389929961 - fake request start\n=======================================================================================================================================\n\nAccount: Joe Smith: [CH-DEV/TestEE] - Server: Kevins-MacBook-Air.local - Process: 9477 - Transaction: 1389929961 - Date & Time: 2014-01-17 03:39:21 AM - Event: Sending 'fake request' request\n-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n<?xml version=\"1.0\"?>\n<Tag1>\n <Login>Data has been redacted</Login>\n <Person>Data has been redacted</Person>\n <P
Retrying git clone 'git://github.com/alepulver/backstage' "/home/travis/build/connectedhealth/Health-Care-Cost-Calculator/.bundle/ruby/2.0.0/cache/bundler/git/backstage-e2f72fb835cfcba514aec7ea3779eff8dea74ddd" --bare --no-hardlinks due to error (3/3): Bundler::Source::Git::GitCommandError Git error: command `git clone 'git://github.com/alepulver/backstage' "/home/travis/build/connectedhealth/Health-Care-Cost-Calculator/.bundle/ruby/2.0.0/cache/bundler/git/backstage-e2f72fb835cfcba514aec7ea3779eff8dea74ddd" --bare --no-hardlinks` in directory /home/travis/build/connectedhealth/Health-Care-Cost-Calculator has failed.
@RudyOnRails
RudyOnRails / gist:d209ba92d0faf8340cbb
Created June 22, 2014 17:37
./configure --prefix=/usr/local/Cellar/libiconv/1.13.1
~/Downloads/libiconv-1.13.1: ./configure --prefix=/usr/local/Cellar/libiconv/1.13.1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes