This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Collect the Data Stats from a MikroTik LTE Interface | |
#make the empty file | |
#/file print file="lteCount.txt" | |
{ | |
#Get RX and TX data from LTE1 interface | |
:local counterRX [/interface get lte1 rx-byte] | |
:local counterTX [/interface get lte1 tx-byte] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create a log file | |
logfile="/tmp/check_internet.log" | |
# Get the current time and date | |
now=$(date) | |
# Check if wlan0 is up | |
ifconfig wlan0 | grep -q "inet addr:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Using the API documentation on the Transport for London website, write a PowerShell script that can return the: | |
*status of a given Tube line along with any reason for disruption. | |
*The script should be capable of providing both the current status of the line | |
*and the future status of the line, if a date range is supplied. | |
*The script should be capable of returning all Tube lines that are currently facing unplanned disruption.” | |
#> | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#REF1: https://www.dell.com/support/kbdoc/en-in/000126566/windows-how-to-identify-your-dell-docking-station-using-powershell | |
Set-Location -Path C:\temp | |
$dellcabURL = 'https://downloads.dell.com/catalog/DellSDPCatalogPC.cab' | |
$fileName = $dellcabURL.Substring($dellcabURL.LastIndexOf('/') + 1) | |
#Download Dell Cab | |
Invoke-WebRequest -URI $dellcabURL -UseBasicParsing -OutFile "c:\temp\$fileName" | |
#Extact DellSDPCatalogPC.xml | |
& extrac32.exe "c:\temp\$fileName" DellSDPCatalogPC.xml /Y | |
#find the line (would be beettr ro pharse the XML) | |
$MSIregex = 'https:\/\/.*DSIA.*.msi' |