To create a 10 GB file: fallocate -l 10G huge_file.dat

...should just set verify_ssl: false or similar. This is only okay-ish for testing something in development. Note that there are services like badssl.com to test against weird SSL...

...case, too. Still, a certificate store is clearer and more versatile. Protip: You can test certificate chains with services like whatsmychaincert.com. Bonus info: when using curl on the command line...

...ROOT/log/production.log' # # * Use RAILS_ROOT as a placeholder for the remote Rails root directory. # * Append ` || test $? =1;` to grep calls in order to avoid exit code 1 (= "nothing found")

Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the site you're about to test is placed behind a...

...login, follow these steps to successfully use ab on it. Open the site to test in the browser of your choice. Do not login yet. Use developer tools to show...

...directory. Next, symlink all packs that are required in production: app/ ... webpack/ packs/ app/ test/ packs_production app -> ../packs/app Now tell Webpacker to use these for production (and staging): # config/webpacker.yml...

...behavior, not give you a safe string in the end (see below). Example def test(input) input.gsub /(f)/ do puts $1 'b' end end >> test('foo') f => "boo"

...Network tab, with throttling simulating a slow connection. You can create large amounts of test data quickly, e.g. inside a single transaction. Resources Read what's new to you, skim...

jeffkreeftmeijer.com

...A lot has changed since. Besides the helpers, it got its own RSpec acceptance testing DSL recently, essentially eating Steak’s functionality and turning it into a complete acceptance testing...

makandra dev
github.com

This jasmine plugin helps with testing DOM manipulation in two ways: It gives you DOM-related matchers like toBeVisible() or toHaveCss(css) It gives you a function to load HTML...

...comes from try to run the tests with a step output. bundle exec parallel_cucumber --test-options "--format=pretty" feature The deprecation message looks like following: Locator Integer:2 for...

github.com

A capybara driver that uses WebKit via QtWebKit.

These tools help you in checking websites globally: DNS Checker This tool allows for global DNS propagation checking. GeoScreenshot

...to organize features in subdirectories, you won't have any problems when running the whole test-suite. Cucumber will automatically load and run features in subdirectories, too. However, running features...

...working on the project don't have to provide the option for every cucumber test run execution...

In Ruby, you can only write environment variables that subprocesses will see. For tests with a Rails application (i.e., that call rails or rake or other binstubbed commands), this...

...method may help you: # Use this method to wrap any system calls to the test application def prepare_environment(&block) Bundler.with_clean_env do # Spring leads to all kinds of...

DevOps Curriculum

...die Dokumentation um offene Fragen zu beantworten Erstelle eine Datenbank, fülle diese mit einigen Testdaten und teste Backup/Restores sowohl mit Point In Time Recovery (PITR) als auch mit Snapshots.

...will not recompile. The digest of the last compilation is cached in tmp/cache/webpacker/last-compilation-digest-test (replace -test with your environment). You can remove that file to force a re-compile...

...callbacks for a particular form screen, but then the model becomes a pain in tests, where all those callbacks just get in the way. Or we have different forms for...

...the model itself stays slim and validations don't get in the way of tests, validations don't get in the way of tests meaning that developers need to be...

trac.nginx.org

...the service and get this error message instead: nginx: [emerg] could not build the test_types_hash, you should increase test_types_hash_bucket_size: 64 nginx: configuration file /etc/nginx/nginx.conf...

Option 1: Use gzip_types *; If you don't care about which MIME type gets the gzip handling, just tell nginx that any MIME type should be gziped...

...SOAP API, you may want to use Savon::SpecHelper to mock requests in your tests as described in their documentation. When sending a message body, the savon mock object requires...

...note: You could use VCR to record your SOAP talk. In my case my tests had to talk to the same service the staging servers talk to, so any recorded...

...the actual expression is always converted to a regular expression. # For expected === actual foo('Test(s)', 'Test(s)') #=> true # For expected.match?(actual) foo('Test(s)', 'Test(s)') #=> false

...mit LUKS. Kopiere eine Datei darauf. Gib das Gerät einem Kollegen der es zum testen entschlüsseln soll Beschäftige dich damit, wie die Full System encryption mit LUKS funktioniert. Installiere eine...

...from that file, if there are any. That should only happen in development, since tests or production environments will fail when trying to compile their assets up front. class ApplicationController...

Working with a self-signed certificate is much easier, when the browser accepts it. Google Chrome Warnings from chrome might...

In CI test runs I noticed that string sorting order changed after switching from a debian-based PostgreSQL docker image to one that is based on Alpine Linux.

...the locale-provider icu which can also handle UTF-8 locales. I have not tested this approch. So either try this or switch back to a debian-based image (e.g...