Skip to content

Instantly share code, notes, and snippets.

View RomelSan's full-sized avatar

Romel Vera RomelSan

View GitHub Profile
@RomelSan
RomelSan / keybase.md
Created February 23, 2017 22:48
Keybase

Keybase proof

I hereby claim:

  • I am romelsan on github.
  • I am romel (https://keybase.io/romel) on keybase.
  • I have a public key ASD7DbdEmxcIYcbwCQna5T58VtETEYd9ZAOfxzVwhvXeSAo

To claim this, I am signing this object:

@RomelSan
RomelSan / SMB Security v0.3.ps1
Last active December 9, 2017 00:03
SMB v3 basic security
# 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
@RomelSan
RomelSan / SMB Check v0.3.ps1
Last active October 25, 2018 15:09
This tool checks and enforces SMB v3 basic security
# 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 {
@RomelSan
RomelSan / qos_tree.rsc
Created February 13, 2020 02:58
Mikrotik Personal Queue Tree for Devices
# 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
@RomelSan
RomelSan / MathLanguage.py
Created August 20, 2020 20:59
Magic of Math in Language
# 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
@RomelSan
RomelSan / ZSH-readme.md
Last active November 25, 2020 22:04
ZSH Linux

Installing ZSH

Install ZSH

sudo apt-get install zsh

Add other complements

sudo apt-get install zsh-autosuggestions zsh-syntax-highlighting

Check Version

@RomelSan
RomelSan / win10uefi.ps1
Created May 10, 2020 06:31
Create Windows 10 UEFI USB stick
# Minimum size of USB stick 6GB
# Set here the path of your ISO file
$iso = 'C:\Users\localuser\Downloads\en_win10.iso'
# Clean ! will clear any plugged-in USB stick!!
Get-Disk | Where BusType -eq 'USB' |
Clear-Disk -RemoveData -Confirm:$true -PassThru
# Convert GPT
@RomelSan
RomelSan / ssh.txt
Created July 12, 2019 22:21
SSH service Linux
* start the SSH service with systemctl
sudo systemctl enable ssh
sudo systemctl start ssh
sudo systemctl restart sshd
* Allow Or Deny SSH Access To A Particular User Or Group In Linux
sudo nano /etc/ssh/sshd_config
* Add or edit the following line:
@RomelSan
RomelSan / kitty-theme.md
Last active April 17, 2023 09:24
Kitty Theme

Kitty portable recommended settings

  1. Terminal --> Features --> Disable Application Keypad mode
  2. Terminal --> Keyboard --> The Function keys and keypad --> Linux
  3. Connection --> Data --> set terminal-type string to linux
  4. Window -> Appearance set check for "Allow selection of variable pitch fonts"
  5. Window -> Colours set check for "Selected text is a different colour"
  6. Use font Cascadia Code PL included with "Windows Terminal" app or download from github
    File to install: CascadiaCodePL.ttf
    https://github.com/microsoft/cascadia-code
  7. If you are using oh my zsh then you can use the fonts from nerdfonts.com
@RomelSan
RomelSan / Eject USB Units.md
Last active September 8, 2023 05:50
Find the culprit that prevents ejection of Flash Drives or any other unit.

Eject USB Units

Find the culprit that prevents ejection of Flash Drives or any other unit.

CMD

wevtutil qe System /q:"*[System[(EventID=225)]]" /c:5 /f:text /rd:true