makandra dev

...path is /etc/ImageMagick/policy.xml Remove/Comment lines after If you need it enabled for an app server, ask your operations team to do that for you...

...those who already own an SSL certificate (e.g. using it in the Apache HTTP Server) and need to feed it to a Tomcat application. The main issue is that you...

...not need to add any intermediate certificate authorities to the keystore. Set up your server.xml You are now ready to use your certificate. Modify your server.xml inside the application directory...

...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`

...bind '0.0.0.0', 3000, { key: localhost_key, cert: localhost_crt, verify_mode: 'none' } start your server as usual, but go to https://localhost:3000 bundle exec rails s Accept the certificate...

...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

Here we cover one specific issue: Once you have started your development Rails server and esbuild with the --watch option (if you used jsbundling-rails to set up, you...

...and Bundler 1.17.3 with https://rubygems.org/ anymore. This is a result of a server certificate on December 5th, 2020. The resulting errors will look like following: TypeError: can't modify...

...certificate for https://index.rubygems.org/versions. Error fetching data: hostname was not match with the server certificate (https://rubygems.org/*) Fix 1: Use docker and gemstash (recommended for makandra employees)

...no longer match. If you see an error like this when deploying to a server, you can remove your old (e.g. RSA based) fingerprints from ~/.ssh/known_hosts: Exception while executing as...

developers.google.com

...pages, so to test it in development, you will have to start your development server with SSL...

awsdocs.s3.amazonaws.com

...aws-credential-file ./aws-credential.txt The output should look something like this: arn:aws:iam::322191361670:server-certificate/www.example.com arn:aws:iam::322191361670:server-certificate/testCert Now you have to upload...

...and includes the server certificate Amazon Resource Name (ARN) and GUID: arn:aws:iam::322191361670:server-certificate/www.example.com-2011 ASCACexampleKEZUQ4K If you got the error message similar to A client error...

...with HTTP headers: jQuery will not set the X-Requested-With header. On your server, requests will not look like AJAX requests (request.xhr? will be false). jquery-ujs will not...

adactio.com

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

...new one. That will take some time and your application should be able to serve files from both storage locations in the meantime. To do that, make store_dir aware...

...app/inputs/grouped_collection_select_input.rb (SimpleForm will pick it up automatically; if it does not, restart your Rails server) and use it in your form with that new :group_by option. Note that this...

...already entered something into the next field before unpoly updates that field with a server response, discarding your changes. The steps I wait for active ajax requests to complete (if...

...but allows SSH, you can tunnel your e-mail connection through a trusted, intermediary server: sudo ssh -i /home/local-user/.ssh/local-user.key -L 143:mail-server.tld:143 remote-user@trusted-server.tld Explanation for the command above: | sudo | Secure...

| ssh -i /home/local-user/.ssh/local-user.key | Private half of your SSH key for the trusted server | | -L 143:mail-server.tld:143 | Forward connections to port 143 on your mail server mail-server.told to port...

When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may cause issues, because some directories will hold too many entries...

makandra dev

...gems and whether an update is available All config variables and their values Capistrano server config $ bundle exec cap staging doctor

...recipe, Capistrano will fail if you deploy to a stage where none of the servers has the role the error complains about, "something" in this case. However, you can hack...

...and tries to call a method that is only available for that group of servers, you'll get another error: `foo.bar' is only run for servers matching {:roles=>:something}, but...

news.ycombinator.com

...shows an approach on how to implement encrypted passwords with the AWS Key Management Service (KMS). For most applications it's enough to use a hashed password with a salt...

...with a public key from KMS (you can store the public key in your server code). In your database store the encrypted hash, the salt, plus some "key ID" that...

Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git repository. Solution 1: HTTP Proxy (this is the preferred fix...

...repo is on github, use this: Install socat Add a ~/.ssh/config on the target server(s) with permission 0600 and this content: Host github.com ssh.github.com User git Hostname ssh.github.com

...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

"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...

Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting them first. It may break horribly for you. This is...

...apt-get install pv Know the location of the dump file on the remote server. We'll use /mnt/dumps/my_project.dump.bz2 in the example below. Find out the size of the (bzipped...