Skip to content

Instantly share code, notes, and snippets.

View elijahcruz12's full-sized avatar

Elijah Cruz elijahcruz12

View GitHub Profile
@elijahcruz12
elijahcruz12 / dotfiles-reminder.plugin.zsh
Created February 1, 2024 23:02
Reminds youto publish your dotfiles repo every month.
# Get the current date
current_date=$(date +%Y-%m-%d)
# Path to the file where the last reminder date is stored
last_reminder_file="$HOME/.last_dotfiles_reminder"
# Function to remind the user
remind_user() {
echo "Reminder: It's time to push your dotfiles to GitHub!"
echo $current_date > "$last_reminder_file"
path=$1 # the path of the directory where the files and directories that need to be copied are located
s3Dir=$2 # the s3 bucket path that must exist.
for entry in "$path"/*; do
name=`echo $entry | sed 's/.*\///'` # getting the name of the file or directory
if [[ -d $entry ]]; then # if it is a directory
aws s3 cp --endpoint=<digitaloceanendpoint> --recursive "$name" "$s3Dir/$name/"
else # if it is a file
aws s3 cp "$name" "$s3Dir/"
fi
@elijahcruz12
elijahcruz12 / self-signed-certificate-with-custom-ca.md
Last active January 15, 2021 00:08 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@elijahcruz12
elijahcruz12 / sail-aliases
Last active April 9, 2024 20:22
Laravel Sail Aliases
alias sail='bash vendor/bin/sail'
alias sdown='bash vendor/bin/sail down'
alias sa='bash vendor/bin/sail artisan'
alias sup='bash vendor/bin/sail up -d'
alias sdown='bash vendor/bin/sail down'
alias snpm='bash vendor/bin/sail npm'
alias sdev='bash vendor/bin/sail npm run development'
alias sprod='bash vendor/bin/sail npm run production'
alias snpmi='bash vendor/bin/sail npm install'
alias snpmu='bash vendor/bin/sail npm update'
#! /bin/bash
echo Simple Email Cracking Script in bash
echo Written By: Elijah Cruz github @elijahcruz12
sleep 1s
echo NOTE: Make sure you have a .txt wordlist AND hydra installed!
echo hydra: https://github.com/vanhauser-thc/thc-hydra
sleep 1s
echo Some email providers have brute force protection, so beware!
sleep 1s
<!DOCTYPE html>
<html>
<head>
<title>ECWS Sidebar</title>
<style>
</style>
</head>
<body>
The ECWS Side bar is still Yet to be completed. Check back soon!
@elijahcruz12
elijahcruz12 / color.css
Created August 29, 2015 16:33
This is the CSS stylesheet to use classes to get the colors needed for you to use. Includes texts and backgrounds.
/*
* #name: Color.CSS
* #author: Elijah Cruz
* Copyright 2015 Elijah Cruz
*/
.text-amber {
color:#ffc107
}
.amber {
color:#000;