Skip to content

Instantly share code, notes, and snippets.

View securibee's full-sized avatar
🐝

securibee securibee

🐝
View GitHub Profile
@securibee
securibee / harpoon.lua
Last active July 29, 2024 20:59
Add the Harpoon plugin to LazyVim
return {
"ThePrimeagen/harpoon",
lazy = false,
dependencies = {
"nvim-lua/plenary.nvim",
},
config = true,
keys = {
{ "<leader>a", "<cmd>lua require('harpoon.mark').add_file()<cr>", desc = "Mark file with harpoon" },
{ "<C-e>", "<cmd>lua require('harpoon.ui').toggle_quick_menu()<cr>", desc = "Show harpoon marks" },
{
"settingsVersion": "1.67.4",
"exclusionRules": [
{
"pattern": "https?://mail.google.com/*",
"passKeys": "hjklmr"
},
{
"pattern": "https?://www.inoreader.com/*",
"passKeys": "hjklravy?bgm123456"
@securibee
securibee / trufflehog.json
Created September 15, 2020 14:51 — forked from tehryanx/trufflehog.json
High signal patterns from trufflehog refactored to work with tomnomnom's gf
{
"flags": "-HnriE",
"patterns": [
"(xox[p|b|o|a]-[0-9]{12}-[0-9]{12}-[0-9]{12}-[a-z0-9]{32})",
"-----BEGIN RSA PRIVATE KEY-----",
"-----BEGIN DSA PRIVATE KEY-----",
"-----BEGIN EC PRIVATE KEY-----",
"-----BEGIN PGP PRIVATE KEY BLOCK-----",
"AKIA[0-9A-Z]{16}",
"amzn\\.mws\\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
/.s3cfg
/phpunit.xml
/nginx.conf
/.vimrc
/LICENSE.md
/yarn.lock
/Gulpfile
/Gulpfile.js
/composer.json
/.npmignore
@securibee
securibee / re
Created April 14, 2020 00:11
Discard previous commit and force push to remote
https://stackoverflow.com/a/24659189
Move you branch pointer back to the first commit:
git reset --hard HEAD~
Stage the changes from the previous commit:
git merge --squash HEAD@{1}
Commit your changes, amending them into a single commit.
versionGo="1.13";
sudo rm -rf /usr/local/go;
wget -q -P tmp/ https://dl.google.com/go/go"${versionGo}".linux-amd64.tar.gz;
sudo tar -C /usr/local -xzf tmp/go"${versionGo}".linux-amd64.tar.gz;
rm -rf tmp/;
#~/bashrc
# Go Global variables
export GOROOT=/usr/local/go
@securibee
securibee / auto.sh
Created March 22, 2020 18:13
Nahamsec's auto.sh
mkdir ~/recondata/verizonmedia/assets/yahoo.com/automated/$1
cd ~/recondata/verizonmedia/assets/yahoo.com/automated/$1
findomain -a -t $1 -o txt
crtsh $1 | tee -a ~/recondata/verizonmedia/assets/yahoo.com/automated/$1/crtsh.txt
subfinder -d $1 -o ~/recondata/verizonmedia/assets/yahoo.com/automated/$1/subfinder.txt
cat ~/recondata/verizonmedia/assets/yahoo.com/automated/$1/*.txt | sort -u >> ~/recondata/verizonmedia/assets/yahoo.com/automated/$1/all.txt
@securibee
securibee / how to git commit
Last active February 7, 2020 01:30
Better Git commits
feat: add http2 component
---------------------------
Summary in present tense.
---------------------------
Other types: chore, docs, feat, fix, refactor, style, or test.
chore: add Dockerfile
docs: explain http2 component
cat urls.html | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | sort -u
grep -E : is the same as egrep
grep -o : only outputs what has been grepped
(http|https) : is an either / or
a-z : is all lower case
A-Z : is all uper case
. : is dot
/ : is the slash
? : is ?
@securibee
securibee / gist:1537fdca7e37a5bfb957bdf8d885e9b7
Last active December 11, 2019 20:04
Install Brave on Crostini
# Install Brave on crostini for dev work that needs edited hosts file on Chromebook
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
source /etc/os-release
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ `lsb_release -sc` main" | sudo tee /etc/apt/sources.list.d/brave-browser-release-`lsb_release -sc`.list
sudo apt update
sudo apt install brave-browser brave-keyring