Skip to content

Instantly share code, notes, and snippets.

View spxwnmc's full-sized avatar
💀
Docker_Cat

Luis Gerardo spxwnmc

💀
Docker_Cat
View GitHub Profile
@spxwnmc
spxwnmc / grep.md
Created April 4, 2022 03:38 — forked from bbrother92/grep.md
#bash #regex #cheatsheet #grep

GREP Options

--max-count=number of matches before stopping search
--exclude=*.txt  with -r option

Note: Lookahead and lookbehind are Perl-style regular expression elements, so you'd have to use Perl directly, or GNU grep with the -P option, which then interprets Perl regex.

grep -o pattern file.txt **shows only the matched string** 
grep -bn pattern file.txt **shows row and col**  
grep -v pattern file.txt **inversion**  
@spxwnmc
spxwnmc / GoogleDorking.md
Created February 28, 2022 22:43 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@spxwnmc
spxwnmc / VirtualBox Cheat Sheet
Created November 20, 2021 06:52 — forked from githubfoam/VirtualBox Cheat Sheet
VirtualBox Cheat Sheet
==========================================================================================================
problem: move/copy VM manually and run
Cannot register the DVD image
C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso' with UUID {fc087cbc-df04-47b4-b42f-25f614463f78} already exists.
fix: edit ".VBOX" file and remove entries between tags
<DVDImages>
</DVDImages>
==========================================================================================================
problem:
The virtual machine is being powered down, stuck
@spxwnmc
spxwnmc / patch.sh
Created June 20, 2021 22:34 — forked from rufoa/patch.sh
sublime merge 2 build 2056 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid