Skip to content

Instantly share code, notes, and snippets.

View RomelSan's full-sized avatar

Romel Vera RomelSan

View GitHub Profile
@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 / Powershell-Incident-CheatSheet.ps1
Created August 20, 2020 19:04
Incident Response: Windows Cheatsheet
# Incident Response: Windows Cheatsheet
# Commands for CMD / Powershell / GUI
# Check user accounts
lusrmgr.msc
# See the user accounts for the system and the type of account it is
net user
Get-LocalUser
# Check Administrators
net localgroup administrators
@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 / Set up Powerline in PowerShell.md
Last active March 17, 2024 10:38
Set up Powerline in PowerShell
@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