...is done, which only exists in jQuery: $.ajax('/foo').done(function(html) { console.debug("The server responded with %s", html); }); There is also then, which all promise libraries have:

...then(function(html) { console.debug("The server responded with %s", html); }); However, .done() and .then() do not behave the same. In particular, if a standard promise callback returns another promise, this...

jetmore.org

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

...with an ncurses interface. It is designed to find space hogs on a remote server where you don’t have an entire graphical setup available, but it is a useful...

makandra dev

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

dev.mysql.com

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

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

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

gnuu.org

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

bugs.launchpad.net

...and could be very dangerous (e.g. if you're logged in to a production server in a terminal that is on another workspace). To prevent the broadcast from affecting other...

...windows, go to Preferences and disable DBus server...

...gemspec, in case you do not want to have a development gem on production servers...

httpd.apache.org

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

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

makandra dev
curl.haxx.se

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

...checks in Thunderbird. Open Edit -> Account settings and select your incoming mail account. Under Server settings uncheck "Check for new messages on startup" and "Check for new messages every X...

Under Advanced, uncheck "Use IDLE command if the server supports it...

...s possible you get this "error" message: *** [err :: example.com] There are no Phusion Passenger-served applications running whose paths begin with '/var/www/example.com'. *** [err :: example.com] This is just because there were...

...no running passenger process for this application on the server which could be restarted. It's not a real error. The application process will start if the first request for...