Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
/var/folders/rb/hp5btz75245484by8qsck__40000gn/T/ruby-build.20221201134326.61792.OWmxIG ~
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 15107575
Connection: keep-alive
Date: Thu, 01 Dec 2022 12:49:40 GMT
Last-Modified: Tue, 01 Nov 2022 16:46:41 GMT
ETag: "2e9edbb4c7d8b93d82a1640394a871fa-2"
Accept-Ranges: bytes
Server: AmazonS3
@SeanSith
SeanSith / backup_sdb.rb
Created August 3, 2021 17:46
Backup AWS SimpleDB
#!/usr/bin/env ruby
require 'bundler/inline'
gemfile do
source "https://rubygems.org"
gem "fog-aws"
gem "yajl-ruby"
end
@SeanSith
SeanSith / update_to_cinc.rb
Last active September 23, 2022 18:22
Update Chef-Client to Cinc-Client using chef_client_updater cookbook
node.override['chef_client']['bin'] = '/usr/bin/cinc-client'
node.override['chef_client']['conf_dir'] = '/etc/cinc'
node.override['chef_client']['log_dir'] = '/var/log/cinc'
node.override['chef_client']['log_file'] = 'client.log'
node.override['chef_client']['cron']['log_file'] = "#{node['chef_client']['log_dir']}/#{node['chef_client']['log_file']}"
node.override['chef_client']['run_path'] = '/var/run/cinc'
node.override['chef_client']['file_backup_path'] = '/var/lib/cinc'
node.override['chef_client']['log_rotation']['postrotate'] = 'systemctl reload cinc-client.service >/dev/null || :'
if node[:packages][:chef]
directory '/etc/cinc' do
@SeanSith
SeanSith / migrate.rb
Created June 30, 2020 14:34
Migrate from Sequel Pro to Sequel Ace
#!/usr/bin/env ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'plist'
end
preferences_file_source = "#{ENV['HOME']}/Library/Preferences/com.sequelpro.SequelPro.plist"
preferences_file_destination = "#{ENV['HOME']}/Library/Containers/com.sequel-ace.sequel-ace/Data/Library/Preferences/com.sequel-ace.sequel-ace.plist"

Keybase proof

I hereby claim:

  • I am seansith on github.
  • I am seansmith (https://keybase.io/seansmith) on keybase.
  • I have a public key ASAchqgfGKRXxKFJ9HOHlkvy3UWwnbtqjn-0-pEvJIlm6Ao

To claim this, I am signing this object:

@SeanSith
SeanSith / docker-compose.yml
Last active April 29, 2022 18:41
Docker-Compose definition for a light Wordpress Stack
# A Docker Compose setup for running most Wordpress environments
#
# Setup:
# 1. Configure wp-config.php to either pull the environment variables in
# services.web.environment or use the same settings.
# 2. Optionally put a database dump in the project root which will get imported
# on first project boot. This will remain persistent, so if you need to wipe
# the database, `docker volume ls` will help you find it and
# `docker volume rm [volume name]` to remove it.
# 3. `docker-compose up`