Skip to content

Instantly share code, notes, and snippets.

☮️
Enjoy life; Build relationships; Be grateful; Work less; Love more; Exercise

Gerry Shaw gshaw

☮️
Enjoy life; Build relationships; Be grateful; Work less; Love more; Exercise
Block or report user

Report or block gshaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View upgrade_gems.rb
#!/env/bin ruby
require "fileutils"
def process(dir)
puts "Analyzing #{dir}"
FileUtils.cd(dir)
puts "Finding outdated gems"
View console.txt
% php -f test.php
[{"id":"1ZMXWC94HM","status":"delivered","batch_id":null,"to_name":"Catalyst USA","to_address_1":"28522 KNICKERBOCKER RD","to_address_2":null,"to_city":"BAY VILLAGE","to_province_code":"OH","to_postal_code":"44140-1927","to_country_code":"US","to_phone":null,"return_name":"Catalyst Channel Marketing","return_address_1":"701 WHIRLPOOL ST","return_address_2":null,"return_city":"NIAGARA FALLS","return_province_code":"NY","return_postal_code":"14301-1037","return_country_code":"US","return_phone":"1-844-842-8777","package_contents":"documents","description":"Sales Report","value":"1.00","value_currency":"USD","order_id":null,"order_store":null,"package_type":"thick_envelope","size_unit":null,"size_x":0.0,"size_y":0.0,"size_z":0.0,"weight_unit":"lb","weight":1.0,"is_insured":true,"is_signature_requested":false,"postage_type":"usps_priority","carrier":"usps","carrier_tracking_code":"9405536895357014971047","tracking_url":"https://staging.chitchats.com/tracking/1zmxwc94hm","ship_date":"2018-04-25"
@gshaw
gshaw / carrier_wave.rb
Created Aug 14, 2014
CarrierWave initialization file for testing with fixtures and support S3 in staging and production.
View carrier_wave.rb
# NullStorage provider for CarrierWave for use in tests. Doesn't actually
# upload or store files but allows test to pass as if files were stored and
# the use of fixtures.
class NullStorage
attr_reader :uploader
def initialize(uploader)
@uploader = uploader
end
You can’t perform that action at this time.