Skip to content

Instantly share code, notes, and snippets.

View anibalardid's full-sized avatar
🏠
Working from home

Anibal anibalardid

🏠
Working from home
View GitHub Profile
@anibalardid
anibalardid / mkt.sh
Last active August 20, 2023 19:35
mkt, create working directories #hack #security #s4vitar
# create enum directories
function mkt(){
mkdir {nmap,content,exploits,scripts}
}
@anibalardid
anibalardid / rmk.sh
Last active May 18, 2021 01:06
rm securely #linux #security #hack #s4vitar
#remove file securely, anti recovery
function rmk(){
scrub -p dod $1
shred -zun 10 -v $1
}
@anibalardid
anibalardid / tmux.cheat
Created May 10, 2021 12:03 — forked from afair/tmux.cheat
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New new -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@anibalardid
anibalardid / devilbox-ssl-cert-ubuntu.md
Created May 4, 2021 14:21
Add devilbox certificate to ubuntu system
Go to /usr/local/share/ca-certificates/
Create a new folder, i.e. "sudo mkdir school"
Copy the .crt file into the school folder
Make sure the permissions are OK (755 for the folder, 644 for the file)
Run "sudo update-ca-certificates"
@anibalardid
anibalardid / custom-scrollbar.css
Created April 27, 2021 13:48
Custom Scrollbar #html #css
/* custom scrollbar */
::-webkit-scrollbar {
width: 20px;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
@anibalardid
anibalardid / vanilla-js-jquery-equivalents.md
Created April 23, 2021 15:22 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@anibalardid
anibalardid / generate-codes-coupon-license.txt
Created January 12, 2021 20:11
generate random codes encrypt and decrypt
https://www.phpclasses.org/package/8447-PHP-Generate-and-validate-license-key-serial-numbers.html#information
@anibalardid
anibalardid / asus-tuf-keyboard-colors-linux.txt
Last active May 18, 2021 02:16
asus tuf keyboard color control #laptop #notebook #linux #config
1st
Install
https://github.com/hackbnw/faustus
2nd
Use and configure via sh
set_rgb.sh
Software UI
@anibalardid
anibalardid / git-revert-pushed-commit.md
Last active January 7, 2021 20:04
git revert pushed commit

In the server, move the cursor back to the last known good commit:

git push -f origin <last_known_good_commit>:<branch_name>

Locally, do the same:

git reset --hard <last_known_good_commit>
# ^^^^^^
@anibalardid
anibalardid / git-delete-branch-and-history.txt
Created December 22, 2020 19:56
Git delete branch and history
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git