Skip to content

Instantly share code, notes, and snippets.

View thecwlzone's full-sized avatar

Christopher W Lehman thecwlzone

View GitHub Profile
@thecwlzone
thecwlzone / convert_images_for_web.rb
Created February 17, 2020 21:00
Use MiniMagick gem to reduce photo image sizes for use in web pages
#!/usr/bin/env ruby
# Photos from phones are usually very large (MegaBytes), so
# use MiniMagick to automate a file size reduction suitable for
# display as an image on a web page.
# References:
# https://github.com/minimagick/minimagick
# https://www.rubyguides.com/2018/12/minimagick-gem/
require "mini_magick"
@thecwlzone
thecwlzone / rally_rest_api_gem_release_example.rb
Created December 4, 2012 23:02
rally_rest_api - Collect stories, tasks and URLs from a release
#!/bin/env ruby
require 'rubygems'
require 'rally_rest_api'
# Login to the Rally App
rally = RallyRestAPI.new(:base_url =>
"https://RALLY_URL",
:username => "RALLY_LOGIN",
:password => "RALLY_PASSWORD")
@thecwlzone
thecwlzone / rally_rest_api_gem_iteration_example.rb
Created December 3, 2012 21:11
rally_rest_api - Collect stories, tasks and URLs from an iteration
#!/bin/env ruby
require 'rubygems'
require 'rally_rest_api'
# Login to the Rally App
rally = RallyRestAPI.new(:base_url =>
"https://RALLY_URL",
:username => "RALLY_LOGIN",
:password => "RALLY_PASSWORD")