...to slow or offline, you can also read a gem documentation offline. Start a server with gem server and go to http://0.0.0.0:8808/. Here you will find a list...
"publish_date": { "gte": "2015-01-01" } } } ] } } } Cluster / Nodes / Shards Node ist ein Elasticsearch-Server auf einer Maschine Cluster ist zusammenschluss von Nodes (analog zu einer verteilten SQL Datenbank)
This will not work: params[:post].permit(:subject, :body, :author_ids) In your server log you will see a line: Unpermitted parameters: author_ids You need to say this...
...you require and Rails will use the vendored version of the gem after a server restart. Unfortunately you need to perform some additional steps to marry Rails and the copied...
...script is aware of vendored gems and will scp-copy them to the remoty server. Without Bundler Don't use gem unpack since the gemspec will be missing. Use this...
...takes a significant amount of RAM. It is really ineffective to pay for a server if you need this RAM once a month. Since I don't need to navigate...
Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of your server's project folder, i.e. the parent of releases...
...package management system. This example send an email from from@example.com to to@example.com via the server mail23.example.com with the user from@example.com and password mysupersecurepasswordyouneverget for authentication and require the connection to...
$ swaks -tls --to to@example.com --from from@example.com --auth-user from@example.com --server mail23.example.com Password: mysupersecurepasswordyouneverget === Trying mail23.example.com:25... === Connected to mail23.example.com. <- 220 mail23.example.com ESMTP Exim 4.76 Mon, 04 Nov...
...http with https in the Gist link). connect the clients (aka agents) to the server (aka puppetmaster) following these instructions add pluginsync = true to the [main] section of puppet.conf on...
...the clients and the server #Important sudo all the time! If you connect an agent to the puppetmaster once without using sudo and later try to connect using sudo, you...
...make two requests for every page. The browser will first request /foo, then the server will return a redirect to /foo/ (mind the trailing slash), then the browser makes a...
...retrieve the actual HTML. You can probably fix this by configuring your static web server. What we want is: Accessing /foo should directly return the content of /foo/index.html without a...
...trusted, secure machine only. Usually this is your production environment. Run this on the server (not on your machine) as root.\ Replace your-domain.tld with the domain you request the certificate...
...media to your SSL dealer. The key should never be transfered away from the server...
...the bandwidth internally, you can use netcat and dd like this: On your first server: nc -v -l 55333 > /dev/null On your second server: dd if=/dev/zero bs=1024K count...
...rarely, it can happen when the client is attempting the initial connection to the server. In this case, if your connect_timeout value is set to only a few seconds...
...Aborted_connects'. It will increase by one for each initial connection attempt that the server aborts. You may see reading authorization packet as part of the error message; if so...
We recently had a problem on a Memcache cluster, where one of the servers showed a significantly worse cache hit rate and a lot more evictions. It turned out that...
...the only reason was that the server was running for a few months longer than the others. Some investigation showed this to be a known problem with Memcache: Once your...
YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just like gem server in RubyGems, you can serve gem docs...
...The advantage to YARD’s server is that you don’t need to pre-generate the static docs (with a gem install) before running the server. If you installed your...
...current date in their name, like access.2011-04-20.log, without any need to restart the web server every night (like logrotate does). The last argument above is the rotation time in seconds...
...minutes with a custom shell script. Be advised that in that time frame a server crash (or reboot, if not taken care of) means that those in-memory log files...
...upload the certificate to AWS IAM I get this error: $ aws iam upload-server-certificate --server-certificate-name www.example.com-2013010-2014010 --certificate-body www.example.com.crt --private-key www.example.com.key --certificate-chain www.example.com.ca...
You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias names for hosts so that you can say something like...
...ssh foobar-staging. This is especially helpful for servers whose hostnames are hard to remember or who don't have a DNS record at all (and must be accessed via...
...makandracards.com/makandra/492109-capybara-running-tests-with-headless-chrome. You might also want to get rid of your local VNC server sudo apt remove tightvncserver. Removed support for serial execution of scenarios tagged with @solo. Serial
...are two ways within systemd to manage the fact that you need the gluster service active before mounting the mountpoint. Thus in the past the mount triggered before the gluster...
...service was running and didn't mount again. /etc/fstab You can use the x-systemd.autmount feature which mounts the mountpoint as soon as it's accessed localhost:/shared /gluster/shared glusterfs defaults...
...screen (not strictly necessary, but I had weird clipping issues otherwise). Start a vnc server for your second display with x11vnc -clip xinerama0 -scale 0.8 (or xinerama1 for the second...
...zoom with the scale parameter. Show the screen using vncviewer. Enter localhost as the server. Get accustomed to how this behaves. Mouse movement is a bit weird, because your cursor...
The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the image as soon as the contained Angular expression changes. However...
...blank" image src when the image is empty. As somebody on Stackoverflow writes, //:0 serves this purpose: It adopts the current protocol, omits the hostname and sets the port to...
-b will read cookies from a given file Example The remote server sets a "foo" cookie to value "bar". We tell curl to store them to a...
httpbin.org FALSE / FALSE 0 foo bar To send cookies to a server, use the -b switch. This URL will render any cookies it received: $ curl -b /tmp/cookies...
...have a piece of code that tries to send a request to a remote server. Now the server is temporarily not available and raises an exception. In order to re...
...compiled to static HTML and CSS, so no need to install anything on your server. If you receive an error launching the preview server (getaddrinfo: Name or service not known...
...SocketError)), just put this into the config/site.rb: configuration.preview_server_host = "localhost...