nginx.org

...proxy_hide_header in different contexts: Syntax: proxy_hide_header field; Default: — Context: http, server, location Source But if you use it in multiple contexts only the "lowest" occurrences are...

So if you specify it in the server and location context (even if you hide different header) only the proxy_hide_header in the location block are used.

blog.phusion.nl

Interesting approach to caching responses directly in the HTTP server, based on the value of an individual cookie. No word yet how to force cache-invalidation...

makandra Curriculum

You can explain what problem Unpoly solves: SPA-like navigation and interactions on a server-rendered app, with very little JavaScript. You can explain how a fragment update works...

...Rails ships with Hotwire (Turbo and Stimulus) for the same job: updating fragments of a server-rendered page without full reloads. Turbo Drive and Turbo Frames correspond roughly to Unpoly...

youtube.com

...fast without using a lot of Javascript (most of Basecamp still lives on the server). The two tricks they used are PJAX and Russian Doll Caching...

whatsmydns.net

whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP Address and other DNS information against a selection of random...

...name servers around the world. This is especially useful to check the current state of DNS propagation after making changes to your domains zones...

robots.thoughtbot.com

One of many useful techniques when your test suite needs to talk to a remote API.

...in builder mode. Learning goals You can explain why a file in a publicly served directory is not protected, even when no page links to it. You can explain the...

...two common strategies for private attachments — an unguessable path served directly by the web server, and delivery through a controller action that checks authorization — and their trade-offs in server...

...can explain what a relational database is and how an application talks to it (server, client, credentials, a console). You can query data with SQL — selecting, filtering, sorting, limiting, grouping...

...Ask your mentor for a dump of the staging database — trainees don't get server access. Then import it into your local database; there is a geordi task to help...

...the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.35 MySQL Community Server (GPL) Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and...

sysadmincasts.com

Like Railscasts or Ruby Tapas, but for Linux.

unixwiz.net

Note - This is not a tutorial on setup or configuration of Secure Shell, but is an overview of technology which...

singlepageappbook.com

Great look at the tradeoffs between progressive enhancement with jQuery or similiar, vs. client-side views.

jsfiddle.net

When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself. Here we build a simple SVG image and wrap it into...

...attached JSFiddle for an example. Ruby If you like to do it on the server, here is some Ruby for you: def svg_uri(text) svg = <<~SVG #{text} SVG

Insert into ~/.bashrc and reload afterwards: source ~/.bashrc PS1='${debian_chroot:+($debian_chroot)}\[\033[41;33m\]\u@\h\[\033[00m...

...instead of through global selectors. You can let a component fetch HTML from the server and update its own part of the page. You can register clean-up for a...

...MDN; how helpers like compiler() notice new elements 📄 Using the Fetch API — MDN; loading server HTML into a component without a page load Exercises Refactor movie counter Refactor your movie...

github.com

...config the HTML screenshot will reference assets in the same location where your development server usually provides them. Make sure to add this to config/environments/test.rb # Do not generate digests for...

set :assets_roles, %i[webpack] # Give the webpack role to a single server (see code block below) set :assets_prefix, 'packs' # Assets are located in /packs/

...related to Webpacker, but a nice thing Give the webpack role to a single server: # config/deploy/production.rb (analog to config/deploy/staging.rb) ... server ' ', user: ' ', roles: %w(... webpack) Make sure to read as well...

...nil:NilClass (NoMethodError) Cache.stderr_path.write(stderr.string) ^^^^^^^ ... rubocop-1.61.0/lib/rubocop/server/socket_reader.rb:27:in `read!': uninitialized constant RuboCop::Server::SocketReader::StringIO (NameError) stderr = StringIO.new ^^^^^^^^ this card might help you. In old versions of rubocop...

Warning after an upgrade, make sure to terminate all running rubocop server processes (ps aux | grep rubocop, then kill the pid...

I recently ran into this issue when processing a massive backlog of documents. The server completely stalled, sometimes taking up to 30 minutes for a single page. It turned out...

...of the image junk, the deskew algorithm can safely remain enabled without bringing the server to its knees. It straightens skewed scans and preserves the OCR quality. ocrStrategy: auto vs...

mock.isssues.com

...course of development you may need to mock HTTP responses. This is a simple service to return various HTTP responses...

You need to install the following packages before you can build the Nokogiri gem: sudo apt-get install libxml2-dev...

Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done in a migration because it takes a long time.

...you may have been successful with this on your development machine or the staging server, keep in mind that production machines often hold a lot more records. Using all may...

makandra dev

This is for people recovering from Subversion. Get an existing from the server for the first time git clone git@example.com:repositoryname See what's changed git status Check in locally...

...git commit -m "good description" Push local commits to the server git push Get and merge updates from the server git pull Stage a file for the next local commit...

makandra dev

...Capybara will wait for a short time before raising NoSuchElementError. This is sufficient for basic, server-rendered application. However, as frontends become more complex (more JavaScript, AJAX requests, animations), race...