Skip to content

Instantly share code, notes, and snippets.

View robmaidment's full-sized avatar

Rob Maidment robmaidment

  • London
View GitHub Profile
@robmaidment
robmaidment / GoogleDorking.md
Created December 20, 2022 14:24 — 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"

maidmentr Rob Maidment

Keybase proof

I hereby claim:

  • I am robmaidment on github.
  • I am maidmentr (https://keybase.io/maidmentr) on keybase.
  • I have a public key ASAFbKhP8ZlJTOXa9lez9ESLYAB7CuYSoASRKIB7cZ79QQo
@robmaidment
robmaidment / settings.json
Created August 28, 2021 16:15 — forked from thomasmaurer/settings.json
My Windows Terminal Settings settings.json February 2021
// This file was initially generated by Windows Terminal 1.3.2651.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@robmaidment
robmaidment / example.sh
Created May 1, 2017 10:09
Check a linux command exists before relying on it
if ! type "ansible" > /dev/null; then echo exists; else echo nothing; fi
@robmaidment
robmaidment / Regex (snippet)
Created February 24, 2017 11:08
Regex with negative lookahead, exclude anything that has 'nope' in it
(?i)^(?!.*nope).*$
@robmaidment
robmaidment / Jenkins console
Created February 20, 2017 14:32
Update next job number
# preserved after a restart!
job = Jenkins.instance.items.find { it.name == 'ExampleJob' }
job.updateNextBuildNumber(99)
@robmaidment
robmaidment / system-groovy-script-step
Created February 15, 2017 15:16
Getting a job parameter in a Jenkins System groovy script step
String jobToCopy = build.getEnvironment(listener).get( 'JOB' )
@robmaidment
robmaidment / Bash snippet
Created February 9, 2017 17:56
Verify that a set of JARs are in fact valid JARs
find . -name *.jar -exec jar -tvf {} \;
@robmaidment
robmaidment / config.xml (fragment)
Created February 7, 2017 15:34
Using a Jenkins system groovy script to trigger another job, based on an input parameter
import jenkins.*
import jenkins.model.*
import hudson.*
import hudson.model.*
def SELECTED_JOB = build.buildVariableResolver.resolve("SELECTED_JOB")
def target = Jenkins.instance
.getItemByFullName(SELECTED_JOB) ?: null
@robmaidment
robmaidment / Somewhere in your shell step
Created January 31, 2017 13:12
Jenkins, capturing custom build descriptions from shell output
# Script echoes
echo '[RESULT] My result'
# Description setter regex
^\[RESULT\] (.*)