List Code
CSSnowflakes simple snowflakes non-JS snowflakes for your website
i like this one as its a nice and simple copy and paste effect that just covers the whole site and does not get in the way of other things like some other scripts i have come across.
reload window automatically with javascript
script to reload the window automatically the same as pressing the reload button on the browser so there may still be cache issues when reloading this you can change the 5000 to another value to chan..
custom modal nice and easy
a nice and simple modal custom made
Create a React App with Vite and TypeScript on Windows
This assumes that you already have the latest node installed, i had some issues as i had an old version installed and had to manually delete it. You can check the version of node by typing node..
🔗How to add a Link in HTML?
How to add a link in your HTML and other random things about html links!
wp simple blocks plugin
Just saving this here for later testing: This is just AI generated crap that does not work, ignore it... ;) Absolutely, let’s start fresh with a simple WordPress plugin that loads a si..
Locate a DIV and CLASS and create an IMAGE element using JAVASCRIPT
I had this weird request the other day, well today to replace an image thumbnail that was generated by an aspx script, but the link was from youtube and the list was not auto loading the thumbnail.&nb..
change slick slides to adaptive height
just a code snippit at the moment need to add a working example here
Making an image responsive using css using background cover
the following css will make an image display 100% its size and keep its aspect ratio if the screen size or element size gets smaller than the containing image. you should be able to drag the edge of t..
Using accent-color to change check box color
So apparently accent color is a new(ish) property or maybe its just new to me. You can use this to change or select things like the background color on input check boxes. You can see in the exampl..
modal no libs just js and css
modal with no js libs just css html and a bit of js... yay?
sticky table headers
nice looking tables that have sticky headers, credits in link below. seems to be all css as well, nice! commented out the global stuff
blocking all ips in a range
block all ips in a range // The IP prefixes you want to block. Add a dot at the end.$ip_block = ['47.79.']; foreach ($ip_block as $ip_block_val) { // Check if the user's IP address begins ..
list all network connections linux
list all of the network connections netstat -a list a summary of the connections ss --summary list connections with count netstat -an|grep ESTABLISHED
Changing the Background in CSS
Some of the properties of using a CSS background on a div, how to set the background color, opacity and also using an image as a background with CSS. ⌚Timestamps🏹 0:15 CSS Backgroun..
Striped Background Gradients in CSS + HTML
Testing out Stacked Linear Gradient background to create striped gradients in CSS and HTML.
override the hero image background on this page
this is just cos im lazy and want to override the image here ^^^
CSS 4 box custom grid row - New Version - July 2025
I fixed this one a little bit so that the boxes actually fit within the element width, as before they were kinda sticking out abit too much. Old Version.
matrix test video no sound mp4
Link https://i.imgur.com/uotAQao.mp4 Preview
Content Editable
content editable tags with also making the style sheet editable as well as block if i dont target the style by an ID then it just makes all style tags on the page as display block which is a bit anno..
block ip address ranges on ubuntu linux with UFW
sudo ufw deny from 203.0.113.0/24
check and block connections script
a safe diagnostic script that helps you check and analyze the connections. ⚠️ Why Automatic Blocking is a Bad Idea You could lock yourself out: An automated script ..
blocking ip range with ufw
You can block an entire IP range using CIDR (Classless Inter-Domain Routing) notation with ufw. To block all addresses under 57.141.2.x, you'd specify the network as 57.141.2.0/24.1 ..
SQLite - load a game from games, that has not been processed - AI
Im just going add some of these here as they might be useful in the future. Request: Can you write a sqlite query to select the latest game from this table using insdate as the datetime structure ..
a reusable function that extracts the Gemini API functionality
Here's a reusable function that extracts the Gemini API functionality:The function generateWithGemini() accepts: $prompt - The text prompt to send to the API $apiKey - Your Gemini API key $model ..
Fatal error: Uncaught Error: Call to undefined function mb_strlen()
this wasted an hour!!! grr sudo apt install php7.4-mbstring causes an error for php lite admin where it just displays blank
PHP FIX Fatal error: Uncaught Error: Call to undefined function curl_init()
Caused by Missing Curl Extention. sudo apt-get install php-curl restart nginx sudo service nginx restart
check connetions in linux every 10 seconds loop
just add this to a sh file and it will show the connections every 10 seconds. e.g. ./checkconns.sh354351325313303390386350365300364282263208271408338320
php error feed errors: XML or PCRE extensions not loaded!
1. Install/Enable the PHP XML Extension: Linux (Debian/Ubuntu): Open your terminal and run: Code ..
bootstrap form basic - with card wrap
a nice simple bootstrap form layout example template, + added a card to wrap it
add font smoothing and antialiased via css
this seems to fix some issues with text rendering if you are getting jaggy edges on fonts.
