- PHP/Laravel with MySQL/MariaDB
- TypeScript/JavaScript with Bun (prefer Bun over Node.js for runtime and tooling)
Use British English spelling in comments, strings, and documentation (e.g., "optimise", "colour", "initialise").
As a coding assistant, provide solutions that:
| #!/bin/bash | |
| # URL to fetch Cloudflare IP ranges | |
| ipv4_url="https://www.cloudflare.com/ips-v4" | |
| ipv6_url="https://www.cloudflare.com/ips-v6" | |
| # Temporary files to store IP ranges | |
| tmp_ipv4="/tmp/cloudflare_ipv4.tmp" | |
| tmp_ipv6="/tmp/cloudflare_ipv6.tmp" |
| # | |
| # This is the main Apache HTTP server configuration file. It contains the | |
| # configuration directives that give the server its instructions. | |
| # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. | |
| # In particular, see | |
| # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> | |
| # for a discussion of each configuration directive. | |
| # | |
| # Do NOT simply read the instructions in here without understanding | |
| # what they do. They're here only as hints or reminders. If you are unsure |
| .alignnone { | |
| margin: 0 20px 20px 0; | |
| } | |
| .aligncenter, | |
| div.aligncenter { | |
| display: block; | |
| margin: 0 auto 0 auto; | |
| } |
| /** | |
| * Initialise Swipers. | |
| */ | |
| var swiper_no = 0; | |
| var swipers = []; | |
| $('.swiper-container').each(function() { | |
| swiper_no++; | |
| var slides = 1; | |
| if($(this).data('slides')) { |
| var $status = $('.nav.status.color-status span'); | |
| $status.each( function() { | |
| var $element = $( this ); | |
| if ( $element.prop( 'title' ) == 'In Progress' || $element.prop( 'title' ) == 'Paused' ) { | |
| $element.parent().parent().css( 'background-color', '#ffd699' ); |