Skip to content
ruby scripts for managing app servers - setup, utils and more http://makevoid.com
Ruby HTML Shell Nginx
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
config
lib
old
tmp
.gitignore
README.md
Readme_Edison.md
Readme_miners.md
both.rb
httperf.rb
install.sh
install_rhel.sh
instance.rb
munin.sh
rmagick.sh

README.md

ServTools

ruby scripts for managing app servers:

this repo contains multiple scripts, here's a list with some:

  • install.sh: setups a ruby server

the following scripts are in lib directory

  • sites: setups nginx virtualhost (supported configs: static html, rack, php, fiveserv, ...)
  • checker: checks if the remote page is served correctly by matching a given string
  • pingproxy: pings domain from multiple locations (use it to test your hosting providers / CDN)
  • mysql: backup dbs an upload them to S3
  • mysqlr: restore mysql backups from S3
  • update_libs: checks if all the JS libraries of your projects are updated (es. latest jquery, underscore, ...) [unfinished]
  • utils: ruby helpers to execute and log local and remote commands (ssh)

and more! all the scripts are in lib!

TODO:

USE DOCKER!!!

  • build a script to migrate all env to docker to another server

www-data gets access to git repos

cat /home/www-data/.ssh/id_rsa.pub >> /home/git/.ssh/authorized_keys

[unsafe]:

chown -R www-data:www-data /usr/local/bin/ chown -R www-data:www-data /usr/local/lib/ruby/gems/1.9.1/

  • partitioning script

setup partitions:

1.8T total = 450GB each

/home /opt /www /var/log


TODO:

add mail checks when something bad happens, offer an easy way to edit rules

lsof -iTCP -sTCP:LISTEN -l -n -P

free -h

df -h

inspiration came from botnot: https://github.com/zedshaw/botnot/blob/master/botnot/bot.py#L6, thanks zed

Something went wrong with that request. Please try again.