makandra Curriculum

Work with the stash git stash Learn how to work with a server: git clone git push git fetch git pull Learn to use the tool tig

...with SSH. Otherwise, you would have to send your git credentials to the remote server every time you interact with it. Resources Basic tutorial Proper git config Interactive Git Cheatsheet...

You might use screen or tmux to run a temporary command on a server which continues to run after the SSH session is closed. Consider systemd-run as alternative. It...

...will turn every command in a systemd service unit: # Run `openssl speed` as unit run-benchmark.service $ sudo systemd-run --unit=run-benchmark openssl speed # Query the current status $ systemctl status run-benchmark.service...

...for the given locale. Note that Hyphenopoly is primarily a NodeJS module and targeted at server-side hyphenation, but it can be configured for the client-side as well.

...signed and accepted) SSL certificate for mywebsite.com, forward the traffic to our actual dev server. On linux, this can be achieved with these steps (instructions for Ubuntu): Resolving mywebsite.com to...

...that certificate with "caddy" Install caddy sudo apt install caddy Disable the global caddy service sudo systemctl stop caddy.service sudo systemctl disable caddy.service Create a file named Caddyfile mywebsite.com {

First we export the checks on the nodes we want to monitor: @@nagios_service { “check_unicorns-${::hostname}”: host_name => $::hostname, service_description => ‘Unicorn Status’, check_command => ‘check_unicorn-${::hostname...

...Then we realize the resources on the Nagios server Nagios_service <<| |>> Now it is quite easy to create new monitoring checks with Puppet. With the ease of creating monitoring checks...

docs.ruby-lang.org

...argument that will be the result of that block iteration. The following method will serve as an example in the details below: def example puts yield puts 'done' return 'example...

To capture and log Sentry events locally during development without sending to the server, add this to config/initializers/sentry.rb inside the Sentry.init block: if Rails.env.development? # Use dummy transport to prevent...

...appendix below for available event attributes end DummyTransport prevents actual HTTP transmission to Sentry servers; events are captured locally but not sent background_worker_threads = 0 to disable async processing...

...font files, even unneeded ones, but that consumes only disk space on your application servers. Updating to the latest version of a font is trivial. Yes, fonts are updated, occasionally...

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')

When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user double-clicks on a button, for example. This often leads...

...BY c.relpages DESC; This requires superuser permissions to install the amcheck extension to the server. If you're a makandra customer, we've already added this extension for you.

...Test All Indexes In All Databases? If you have admin permissions on your database servers, you can use this script to check all databases on your server: #!/usr/bin/env bash

makandra dev

...origin requests. It defines under which circumstances a cookie should be sent to the server, putting cookies into three different classes: SameSite=None Send the cookie whenever a request is...

...a very narrow scope Has no separate build process in development. Instead the Rails server directly compiles the asset whenever it renders a javascript_tag, stylesheet_tag or image_tag...

...example project and resources below: What "packs" are How to use the webpack dev server How to add and remove npm packages with yarn How import and export of relative...

...good thing. It's possible to configure this requirement at the web- or proxy server level, where nginx or apache will just redirect every request on http to https. Some...

...application directly on the VM it's running and usually it's the proxy server or webserver that does handles SSL, the port where the application is running is often...

...seen cases in production where such queries consume GBs of memory bringing down our servers. The solution Just use .preload instead. Rails will use separate queries to preload the data...

openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout server.key -out server.crt Explanation req -new Create a new request ... -newkey ... using a new key ...

...Gemfile, make sure to exclude these, if they should not be deployed to the servers. The gems of these groups might not be loaded by rails, however, the deployment process...

...will take longer as the gems will be downloaded and installed to the server. e.g. to exclude the groups cucumber and deploy, add the following to config/deploy/production.rb and config/deploy/staging.rb respectively...

...not allow to recolor the image using CSS. Inline- are unnecessary work for the server and are not cached. Icon-fonts require complicated setup and are unnecessarily large. In times...

...use to describe nontrivial migrations in Rails / ActiveRecord. Note that the techniques below should serve you well for tables with many thousand rows. Once your database tables grows to millions...

...nil:NilClass (NoMethodError) Cache.stderr_path.write(stderr.string) ^^^^^^^ ... rubocop-1.61.0/lib/rubocop/server/socket_reader.rb:27:in `read!': uninitialized constant RuboCop::Server::SocketReader::StringIO (NameError) stderr = StringIO.new ^^^^^^^^ this card might help you. In old versions of rubocop...

Warning after an upgrade, make sure to terminate all running rubocop server processes (ps aux | grep rubocop, then kill the pid...

...monitored. We are experts in Linux and AWS environments, as well as self-hosted server infrastructures. Have a look at makandra operations. Trainee program and makandra curriculum In makandra cards...

...that can help both newcomers and experienced developers in web development and DevOps. It serves as practical support for anyone who wants to expand their technical skills or anyone who...

...maximum number of Passenger workers and Sidekiq worker. If you have a shared database server many possible connections are "expensive", so setting the pool size to a very high number...

...is no good idea (also consider the number of servers you when calculating the total number of possible connections for the shared database server). Blowing up the fail inbox: If...

DevOps Curriculum

...Protokoll baut es auf, auf welchem Port läuft es? Was ist OpenSSH? Was ist ein Server-Fingerprint und wie sehen Fehler beim Abgleich aus? Was ist public key-Authentfizierung, wie...

...konfiguriert man es am Server, wie hinterlegt man öffentliche Schlüssel für Benutzer? Was ist ein Bastion- oder Jump-Host und warum verwendet man das? Wie funktionieren scp und rsync?

You can choose not to care. Since e.g. making JSON requests for HTML services is not supported use of your page, you don't have to support them with...

...Not found error, which is slightly less correct than a 406, but will serve your purpose. Option: Check the format in your actions You can write something like this in...