Skip to content

Instantly share code, notes, and snippets.

View GabrieleCalarota's full-sized avatar

GabrieleCalarota GabrieleCalarota

View GitHub Profile
@mataki
mataki / heroku_autoscalling.rb
Created December 2, 2010 06:33
Auto scalling dynos on heroku using NewRelic
=begin
Need to install gems heroku, newrelic_rpm
$ gem install heroku newrelic_rpm
Set your apps setting
app_name : heroku's app_name of auto scaling
license_key : NewRelic api key. You can get heroku's NewRelic admin console. "App setting" and "Agent configuration"
execute with cron every minutes
$ ruby ./adjust_dynos_with_newrelic.rb
from socket import *
sockets = {}
s = socket()
s.bind(('', 1234))
s.listen()
ns, na = s.accept()
sockets[na] = ns
@gspncr
gspncr / _webinar-links.md
Last active December 28, 2022 16:02
new relic x k6 test