apt install -y swaks
swaks --from [email protected] --to [email protected] --auth-user myuser --auth-password "mypass" --server email-smtp.eu-west-1.amazonaws.com --tlsc
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: S3 bucket remediation automation using AWS Config and AWS Service Manager | |
| Parameters: | |
| Versioning: | |
| Type: String | |
| AllowedValues: [ "true", "false" ] | |
| Default: "true" |
| # https://developer.apple.com/documentation/corefoundation/3684868-cfbundleisarchitectureloadable?language=objc | |
| # https://developer.apple.com/documentation/foundation/1495005-mach-o_architecture?language=occ | |
| # https://developer.apple.com/documentation/foundation/1495005-mach-o_architecture/nsbundleexecutablearchitecturearm64?language=occ | |
| from Foundation import NSBundle | |
| import objc | |
| CF = NSBundle.bundleWithPath_('/System/Library/Frameworks/CoreFoundation.framework') | |
| f = [('CFBundleIsArchitectureLoadable', 'BQ')] | |
| objc.loadBundleFunctions(CF, globals(), f) | |
| NSBundleExecutableArchitectureARM64 = 0x0100000c |
| #!/usr/bin/python2.7 | |
| # -*- coding: utf-8 -*- | |
| ''' | |
| Defaults Monitor - tool to sniff defaults keys and values using unified log | |
| to launch use standard python 2.7, eg python2.7 ./defsmon.py | |
| ''' | |
| import os |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: pink; icon-glyph: exchange-alt; | |
| const DEBUG = false | |
| const log = DEBUG ? console.log.bind(console) : function () { }; | |
| // configure the library | |
| const libraryInfo = { | |
| name: 'TelekomDataUsageLibrary', | |
| version: '1.0.3', |
| ## This examples converts the millisecond epoch of API Gateway | |
| ## to the seconds epoch of DynamoDB and adds 5 minutes for the TTL. | |
| #set( $epoch = $context.requestTimeEpoch / 1000 + 300 ) | |
| { | |
| "TableName":"Epoch", | |
| "Item":{ | |
| "id":{"S":"$context.requestId"}, | |
| "ttlTime":{"N":"$epoch"} | |
| } |
| #!/bin/bash | |
| while :; do | |
| verf=$(cat /dev/urandom | tr -dc '0-9' | fold -w 8 | head -n 1) | |
| pin=$(cat /dev/urandom | tr -dc '0-9' | fold -w 5 | head -n 1) | |
| ip=$(printf "%d.%d.%d.%d\n" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))") | |
apt install -y swaks
swaks --from [email protected] --to [email protected] --auth-user myuser --auth-password "mypass" --server email-smtp.eu-west-1.amazonaws.com --tlsc
| class Spiderman { | |
| lookOut() { | |
| alert('My Spider-Sense is tingling.'); | |
| } | |
| } | |
| let miles = new Spiderman(); | |
| miles.lookOut(); |
| #!/bin/sh | |
| # Usage: | |
| # | |
| # - Install jq: https://stedolan.github.io/jq/ | |
| # - Add this script to your path, eg. to /usr/local/bin | |
| # - Add AWS access key id and secret access key to LastPass | |
| # named "AWS Credentials for my-profile profile" | |
| # - Add "credential_process = awscreds-lpass my-profile" to | |
| # the respective profile in ~/.aws/config |
| /* | |
| Copy this into the console of any web page that is interactive and doesn't | |
| do hard reloads. You will hear your DOM changes as different pitches of | |
| audio. | |
| I have found this interesting for debugging, but also fun to hear web pages | |
| render like UIs do in movies. | |
| */ | |
| const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |