Skip to content

Instantly share code, notes, and snippets.

View I3rixon's full-sized avatar

Alexander UW5EMC I3rixon

View GitHub Profile
@I3rixon
I3rixon / water_fall.js
Created April 16, 2025 18:29
WebSDR: Pretty Colors for Waterfall Display
(() => {
const svgFilter = `
<svg xmlns="http://www.w3.org/2000/svg" style="position:absolute;width:0;height:0">
<filter id="svgGradientMap">
<feColorMatrix type="saturate" values="0" />
<feComponentTransfer color-interpolation-filters="sRGB">
<feFuncR type="table" tableValues="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.06,0.11,0.17,0.22,0.28,0.33,0.39,0.44,0.5,0.56,0.61,0.67,0.72,0.78,0.83,0.89,0.94,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0.99,0.99,0.98,0.98,0.97,0.97,0.96,0.96,0.96"/>
<feFuncG type="table" tableValues="0,0.01,0.02,0.04,0.05,0.06,0.07,0.08,0.09,0.11,0.12,0.13,0.14,0.15,0.16,0.18,0.19,0.2,0.21,0.22,0.24,0.25,0.26,0.27,0.28,0.32,0.35,0.39,0.42,0.46,0.49,0.53,0.56,0.6,0.64,0.67,0.71,0.74,0.78,0.81,0.85,0.88,0.92,0.9,0.88,0.86,0.84,0.82,0.8,0.78,0.76,0.75,0.73,0.71,0.69,0.67,0.65,0.63,0.61,0.59,0.57,0.55,0.54,0.52,0.5,0.48,0.46,0.44,0.42,0.4,0.38,0.36,0.34,0.32,0.31,0.29,0.27,0.25,0.23,0.21,0.19,0.17,0.15,
@I3rixon
I3rixon / ua_call.js
Last active February 11, 2025 15:25
UA callsigns search on webpage via Console
// regex for Ukrainian callsigns, including EM and EO
const callsignPattern = /(U[R-Z]|E[M-O])\d+[A-Z]{1,4}/g;
// Get the text content of the entire page
const pageContent = document.documentElement.innerText;
// Find all matches of the pattern
const matches = pageContent.match(callsignPattern);
// Filter for unique matches
@I3rixon
I3rixon / functions.php
Created January 19, 2024 10:19 — forked from lukecav/functions.php
Enable revisions on products in WooCommerce
add_filter( 'woocommerce_register_post_type_product', 'wc_modify_product_post_type' );
function wc_modify_product_post_type( $args ) {
$args['supports'][] = 'revisions';
return $args;
}
@I3rixon
I3rixon / git_arch.sh
Created August 7, 2023 08:58
git archive changes
git archive -o update.zip HEAD $(git diff --name-only a0f90bbb48d2c86dc50156b3d6fd8f42097cbe1c a796b65977d6270dc6328b8688ca82d241133ca9)
@I3rixon
I3rixon / Sort WebPage Wi-Fi Meshtastic
Created May 6, 2023 13:42
Sort WebPage Wi-Fi Meshtastic js script add to Web Console of Browser
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://code.jquery.com/jquery-3.6.4.min.js';
document.head.appendChild(script);
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.3/js/jquery.tablesorter.min.js';
document.head.appendChild(script);
$(".min-w-full").tablesorter();
MyFile file = new MyFile();
file.initialize("c:\\data\\a.txt");
MyFile file2 = new MyFile();
file2.initialize(file, "a.txt");
String text = file2.readText();
@I3rixon
I3rixon / GooglePageRankCheckSum.php
Created October 2, 2015 00:44 — forked from KartikTalwar/GooglePageRankCheckSum.php
Google PageRank Checksum Algorithm
<?php
function fch($csm)
{
if($csm < 0)
$csm += 4294967296.0;
$a = (int)fmod($csm, 10);
$t = 1;
$b = (int)($csm / 10);

Keybase proof

I hereby claim:

  • I am I3rixon on github.
  • I am ierixon (https://keybase.io/ierixon) on keybase.
  • I have a public key whose fingerprint is 274C 0E21 8698 A6BD 2CB9 D52C 272F 89FF 4C8E 8FDA

To claim this, I am signing this object:

@I3rixon
I3rixon / Main.java
Created July 29, 2013 00:46
pretty output of hexdump like in Java
public static void prettyOut(byte[] msg) {
for (int j = 1; j < msg.length+1; j++) {
if (j % 8 == 1 || j == 0) {
if( j != 0){
System.out.println();
}
System.out.format("0%d\t|\t", j / 8);
}
System.out.format("%02X", msg[j-1]);
if (j % 4 == 0) {
@I3rixon
I3rixon / cryptocat.js
Last active December 18, 2015 23:39
html5 notify [Firefox 22+]
function desktopNotification(image, title, body, timeout) {
...
if( (navigator.userAgent.toLowerCase().match('firefox\/(.*)')[1] | 0) >= 22 ){
var notice = new Notification(title, { tag : "cryptocat", body : body, icon : image });
if (timeout > 0) {
window.setTimeout(function() {
notice.close()
}, timeout)
}