sudo apt-get install zsh
sudo apt-get install zsh-autosuggestions zsh-syntax-highlighting
# Magic of Math in Language | |
# v2.0 by @RomelSan (August 20, 2020) | |
#Functions | |
def sum_digits(n): | |
# Sum numbers until it is 1 digit | |
if n > 0: | |
s = (n-1) // 9 | |
return n-9*s | |
return 0 |
# Mikrotik Personal Queue Tree based on Priority for devices | |
# Mark in Mangle (Global Internet, Devices Download, Devices Upload) | |
/ip firewall mangle | |
add action=mark-connection chain=prerouting comment="Internet Download" in-interface=ether10-Internet new-connection-mark=Internet_conn passthrough=yes | |
add action=mark-packet chain=prerouting connection-mark=Internet_conn new-packet-mark=Internet passthrough=no | |
add action=mark-connection chain=forward comment="Main Camera Download" dst-address=192.168.0.10 new-connection-mark=Camera_Conn_FW packet-mark=Internet passthrough=yes | |
add action=mark-packet chain=forward connection-mark=Camera_Conn_FW new-packet-mark="Camera_Download" passthrough=no |
# SMB Check v0.3 | |
# By Romel Vera (https://www.github.com/RomelSan) | |
# This tool checks and enforces SMB v3 basic security | |
# License: MIT | |
# Build: December 8, 2017 | |
#=========================================================================== | |
# Check Admin | |
#=========================================================================== | |
function Test-IsAdmin { |
# SMB Security v0.3 | |
# By Romel Vera (https://www.github.com/RomelSan) | |
# Enforce SMB v3 basic security | |
# License: MIT | |
# Build: December 8, 2017 | |
# Check SMB Server Configuration: | |
Get-SmbServerConfiguration | | |
select EnableSMB1Protocol, EnableSMB2Protocol, EncryptData, RejectUnencryptedAccess, RequireSecuritySignature |
I hereby claim:
To claim this, I am signing this object: