https://yandextank.readthedocs.io/en/latest/tutorial.html
запуск командой
docker run \
-v $(pwd):/var/loadtest \
--net host \
-it direvius/yandex-tank
https://yandextank.readthedocs.io/en/latest/tutorial.html
запуск командой
docker run \
-v $(pwd):/var/loadtest \
--net host \
-it direvius/yandex-tank
Step-by-step debugging and stack navigation for JRuby code.
Problem: the common tools byebug and pry-byebug are MRI-only.
Force JRuby to run in fully interpreted mode:
(otherwise next would behave like step)
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
This is the source for the scripts discussed in https://robots.thoughtbot.com/improving-user-experience-with-shell-scripts
Both scripts are in the bin/ directory of the repo that contains all the markdown documents for blog posts.
Users run bin/server and everything is automatically set up for them to view a local preview of the blog.
bin/server-setup is a dependency of bin/server and is never run directly by users.
Maitre-d is the name of the "blog engine" discussed in the article.
| rvm: | |
| - 2.1.3 | |
| env: | |
| global: | |
| - DATABASE_URL=postgres://postgres@localhost/app | |
| matrix: | |
| - BUILD_CMD='rspec' | |
| - BUILD_CMD='rake assets:precompile RAILS_ENV=production' | |
| - BUILD_CMD='rake db:setup RAILS_ENV=development' |
| # It requires ACK - http://betterthangrep.com/ | |
| task :find_unused_images do | |
| images = Dir.glob('app/assets/images/**/*') | |
| images_to_delete = [] | |
| images.each do |image| | |
| unless File.directory?(image) | |
| # print "\nChecking #{image}..." | |
| print '.' | |
| result = `/Users/stereodenis/bin/ack -1 --type-set=mytype=.rb,.css,.scss,.haml,.coffee,.js,.erb,.en,.th,.html,.slim,.less,.sass #{File.basename(image)}` |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
| Ruby 2.1.0 in Production: known bugs and patches | |
| Last week, we upgraded the github.com rails app to ruby 2.1.0 in production. | |
| While testing the new build for rollout, we ran into a number of bugs. Most of | |
| these have been fixed on trunk already, but I've documented them below to help | |
| anyone else who might be testing ruby 2.1 in production. | |
| @naruse I think we should backport these patches to the ruby_2_1 branch and | |
| release 2.1.1 sooner rather than later, as some of the bugs are quite critical. | |
| I'm happy to offer any assistance I can to expedite this process. |
Slightly disorganized but reasonably complete notes on the algorithms, strategies and optimizations of the Akka Cluster implementation. Could use a lot more links and context etc., but was just written for my own understanding. Might be expanded later.
Links to papers and talks that have inspired the implementation can be found on the 10 last pages of this presentation.
This is the Gossip state representation: