Login

bit, byte (8 bits), kb (1024 bytes), mb (1024 kb), gb (1024 mb)

# cmd Get env vars 
set
# if you install run as admin, logs goes to your folder, echo it
echo %TEMP% 
echo %RABBITMQ_BASE%

# Shovel validator
NP++ Copy and replace 'All matches'
NP** Edit advanced.config use NP++ Language Erlang (validator)

# AMQP
If the queue is durable and the message is marked as persistent, RabbitMQ stores the message on disk

# View methods and docs
Ps1 ISE
File explorer storage account access -> Just run PowerShell as another user, then cd etc

# ps1 task scheduler
# Program/script is set to 
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

# Add arguments:
 -ExecutionPolicy Bypass -File "C:\OP\Jobs\ScheduleTasks\ps_delete_uploaded_files.ps1"

# ps1 logger
$logFile = "F:\LogsPS1\deletion_log.txt"  #  <-- Add the log file path

# Function to append to the log file
function Write-Log {
    param(
        [string]$Message
    )
    $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
    $logEntry = "$timestamp - $Message"
    $logEntry | Out-File -FilePath $logFile -Append
}
# call it
Write-Log "Directory '$targetDirectory' does not exist. Script exited." # <-- Log entry

# cmd Cp folders empty
robocopy D:\History D:\HistoryClean /e /xf *
# Cp Files, folders and sec
robocopy \\WM01\f$\datacatalog e:\datacatalog /e /r:1 /w:5 /sec /secfix /timfix /log:"F:\robo_log.log" /np
robocopy e:\datacatalog \\WM01\f$\datacatalog /e /r:1 /w:5 /sec /secfix /timfix /log:"F:\robo_log.log" /np

# Relax hand
F2 edit cell Excel (no mouse)

# cmd Get file content
type filename

# bash Get file content
cat filename

# bash Get var info
cat zabbix_agentd.conf | grep "Hostname*"

#!/bin/bash 
# It tells the system which interpreter to use to execute the script.
To make the script executable, you usually need to change its permissions using the chmod command:
chmod +x script.sh
/script.sh

Bash is text oriented.

Bash in a nutshell – e-lo:Engineer log out. (follow-e-lo.com)

Ps1 is object oriented.

Powershell in a nutshell – e-lo:Engineer log out. (follow-e-lo.com)

Is the x.509 valid? https://certlogik.com/decoder

Common Vulnerabilities and Exposures https://www.cvedetails.com

WordPress

Organize posts
Make a section with jump links to lower section
On top section name , then add a link:

Section:
Influx click link name #jump-2-influx
Python click link name #jump-2-python
Telegraf click link name #jump-2-telegraf

On header H2 Influx, Python and Telegraf (chapter) add anchor jump-2-influx, etc

Github

- [Go to fix in progress](#fix-in-progress)

## Fix in progress

Scroll to Top