...puppet you can do the following: Add a new section to /etc/puppetlabs/puppet/puppet.conf on the server that should apply the environment. It usually looks like this: [main] < some stuff >
...application you often need to move data between the client (HTML, Javascript) and the server (Ruby, Rails). Step 1: Moving HTML snippets Add a find-as-you-type search to...
In this step, the rendering of the search results should happen on the server. So the client is pulling snippets of HTML from the server. For the part of...
...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...
...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...
...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...
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...
...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...
Uninstall everything related to MySQL 5.7 with apt remove mysql-client mysql-server libmysqlclient-dev mysql-common Check if you removed everything using dpkg -l | grep mysql
...and "Ubuntu Wily" (assuming Xenial is not yet provided) Run apt-cache policy mysql-server If this shows a 5.6 version, continue. If not, check your /etc/apt/sources.list.d/mysql.list. It should look...
...gem install ruby-debug (Ruby 1.8) or gem install debugger (Ruby 1.9) Start your server with script/server --debugger Set a breakpoint by invoking debugger anywhere in your code
...the page loading will seem to "hang". Switch to the shell you started the server with. That shell will be running an irb session where you can step through the...
...version of net-ssh which is used by Capistrano to connect to your remote servers. From time to time, crypto ciphers used by SSH are removed (on servers) because of...
...with such an old cipher, you will see a error like that on your server: fatal: Unable to negotiate with 1.2.3.4 port 52296: no matching cipher found. Their offer: aes256...
...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...
If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with older SSL/TLS versions. You might get an error like: OpenSSL...
...SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=unknown state SSL Server Test This SSL Server Test can help finding out which SSL/TLS versions the server can handle...
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...
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...
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
...adding gems, it starts to take really long to start up, be it the server, console or just running a single spec. Zeus is smart, you don’t have to...
...do is create a JSON config file via zeus init and then start the server zeus start. After that, you’re ready to go, all you need to do is...
...Aufgaben mit einzelnen Schritten werden in Scripts abgelegt (Bash, Python, Ruby, Go) Konfiguration von Servern verwaltet man mit Configuration Management (Ansible, Puppet, Chef, Saltstack) Cloud Infrastukturen provisioniert man mit Infrastructure...
Connect to your IMAP server. If you have SSL enabled: openssl s_client -connect your-server:993 if your server supports STARTTLS: openssl s_client -starttls imap -connect your-server...
...log into IMAP, send the following string (incl. "01"!): 01 LOGIN user@domani.io $password The server should return something like: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR ... 01 OK Logged in
...a directory index when you access http://yourpage.com/system/attachments. You can configure your apache server to expire file-URLs after some time, so they are only available as long as...
...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...