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
$('#gender').prop('checked', true); | |
$('#daydropdown').val(24).change(); | |
$('#monthdropdown').val('Nov').change(); | |
$('#yeardropdown').val(1981).change(); | |
$('#txtZipcode').val(4210).change(); |
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
[].map.call(document.querySelectorAll('.confirmit-abtn-table-grid td'), function(e) {e.click();}) | |
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
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
jQuery.noConflict(); |
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
Array.prototype.forEach.call(document.querySelectorAll('input[type=radio]'), function(l){l.click()}) |
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
Array.prototype.forEach.call(document.querySelectorAll('input[type=checkbox]'), function(l){l.onclick = null; l.click()}) |
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
based on https://www.raywenderlich.com/127936/submit-an-app-part-1 | |
1. First you’ll need to generate two certificates, one for your development profiles and another for your distribution profiles | |
- this can be done from xcode | |
2. Registering Devices | |
3. Creating App IDs | |
4. Provisioning Profiles |
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
// https://blog.crashtest-security.com/lambda-edge-to-configure-http-security-headers-for-cloudfront-34a44775061d | |
'use strict'; | |
exports.handler = (event, context, callback) => { | |
const response = event.Records[0].cf.response; | |
const headers = response.headers; | |
// Add security headers |
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
import { ErrorHandler } from '@angular/core'; | |
@Injectable() | |
export class GlobalErrorHandler implements ErrorHandler { | |
handleError(error: any): void { | |
const chunkFailedMessage = /Loading chunk [\d]+ failed/; | |
if (chunkFailedMessage.test(err.message)) { | |
window.location.reload(); |
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/bin/env python3 | |
""" | |
AWS Identity Collector: Extract Trust and Privilege Data Across Accounts | |
This script collects identity and access metadata from one or more AWS accounts, | |
including IAM roles, IAM users, SSO (AWS IAM Identity Center) users, and their policies. | |
It’s used as a precursor for analyzing trust relationships and admin-equivalent access | |
across AWS environments. |