This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| include 'vendor/autoload.php'; | |
| use WordPress\AiClient\AiClient; | |
| use WordPress\GoogleAiProvider\Provider\GoogleProvider; | |
| // 1. Set your API key securely | |
| putenv('GOOGLE_API_KEY=YOUR-GOOGLE-AI-API-KEY'); | |
| // 2. Register the provider with the default registry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Creator: Phil Cook | |
| # Modified: Andy Miller, Niraj Shah | |
| # add the following lines to the httpd.conf file for the script to work correctly, including the # prefix | |
| # --- | |
| # #LoadModule php7_module /opt/homebrew/opt/php@7.4/lib/httpd/modules/libphp7.so | |
| # #LoadModule php_module /opt/homebrew/opt/php@8.4/lib/httpd/modules/libphp.so | |
| # #LoadModule php_module /opt/homebrew/opt/php@8.5/lib/httpd/modules/libphp.so | |
| # #LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # path to folder on the device | |
| PHONE_PATH=/storage/self/primary/DCIM/Camera/ | |
| # path to copy files to | |
| LOCAL_PATH=~/Camera/ | |
| # get list of files from the phone folder | |
| adb shell ls -l $PHONE_PATH > file_list.txt | |
| # filter only jpg and mp4 files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "AllowedHeaders": [], | |
| "AllowedMethods": [ | |
| "GET" | |
| ], | |
| "AllowedOrigins": [ | |
| "*" | |
| ], | |
| "ExposeHeaders": [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Account Suspended</title> | |
| <!-- Fonts --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "VisualEditor0", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "ec2:RevokeSecurityGroupIngress", | |
| "ec2:AuthorizeSecurityGroupEgress", | |
| "ec2:AuthorizeSecurityGroupIngress", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/php | |
| <?php | |
| // AbuseIPDB API v2 Key | |
| $api_key = 'xxx'; | |
| // AbuseIPDB API v2 Endpoint | |
| $api_endpoint = 'https://api.abuseipdb.com/api/v2/'; | |
| // AbuseIPDB User ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/php | |
| <?php | |
| // get command line arguments | |
| $args = $argv; | |
| // AbuseIPDB API Key | |
| $api_key = 'xxx'; | |
| // your AbuseIPDB User ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // parameters for ajax calls | |
| var items = [ | |
| { 'gender': 'male', 'nat': 'US' }, | |
| { 'gender': 'female', 'nat': 'GB' } | |
| ]; | |
| // function to trigger the ajax call | |
| var ajax_request = function(item) { | |
| var deferred = $.Deferred(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require "vendor/autoload.php"; | |
| use setasign\Fpdi\Fpdi; | |
| use setasign\Fpdi\PdfReader; | |
| use setasign\FpdiProtection\FpdiProtection; | |
| class PasswordProtectPDF | |
| { | |
| protected $pdf = null; |
NewerOlder