A way of measuring HTTP Response Time with cURL.
- curl is used to transfer data to and from a server
- in this example curl is used to measure website response time
curl -w "@curl-format.txt" -o -s www.costco.com
Syntax:
nslookup <name> <server>
Where is the DNS hostname and is the hostname or IP address of the name server.
Example:
nslookup www.yahoo.com 8.8.8.8
input { | |
tcp { | |
port => 514 | |
type => syslog | |
} | |
udp { | |
port => 514 | |
type => syslog | |
} | |
} |
@ECHO OFF | |
if [%1]==[] GOTO MENU | |
if /I %1==interfaces GOTO SHOWALL | |
if /I %1==networks GOTO NETWORKS | |
if /I %1==drivers GOTO DRIVERS | |
if /I %1==settings GOTO SETTINGS |
@echo off | |
cd C:\ | |
REM This batch file loads up doskey macros from a file. | |
REM Additionally it displays a random quote from a file to inspire the reader. | |
REM ::: MACROS START ::: | |
title Free Your Mind %1 | |
REM Create a .bat or .cmd file with your DOSKEY commands. | |
REM Run regedit and go to HKEY_CURRENT_USER > Software > Microsoft > Command Processor. |
@echo off | |
title The Matrix | |
color 0a | |
:h | |
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% | |
color 0b | |
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% | |
color 0c | |
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% | |
color 0d |
I was curious how to view sessions on a Linux box I had at my desk. Similar to the session table on an Aruba controller (show loginsessions
). Here are some ways you can list active SSH sessions; some commands return more output than others. This applies to most modern Linux boxes or say a WLAN Pi.
All examples below are using 2 MobaXterm user sessions from a Windows machine to a Linux 4.14.42-sunxi64 aarch64 (NanoPi NEO2).
wlanpi@wlanpi:~$ w
@echo off | |
for /F "usebackq tokens=1,2 delims==" %%i in (`wmic os get LocalDateTime /VALUE 2^>NUL`) do if '.%%i.'=='.LocalDateTime.' set ldt=%%j | |
set ldt=%ldt:~0,4%-%ldt:~4,2%-%ldt:~6,2% %ldt:~8,2%:%ldt:~10,2%:%ldt:~12,6% | |
echo local time is %ldt% |
import json | |
json_data = object() | |
with open('accessPoints.json') as f: | |
json_data = json.load(f) | |
x = 1 | |
for i in json_data['accessPoints']: |
""" | |
- there are known issues with this approach. | |
- consider that this does not force the driver to refresh it's RSSI reading. | |
- if you want to monitor RSSI, you need to use the wlanapi. | |
""" | |
import subprocess | |
command = ['netsh', 'wlan', 'show', 'interface'] | |
out = subprocess.check_output(command) | |
out = out.decode("utf-8").lower() |