When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want. There are several keyboard shortcuts available: Ctrl-Shift-E: Split...
...yourself. Do not manipulate package.json yourself. Yarn will do this for you. The dev server If might have noticed that adding webpack made you development server pretty slow. To increase...
...performance, open a separate terminal, and run bin/webpack-dev-server. The dev server will watch all your changes and compile everything automatically in the background. It will also auto-reload your code...
...on WEBrick, put this method into your application controller. def ensure_proper_protocol request.headers['SERVER_SOFTWARE'].andand.include?('WEBrick') || super
...below accordingly. Basic idea We will use the guard-livereload gem as the livereload server (which send updates to the browser), use the livereload-js npm package in the browser...
...to connect to the livereload server, not use rack-livereload any more as this is unnecessarily complex and does not work with many CSP policies. We will configure guard-livereload...
...currently running PG version from your Rails application (e.g. Rails console on your production server), simply do this: ActiveRecord::Base.connection.select_value('SELECT version...
...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...
...request which is not what you want. Instead a blob is created on the server, the file is uploaded and your form receives a generated hidden input field carrying the...
...false. However, this will also disable a ll other routes like update_rails_disk_service_url which you will need. Another solution would be to call a power that returns...
When you require the Ruby debugger to be available from your Rails console (e.g. you want to inspect a method...
There are two ways a logout in SAML can happen: Service Provider (SP) initiated and Identity Provider (IDP) initiated logout. I'll explain how to implement both flows with devise...
...triggers a DELETE /users/sign_out (at least for devise_saml_authenticatable, others might differ) The server generates a SAML LogoutRequest and responds with a redirect the the SingleLogoutService HTTP-Redirect Binding...
Claude can connect to MCP servers to access additional information, like Linear issues or Figma designs. Such MCP servers usually allow doing a lot of different things, from reading to...
In Claude Code, run /mcp. Pick "Show unused connectors". Pick your desired service, e.g. "claude.ai Linear". Pick "Authenticate". Click the link to open in your browser, and confirm...
...erhalten bleiben. Das heißt: http://staticcontent.local.test/httpbin/uuid soll nur mit /uuid an den httpbin Service weitergeleitet werden. Sieh dir dafür genau die Dokumentation zu proxy_pass an. Mache ein systemctl...
...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 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...
...the console, your test may fail after the last step. With unlucky timing the server may receive an AJAX request as the browser tab closes, causing a connection abort when...
...trying to send the response. Since Capybara fails a test if there is a server error this may produce a flaky test. Waiting for pending AJAX requests The following module...
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...
...that lets you define "partials" in HTML without any additional rendering technology on the server or client...
...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...
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...
...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...
We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...
...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')
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-end tests shouldn't: a component's details and edge cases, without a server or a database. You can write a unit spec for a component: create the DOM...
...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...
To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t