Skip to content

Instantly share code, notes, and snippets.

View jcamp's full-sized avatar

Jonathan jcamp

View GitHub Profile
@jcamp
jcamp / google-dorks
Created November 23, 2022 22:35 — forked from mehdichaouch/google-dorks
Listing of a number of useful Google dorks.
Explanations:
cache: If you include other words in the query, Google will highlight those words within
the cached document. For instance, [cache:www.google.com web] will show the cached
content with the word “web” highlighted. This functionality is also accessible by
clicking on the “Cached” link on Google’s main results page. The query [cache:] will
show the version of the web page that Google has in its cache. For instance,
[cache:www.google.com] will show Google’s cache of the Google homepage. Note there
can be no space between the “cache:” and the web page url.
------------------------------------------------------------------------------------------
@jcamp
jcamp / GoogleDorking.md
Created November 23, 2022 21:55 — 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"

Algorithmic layouts

You are looking at the most important, and most abundant thing on the web. You can't see it, unfortunately, because it's very small… aaaaand it's invisible — so having a magnifying glass doesn't really help here. But still.

I'm talking, of course, about U+0020; not to be confused with the band U2, who are just as ubiquitous, but far less useful.

This unicode point, representing the humble space character, is between every word, in every run of text, on every page of the web. And it has a very special characteristic: it's not sticky like glue. If two words are neighbors but there's not enough room for both of them, the space will free the second word to wrap around and start a new line.

Before getting into flexible containers, viewport meta tags, and @media breakpoints this humble character is what makes the web fundamentally 'responsive'. That is: able to change the layout of its content to suit different devices, contexts, and settings. Browser text does this automa

@jcamp
jcamp / basic.js
Created August 19, 2021 09:52 — forked from simkimsia/basic.js
Using turnjs with File API of HTML5
/*
* Basic sample
*/
function addPage(file, pageNumber, book) {
var id, pages = book.turn('pages');
var reader = new FileReader();
reader.onload = (function (theImg) {
@jcamp
jcamp / pmpro-add-menu-item-links.php
Created May 27, 2021 10:00 — forked from andrewlimaza/pmpro-add-menu-item-links.php
Add additional menu items to Paid Memberships Pro admin bar and admin menu link.
@jcamp
jcamp / my-pmpro-account-example.php
Created May 27, 2021 09:59 — forked from andrewlimaza/my-pmpro-account-example.php
Custom shortcode for account page
<?php
/**
* Copy the function below into your custom plugin / Code Snippets plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
* Replace [pmpro_account] with [my_pmpro_account]
* This example replaces "Change Password" link to point to site's password-reset URL.
*/
function my_pmpro_shortcode_account($atts, $content=null, $code="")
{
global $wpdb, $pmpro_msg, $pmpro_msgt, $pmpro_levels, $current_user, $levels;
@jcamp
jcamp / invoice.php
Created May 27, 2021 09:57 — forked from ipokkel/invoice.php
Custom PMPro invoice template that has a Payment Method header for the column displaying off site payment methods #paypalexpress #check
<?php
/**
* This recipe adds a custom invoice page template replacing the default.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*
* Read this companion article for guidance on how to load custom templates.
@jcamp
jcamp / dashboard.php
Created May 27, 2021 09:55 — forked from ipokkel/dashboard.php
Custom PMPro Dashboard and Memberslist pages displaying renwal dates for recurring subscriptions under the Expires column
<?php
/* Custom Dashboard page displaying renwal dates for recurring subscriptions under the Expires column
* Replace wp-content/plugins/paid-memberships-pro/adminpages/memberslist.php with this file.
* This page will be overwritten with every update of the Paid Memberships Pro core plugin
* As this is a custom override of a core file it is a "use-at-own-risk" option.
*/
/**
* The Memberships Dashboard admin page for Paid Memberships Pro
@jcamp
jcamp / next_last_payment_dates_members_list.php
Created May 27, 2021 09:52 — forked from kimcoleman/next_last_payment_dates_members_list.php
Adds last payment date and next payment date to the members list and export CSV in Paid Memberships Pro (PMPro).
<?php
/**
* Adds last payment date and next payment date to the members list and export CSV.
* Note that "last payment" value will get the last order in "success", "cancelled", or "" status. (Oddly enough, cancelled here means that the membership was cancelled, not the order.)
*
* The "next payment" value is an estimate based on the billing cycle of the subscription and the last order date. It may be off from the actual recurring date set at the gateway, especially if the subscription was updated at the gateway.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
@jcamp
jcamp / get-image-urls.js
Created May 26, 2020 10:13 — forked from tobek/get-image-urls.js
Save images from chrome inspector/dev tools network tab
/* open up chrome dev tools (Menu > More tools > Developer tools)
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading)
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR
* open up JS console and enter: var har = [paste]
* (pasting could take a while if there's a lot of requests)
* paste the following JS code into the console
* copy the output, paste into a text file
* open up a terminal in same directory as text file, then: wget -i [that file]
*/