Skip to content

Instantly share code, notes, and snippets.

View elreydetoda's full-sized avatar

Alex Rodriguez elreydetoda

View GitHub Profile
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-24.04"
config.vm.network "forwarded_port", guest: 7443, host: 7443, auto_correct: true
config.vm.provider "virtualbox" do |vb|
vb.cpus = 4
vb.memory = 8192
end
config.vm.provider "vmware_desktop" do |v|
v.vmx["numvcpus"] = 4
v.vmx["memsize"] = 8192
@elreydetoda
elreydetoda / distk_mgmt.sh
Created November 27, 2024 12:28
TruNAS Scale Disk Mgmt
#!/usr/bin/env bash
# https://elrey.casa/bash/scripting/harden
set -${-//[sc]/}eu${DEBUG:+xv}o pipefail
function list_disks(){
lsblk -O --json |
jq -r '.blockdevices[] | select(.tran == "usb" or .tran == "scsi") | .children[] | "\(.label)\t\(.path)\t\(.size)\t\(.fstype)"'
}
@elreydetoda
elreydetoda / pyenv.expect
Created February 5, 2023 05:20
small expect script for installing python version for pipenv + pyenv
#!/usr/bin/expect
set timeout 680
spawn pipenv --bare sync
expect "Y/n" { send "\r" } \
"All dependencies are now up-to-date!" { }
expect eof
@elreydetoda
elreydetoda / 00_README.md
Created December 10, 2022 09:52 — forked from FilBot3/00_README.md
Trying to use VSCode from a Flatpak using Podman-Remote to connect to Host to use DevContainers
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())
@elreydetoda
elreydetoda / get_hashcat_hash_types.py
Created June 24, 2022 13:32
python script to quickly get all the sample hashes from hashcat's website, and print them out
#!/usr/bin/env python3
# pip(env) install beautifulsoup4
from urllib.request import urlopen
from bs4 import BeautifulSoup
url = 'https://hashcat.net/wiki/doku.php?id=example_hashes'
soup = BeautifulSoup(urlopen(url).read(), features="html.parser")
pulp_default_admin_password: password
pulp_install_source: pip
pulp_settings:
secret_key: secret
content_origin: "https://{{ inventory_hostname }}"
x_pulp_api_host: 127.0.0.1
x_pulp_api_port: 24817
x_pulp_api_user: "admin"
x_pulp_api_password: "{{ pulp_default_admin_password }}"
x_pulp_api_prefix: "pulp_ansible/galaxy/automation-hub/api"
@elreydetoda
elreydetoda / ansible-navigator.yml
Created December 22, 2021 05:33
used for ansible stuff
---
# https://events.ansiblefest.redhat.com/widget/redhat/ansible21/sessioncatalog/session/1627933227788001rep4
ansible-navigator:
# ansible:
# inventories:
# - hosts
execution-environment:
container-engine: podman
@elreydetoda
elreydetoda / ModifyAndBuildingBurpExtensions.md
Last active August 18, 2021 13:53 — forked from decidedlygray/ModifyAndBuildingBurpExtensions.md
Modifying and Building Burp Extensions Quick Reference

Quick Reference

This section is a boiled down version of everything above. It should serve as an easy reference. These steps assume you've identified and installed the correct JDK.

Modify and Re-Jar Extension

  1. Locate the jar file: Extender > Extensions > Select extension > Details. bapps\ directory is located at C:\Users\yourusername\AppData\Roaming\BurpSuite\bapps
  2. Backup the original jar file to a different folder, outside of bapps.
  3. Change extension from .jar to .zip, extract contents, delete .zip file
  4. Make your modifications
  5. Re-jar: jar cvf yourJarName.jar -C extractedContentsDirectory/ .
#!/usr/bin/env python3
# inspired by Julia Evans' (https://twitter.com/b0rk) header script from
# https://changelog.fm/450 ( https://youtu.be/mFKrw_zTbpc )
import fileinput
# takes stdin from visual mode of vim and ! to execute this script
lines = [ x.strip().rstrip(' #').lstrip('# ') for x in fileinput.input() ]
# getting the longest line length from the input