@stacksofplates said in Need help with Autohotkey Windows:
Ah I just got in the habit of win+ctrl and an arrow. Like ctrl+arrow on mac.
ctrl+alt+left (or right) arrow for me on a cinnamon desktop.
@stacksofplates said in Need help with Autohotkey Windows:
Ah I just got in the habit of win+ctrl and an arrow. Like ctrl+arrow on mac.
ctrl+alt+left (or right) arrow for me on a cinnamon desktop.
@stacksofplates said in Pi-hole dumps on Fedora:
@JaredBusch said in Pi-hole dumps on Fedora:
@stacksofplates said in Pi-hole dumps on Fedora:
Just run it in a container and none of this matters.
Pi-Hole's docker version was not a well done container 3 years ago when I implemented this solution. It was by no means a good idea at the time.
Well I just meant going forward.
That gets into different issues since Fedora went with podman. I haven't done much tinkering with it yet to see how compatible things are.
@stacksofplates said in Pi-hole dumps on Fedora:
Just run it in a container and none of this matters.
Pi-Hole's docker version was not a well done container 3 years ago when I implemented this solution. It was by no means a good idea at the time.
@VoIP_n00b said in Pi-hole dumps on Fedora:
@stacksofplates just no. @JaredBusch prefers the hard way.
Don't put words in my mouth.
@Pete-S said in Pi-hole dumps on Fedora:
Normal Ubuntu yes, but that is why an LTS version exists.
just no.
@Pete-S said in Pi-hole dumps on Fedora:
new-release-every-6-month-and-hope-for-the-best Fedora
Ubuntu is no different. Just even crappier.
@Pete-S said in Pi-hole dumps on Fedora:
If they are committed to support Fedora, and that is the way it looks, they're probably working on supporting F33.
Fedora has been a supported OS for years.
https://docs.pi-hole.net/main/prerequisites/#supported-operating-systems
That there is some stupid slowness about getting on to 33 from that team is a different issue.
@scottalanmiller said in What Are You Doing Right Now:
Quiet morning around ML! Wow, where is everyone?
Just sat down at my desk 30 minutes ago.
Second tumbler of coffee in hand.
Current version looks like this. Much improved.
And here is what it outputs now.
I think this is pretty solid. so if anyone has a better idea for how I could handle it better, I am wide open to suggestion.
<?php
$ret_info = get_device_info("Yealink W52P 25.81.0.10");
print "Brand: {$ret_info['brand']} | Model: {$ret_info['model']} | Firmware: {$ret_info['firmware']}\n";
function get_device_info($ua) {
$ua_arr = preg_split("/[\s\/]/", $ua, 2);
switch ($ua_arr[0]) {
case "Yealink":
$mod_firm_arr = preg_split("/[\s]/", preg_replace("/^SIP[\s-]/","",$ua_arr[1]));
$device_info = ["brand" => $ua_arr[0], "model" => $mod_firm_arr[0], "firmware" => $mod_firm_arr[1]];
break;
case "Grandstream":
case "OBIHAI":
case "Fanvil":
$mod_firm_arr = preg_split("/[\s-]/", $ua_arr[1]);
$device_info = ["brand" => $ua_arr[0], "model" => $mod_firm_arr[0], "firmware" => $mod_firm_arr[1]];
break;
case "Zoiper":
case "MicroSIP":
$device_info = ["brand" => $ua_arr[0], "model" => "", "firmware" => $ua_arr[1]];
break;
case "snomPA1":
$device_info = ["brand" => "Snom", "model" => "PA1", "firmware" => $ua_arr[1]];
break;
case "LinphoneiOS":
$mod_firm_arr = preg_split("/[\s]/", $ua_arr[1]);
$device_info = ["brand" => $ua_arr[0], "model" => "", "firmware" => $mod_firm_arr[0]];
break;
default:
$device_info = ["brand" => "Unknown", "model" => "", "firmware" => ""];
}
return $device_info;
}
?>