Skip to content

Instantly share code, notes, and snippets.

View netaviator's full-sized avatar
🎯
Focusing

netaviator

🎯
Focusing
View GitHub Profile
@netaviator
netaviator / interface vlan
Created February 8, 2018 06:28
Create multiple vlan interfaces and add tagged or untagged interfaces
param (
[Parameter(Mandatory=$true)][int]$From,
[Parameter(Mandatory=$true)][int]$To,
[string]$Description = "",
[string]$Tagged = "",
[string]$Untagged = ""
)
if($From -le $To){
for($i = $From; $i -le $To; $i++){
Write-Host "interface vlan" $i
@netaviator
netaviator / sclisteners.php
Last active April 6, 2021 02:32
munin plugin to monitor SHOUTcast Broadcaster listeners
#!/usr/bin/php
<?php
$url = 'http://127.0.0.1:8000/statistics?json=1';
if(count($argv) == 2 && $argv[1] == 'authconf') {
exit('yes');
}
$data = file_get_contents($url);
if($data != false){