UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.
Hello,
If you reached this page, means you've hit this SSL error when trying to
| if(ARGV.count < 2) | |
| puts "Usage: #{__FILE__} file1.resx file2.resx" | |
| exit -1 | |
| end | |
| if(`gem list`.scan(/nokogiri/).count == 0) | |
| puts "You need to install nokogiri. Type 'gem install nokogiri' at a command prompt" | |
| exit -1 | |
| end |
| # Run through all zip files to get log files | |
| # Process log files => events | |
| # Process events => (event + initial_state) => new_state => to state stream | |
| # | |
| require 'rubygems' | |
| require 'zip' |
| def has_arg(arg) | |
| ARGV.include? arg | |
| end | |
| text = ARGV[0] | |
| lines = text.scan(/.{0,40}(?:\b|$)/).map{|l| l.strip } | |
| lines = (lines[-1] == "" ? lines[0...-1] : lines) | |
| longest = lines.map{|l| l.length}.max | |
| lines.map!{|l| l+ (" " * (longest - l.length))} |
| require 'rubygems' | |
| require 'jira-ruby' | |
| require 'awesome_print' | |
| def get_jira_client() | |
| options = { | |
| :username => 'xxx', | |
| :password => 'xxx', | |
| :site => 'http://jira.xxx:80/',#'http://mydomain.atlassian.net:443/', |
| require 'rubygems' | |
| require 'jira-ruby' | |
| require 'slim' | |
| # args [name, pass, projectid] | |
| def get_jira_client() | |
| options = { | |
| :username => ARGV[0], | |
| :password => ARGV[1], |
UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.
Hello,
If you reached this page, means you've hit this SSL error when trying to
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\Directory\shell\Console2] | |
| @="Console Here" | |
| [HKEY_CLASSES_ROOT\Directory\shell\Console2\command] | |
| @="C:\\ProgramData\\chocolatey\\bin\\Console.exe" | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\Console2] | |
| @="Console Here" | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\Console2\command] | |
| @="C:\\ProgramData\\chocolatey\\bin\\Console.exe" |
| # Example script to collate and reduce size of scanned pdf. Idea taken from Stackoverflow answers | |
| # interleave two pdfs as one | |
| pdftk A=Emma\ front\ half.pdf B=Emma\ back\ half.pdf shuffle A B output Emma.pdf | |
| # convert to postscript | |
| pdf2ps Emma.pdf Emma.ps | |
| # convert back with defined resolution 150 | |
| ps2pdf -dPDFSETTINGS=/screen -dDownsampleColorImages=false -dColorImageResolution=150 -dColorImageDownsampleType=/Bicubic Emma.ps Emma_ps150b.pdf |
| /* knicked the Wait for load script from http://stackoverflow.com/questions/5525071/how-to-wait-until-an-element-exists */ | |
| /* https://gist.github.com/buu700/4200601 */ | |
| (function ($) { | |
| /** | |
| * @function | |
| * @property {object} jQuery plugin which runs handler function once specified element is inserted into the DOM | |
| * @param {function} handler A function to execute at the time when the element is inserted | |
| * @param {bool} shouldRunHandlerOnce Optional: if true, handler is unbound after its first invocation |