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:
I hereby claim:
To claim this, I am signing this object:
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
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;
#!/usr/bin/python3 | |
from datetime import datetime | |
import click | |
import random | |
import requests | |
BASE_URL = "https://www.walmart.com/grocery" | |
# Current Chrome user agent on Mac | |
USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36" |
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
Cli based tool that assists with collecting client id's for the various devices of a given plex user/account.
Going down the rabbit hole of various automations Plex Webhooks has to offer, I came across webhooks-notifications. The installation steps included getting an auth token via POST request to their API as well as another GET request to fetch the clients under your account.
There were various posts on this forum of people showing their methods of gathering this information; however, the website