makandra dev
github.com

...just the first few letters of a command, e.g. geordi rs or geordi dev[server] command dependencies, e.g. geordi rspec invokes geordi bundle-install (which bundles only if needed)

...update by pulling/pushing/merging and deploying just as our workflow is devserver: boot a development server Rails-version-agnostic console: open a local Rails console Rails-version-agnostic, or remotely, e.g...

...project wide file search. ALE (Asynchronous Linting Engine) On the fly linter and language server client for vim. (Note that neovim has LSP support built-in). vim-airline

Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state of a certain service: service and systemctl: service manages System...

systemctl controls the state of the systemd system and service manager. It is backwards compatible to System V and includes the System V services Therefore I prefer...

When your site is mapped into the URL-space of another server using mod_proxy, ProxyPass and ProxyPassReverse, all requests in your Apache logs are logged with the IP address...

...of the proxying server. The IP address of the original client doing the request is not logged, making it difficult to trace problems and run statistics. Short answer

...second statement is really the next one which would get executed by the MySQL server. Example: you've executed drop database foobar; and drop database blubber; in a row on...

...both MySQL server of a master/master setup. It's not guaranteed that these two statements follow each other in the binlog. If the binlog e.g. looks like this: # simplified, that...

"Whenever" works just like "craken", by putting your rake tasks into the server's cron table. Everything seems to work just like we need it. Installation for new...

...not use a :cron role, but instead default to run cronjobs on the :db server. That's just fine for us. For Capistrano 3 set :application, 'PROJECT_NAME' # might be...

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when the connection is unexpectly severed on the remote side. E.g...

...if someone would disconnect a network cable from the server you're connected to, no client would notice. It would simply look like nothing is being sent. You can detect...

...nokogiri versions with gem uninstall nokogiri and install nokogiri again. Fixing the issue on servers However, on our servers this probably will not work. On the server, gems are stored...

...What you want to do instead is bundle pristine nokogiri and restart the application servers (e.g. b cap passenger:restart) This should install the right nokogiri version and make the...

If you get one of this errors: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ( ): found character that cannot start any token while scanning for the...

...Error: Could not retrieve catalog; skipping run Error: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?' for nil:NilClass at /etc/puppet/environments/production/manifests/nodes.pp:1 on node...

...const smp = new SpeedMeasurePlugin() const config = environment.toWebpackConfig() module.exports = smp.wrap(config) Restart your webpack dev server, or explicitly compile your assets. Check your terminal for extra output like this:

...the dev server, make changes and inspect the recompile response. SMP metrics will be included upon every compile, so you can see which modules or files your recompile hit.

github.com

bundle outdated compares the versions of all gem dependencies against the gem server Get Info About Your Ruby Gems Environment gem environment Mocking Requests With Partial URIs Using...

...database active_type_test;' -U postgres with an error psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix...

...minidusen_test;' with an error ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) The command "mysql -e 'create database IF NOT EXISTS minidusen_test...

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like Timecop, the browser controlled by Selenium will still see the...

Resque comes with its own dashboard (Resque server) that you can mount inside your Rails 3 application with #config/routes.rb: require 'resque/server' My::Application.routes.draw do # ... mount Resque::Server => '/resque' end

...mount AuthenticatingResqueServer => '/resque' end Put a authenticating_resque_server.rb into config/initializers: require 'resque/server' class AuthenticatingResqueServer < Resque::Server class ClearanceAuthentication def initialize(app) @app = app end def call(env) @request = ActionDispatch::Request.new(env...

...instance and can have multiple threads, that handle the incoming requests. Example: A Puma server with 2 workers and 1 thread each can handle 2 request in parallel. A third...

...in parallel, but once one thread is blocked, another can continue. Example: A Puma server with 1 worker and 2 threads can handle 2 requests. A third request has to...

...the case, then you can try to deprioritize the ipv6 connection to the rubygems server, as described here. To do so, simply add "precedence 2a04:4e42::0/32 5" to the...

...a database console, run SET GLOBAL query_cache_type=OFF; and restart your rails server. You can also disable the cache on a per query basis by saying

...integration test docker container and connect with it apt update apt-get install openssh-server -y apt-get install vim vim /etc/ssh/sshd_config # Edit `PermitRootLogin yes` and `GatewayPorts yes`

Installing gems on a server that has no access to the internet (especially rubygems.org) requires to bundle the gems into the repository itself. This requires to adjust the bundle config...

makandra dev

To change RAM size, VDISK size or VCPU count of an openstack instance you have to use nova resize. You...

...Firewall Regel, dass der andere Container diesen Port erreichen kann. Installiere SSH auf beiden Servern. Erstelle eine Firewall Regel, dass dein Host System den Port erreichen kann. Besprich zusammen mit...

...is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443 Supported Server Cipher(s): Failed SSLv3 256 bits ECDHE-RSA-AES256...

...bits ECDHE-ECDSA-AES256-SHA384 Rejected SSLv3 256 bits ECDHE-RSA-AES256-SHA ... Prefered Server Cipher(s): TLSv1 128 bits ECDHE-RSA-AES128-SHA SSL Certificate: Version: 2 Serial Number...

adactio.com

...type, inputmode and autocomplete – including a live preview for iOS and Android! It also serves as a nice reference for available values...

java.runtime.name=OpenJDK Runtime Environment file.encoding=UTF-8 java.vm.name=OpenJDK 64-Bit Server VM java.vendor.version=Temurin-17.0.6+10 java.vendor.url.bug=https\://github.com/adoptium/adoptium-support/issues java.io.tmpdir=/tmp catalina.home=/tmp/tomcat.8080.11647654595355715119 java.version=17.0.6 user.dir=/