Skip to content

Instantly share code, notes, and snippets.

View kjohnston's full-sized avatar

Kenny Johnston kjohnston

  • Laguna Niguel, CA
View GitHub Profile
@kjohnston
kjohnston / base_job.rb
Last active March 6, 2023 15:54
Base job class for delayed_job & exception_notification
class BaseJob
# External interface for calling the service
def self.call(object_id, opts={})
if perform_asynchronously?
Delayed::Job.enqueue(EnqueuedJob.new(name, object_id, opts))
else
perform(object_id, opts)
end
end
@kjohnston
kjohnston / gist:9277473
Last active August 29, 2015 13:56
iShowU Pro Settings & Positioning

iShowU Pro Settings & Positioning

I record screencasts to present deliverables and training materials to clients and colleagues and use iShowU Pro to do this. It's a great app at a fair price, but getting the settings dialed-in so that you can produce good quality screencasts that are reasonable file sizes takes some tinkering. This is how I do it.

Configuration

As the app will warn you upon initial launch, you'll need to grant it access to control your computer here:

Security

@kjohnston
kjohnston / s3-public-read
Last active December 31, 2015 19:09
S3 Bucket Policy to make all contents publicly readable.
{
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::socialimprints-development-assets/*"