Skip to content

Instantly share code, notes, and snippets.

Philip Jewell philipjewell

Block or report user

Report or block philipjewell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@philipjewell
philipjewell / photobucket_bulk_download.md
Last active Nov 9, 2019
Download all your photobucket images in bulk via CLI
View photobucket_bulk_download.md

backstory

On Jul 4, 2017 theverge.com posted an article about photobucket (silently) no longer allowing their users to source their images on 3rd party websites for free, thus leaving websites all over the web broken displaying the following image in replace:

Me being one of those individual, I attempted to go into my photobucket account and download my content as I now have my own hosting I am able to store those images on; however, the only ways to bulk download (on desktop) is by downloading albums through their interface. Doing so, gave me the following error message: "Hmmm. Something didn't click. Want to give it another shot? Try again now."

Doing this serveral times, in different browsers (chrome, firefox and safari), after disabling all my addons and extensions (including ad blockers), it still didn't work.

At this point, doing anything on their website w

@philipjewell
philipjewell / geo_restrict.md
Last active Aug 20, 2017
Allow geo restricting with nginx
View geo_restrict.md

For this example, using multiple nginx conditions we're leveraging MaxMind's GeoIP. Here we are only allowing traffic from Brazil and the IP address of: 192.171.XXX.XXX (our local IP address). You can find your local IP address using websites like whatismyipaddress.com or Googling "what is my ip address" should return your local IP. You can find the list of country codes here, as well as use Regex in order to pipe together IP addresses and/or countries.

Listed below are a few if statements we're placing in the nginx config of the site. This will allow us to set values and determine what the response will be depending on what those values equal:

set $allowed_geo 0;
set $allowed_ipaddr 0;
@philipjewell
philipjewell / README.md
Created Aug 20, 2017
PHP function check
View README.md

function_check.php

If you're doing shared hosting, it is extremely likely your provider has some sort of restrictions on the platform for what you can run. You can use this script to test if the function you are trying to use is restricted by that provider:

To dowload it via CLI:

curl -O https://raw.githubusercontent.com/philipjewell/scraps-and-scripts/master/function_check.php
View keybase.md

Keybase proof

I hereby claim:

  • I am philipjewell on github.
  • I am philipjewell (https://keybase.io/philipjewell) on keybase.
  • I have a public key ASDLZk177Y3_ktyUFUYCR316vfROlvA37AsWADeg2JzAdQo

To claim this, I am signing this object:

You can’t perform that action at this time.