Skip to content

Instantly share code, notes, and snippets.

View h3nryza's full-sized avatar

H3nryza h3nryza

View GitHub Profile
@h3nryza
h3nryza / GoogleDorking.md
Created January 4, 2023 22:31 — 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"
@h3nryza
h3nryza / jenkins_local_kubernetes.yaml
Created August 30, 2018 05:43
Create a simple jenkins on a local kubernetes installation
---
kind: Namespace
apiVersion: v1
metadata:
name: jenkins
labels:
name: jenkins
---
kind: PersistentVolume
apiVersion: v1
@h3nryza
h3nryza / gitlab_local_kubernetes.yaml
Last active August 30, 2018 05:44
Creating a simple Gitlab installation on a local Kubernetes installation
---
kind: Namespace
apiVersion: v1
metadata:
name: gitlab
labels:
name: gitlab
---
kind: PersistentVolume
apiVersion: v1
@h3nryza
h3nryza / docker_registry_local_kubernetes.yaml
Last active August 30, 2018 05:41
Creating a local Docker Registry on local Kubernetes installation
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: slow
provisioner: Local
parameters:
type: pd-standard
---
kind: PersistentVolume
apiVersion: v1
@h3nryza
h3nryza / nmap.sh
Created August 26, 2018 19:22 — forked from ddubson/nmap.sh
Nmap cheat sheet
# Default nmap scan
nmap localhost
# Default service nmap
nmap -sV localhost
# Service scan with output logging
nmap -sV -oA log.txt localhost
# Scan specific ports
nmap -p1-1024 localhost
# e.g. Check if local port 80 is open
nmap -p 80 localhost
@h3nryza
h3nryza / README.md
Created August 26, 2018 11:50 — forked from hofmannsven/README.md
My simply Git Cheatsheet
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008
Compiled by Eric Pement - eric [at] pement.org version 0.27
Latest version of this file (in English) is usually at:
http://www.pement.org/awk/awk1line.txt
This file will also be available in other languages:
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt
USAGE:
@h3nryza
h3nryza / sed cheatsheet
Created August 26, 2018 11:47 — forked from un33k/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@h3nryza
h3nryza / trailingBackSlash.py
Created July 18, 2018 08:31
Python check for training slash on a folder, add if missing
def trailingBackSlash(location):
if location[-1:] != "/" and "/" in location:
location = location + "/"
elif location[-1:] != "\\" "\\" in location:
location = location + "\\"
@h3nryza
h3nryza / pythonDeleteOlderThan.py
Created July 18, 2018 08:15
Python Dlete a file older than x
#!/usr/bin/python
# -*- coding: <utf-8> -*-
from __future__ import print_function
import os
import time
current_time = time.time()
for file in os.listdir():
creation_time = os.path.getctime(file)