httpie.org

...consists of a single http command designed for painless debugging and interaction with HTTP servers, RESTful APIs, and web services It easy to use and has very nice defaults and...

DevOps Curriculum

...und -abbau mit allen Paketen beschreiben Du kennst Port-Nummern und Protokolle der häufigsten Services auswendig: SSH, DNS, HTTP, HTTPS, SMTP, POP3, IMAP, MySQL, PostgreSQL, Redis Wie kann ich prüfen...

...makandra.de aufbauen und die Datei robots.txt abrufen (Siehe https://richj.co/talking-http-1.1/) Du weisst, was dieser Server-Header bedeutet: Strict-Transport-Security: max-age=31536000 IPv6 Wie werden MAC Adressen bei...

When you require the Ruby debugger to be available from your Rails console (e.g. you want to inspect a method...

Your development server is usually running on an insecure HTTP connection which is perfectly fine for development. If you need your local dev server to be accessible via HTTPS for...

...to do this again in a month or a year. Next, start your application server for HTTPS. For a Rails application with Puma: bin/rails server -b 'ssl://0.0.0.0:3000?key...

github.com

gem 'capistrano-passenger', require: false Add to your Capfile: require 'capistrano/passenger' Declare which server role should be restarted (optional). Usually passenger tries to restart all servers with the app...

...role. If you have dedicated Sidekiq servers with the app role, adjust the passenger_roles setting to exclude them. set :passenger_roles, :app # This is the default Remove any homegrown...

...can churn wildly A big drawback of db/structure.sql is that different developer PCs or servers may create slightly different SQL output. Since this file is rewritten with every migration run...

...Possible reasons for this churn include: Two developers use different versions of the database server (e.g. PostgreSQL 16 vs. 17). Two developers use the same version of the database server...

When running Selenium features with parallel_tests, some browser-server interaction might take longer than usual and the impatient Capybara will not wait enough to see results. Put the attached...

...always is to prevent long-running queries in the first place, automatic timeouts can serve as a safety net to terminate problematic queries automatically if a set time limit is...

...both databases offer a variable to limit the execution time of queries. While they serve similar purposes they do have some differences in behavior and implementation. PostgreSQL Timeout Type: statement...

...send a default ETag by hashing the response body. While this still requires the server to re-render the view for unchanged content, you don't need to send unchanged...

...Network infrastructure may mutate your ETag I recommend to deploy your app to a server and see if you get the same ETag for two responses to the same URL...

matthewphillips.info

...that lets you define "partials" in HTML without any additional rendering technology on the server or client...

makandra Curriculum

Rubber ducking: not just a funny phrase Debugging in Ruby Note Running your server as part of a single combined terminal with the bin/dev command makes Ruby debugging harder...

...To work around this, you should start your web server in a separate terminal as described above. If you are using terminator, bin/term is the easiest way to to achieve...

We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...

github.com

...alternative to net/http and shares many concepts with WebMock. You can fake a remote server response like this: stub_request(:get, 'http://host/api').to_return(:body => 'fake body')

...install a modern libvips version using our PPA. If you're hosting on makandra servers these packages have already been installed on your application servers. RubyGem In your Ruby code...

...delay (5 seconds in the example), the component makes a request to /foo. The server is expected to respond with HTML containing an element with the same [id] (news in...

The component parses the server response (using DOMParser) and extracts the element with the matching [id] attribute. The component replaces the component with the matching element from the...

If a users password for https://monitor.makandra.de/ is unknown one can set it like this: sudo python /opt/graphite/webapp/graphite/manage.py changepassword ${USERNAME...

To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t

...esbuild.config.js: external: ['*.ttf'], During the next steps you have to make sure that sprockets serves them correctly and rewrites the paths if necessary. Prepare Sprockets to serve the assets bundled...

...tag and javascript_link_tag to match the new pack names. start the development server with the command bin/dev and check that everything works and looks good. Finish

When your public-facing application has a longer downtime for server maintenance or long migrations, it's nice to setup a maintenance page to inform your users. When delivering the...

...for maintenance pages The best HTTP status code for your maintenance page is "503 Service Unavailable": The server is currently unable to handle the request due to a temporary overloading...

makandra Operations

You can use wscat: sudo apt-get install node-ws # wscat -c ws://echo.websocket.org connected (press CTRL+C to quit...

Unless you changed the default, this will be 16 MB: mysql> SHOW VARIABLES WHERE Variable_name="max_allowed_packet"; +--------------------+----------+

tools.ietf.org

In case you're wondering, when concat-ing server certificate and intermediate certificates, the server certificate comes first. RFC 4346: certificate_list This is a sequence (chain) of X.509v3 certificates...

ng-newsletter.com

Search engines, such as Google and Bing are engineered to crawl static web pages, not javascript-heavy, client-side apps...

makandra dev

...sometimes outside of our control. For example, on one of our bigger projects, our servers are on a denylist for all of Microsoft's cloud e-mail (like @outlook.com) for...

...were rejected. We then started to send out e-mails via Amazon's SES service, only to discover that we were now blocked by several German providers like @web.de.