Skip to content

Instantly share code, notes, and snippets.

View jxmot's full-sized avatar

J.Motyl jxmot

View GitHub Profile
@jxmot
jxmot / README.md
Created April 8, 2022 17:59
CSS Caching - Methods for defeating it....

Caching Ugh!

Every so ofteh is seems that using the right browser, and the right server will not load recently changed CSS files. Sometimes the only way to prove over-caching is happening is to examine server logs and HTTP traffic.

Potential Solutions

After a measurable amount of searching the web, and reading discussion or tutorials on the subject I have realized that all of the solutions require some additional editing of your files to trick and bypass the caching.

For example, I've seen this a lot -

@jxmot
jxmot / ip_isvalid.php
Last active February 19, 2022 22:25
IP Address Validator - PHP & JSON
<?php
/*
ip_isvalid() - Checks an IP address against a list of
valid IP addresses.
Params:
$_ip - can be `null` or an IP address. If `null`
then `REMADDR` will be checked.
Returns: An object, where `r` is either `true` (the
@jxmot
jxmot / show_wifi_clients.md
Created May 7, 2018 15:28
Tessel 2 & OpenWRT - Show AP WiFi Clients

Tessel 2 & OpenWRT - Show AP WiFi Clients

The show_wifi_clients.sh shell script found here is a modified version of what I found at the OpenWRT Wireless FAQ.

My intent is to use it on a Tessel 2 along with some modifications its firmware. The firmware mods (not shown here) will exec the script to obtain a JSON formatted list of stations that are attached to the Tessel's access point.

The differences are -

  • Can optionally create output in JSON
    • Includes the time stamp found in the DHCP lease file
  • Minor changes made to expressions