Skip to content

Instantly share code, notes, and snippets.

View shyamster's full-sized avatar

Shyam Subramanyan shyamster

  • San Francisco Bay Area
View GitHub Profile
@darconeous
darconeous / rect-starlink-cable-hack.md
Last active March 22, 2024 14:45
Hacking the Rectangular Starlink Dishy Cable
@andrew
andrew / app.rake
Created May 23, 2015 15:28
Rake task to restart web dynos over a rolling 30 seconds window
namespace :app do
desc 'restart web dynos over a rolling 30 seconds window'
task restart: :environment do
require 'platform-api'
heroku = PlatformAPI.connect_oauth(ENV['PLATFORM_API_TOKEN'])
dynos = heroku.dyno.list(ENV['APP_NAME']).select{|d| d['name'].match(/^web/) }
dynos.each { |d| heroku.dyno.restart(ENV['APP_NAME'], d['name']); sleep 30 }
end
end