Skip to content

Instantly share code, notes, and snippets.

View robsimpsondev's full-sized avatar

Rob Simpson robsimpsondev

View GitHub Profile
@robsimpsondev
robsimpsondev / pbcopy.rb
Created May 10, 2023 15:22
Ruby copy to clipboard (macOS)
def pbcopy(input)
str = input.to_s
IO.popen('pbcopy', 'w') { |f| f << str }
str
end

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@robsimpsondev
robsimpsondev / rfluff
Last active February 2, 2021 17:35 — forked from andynu/rfluff
Find all those TODO/FIXME/HACK/etc.
#!/usr/bin/ruby
#
# gather a few statistics and find all flagged comments
#
# Usage:
# rfluff [-qf] [tag] [tag] ...
#
# -qf outputs a vim compatible quickfix format, otherwise
# the output is human readable