apt install -y swaks
swaks --from sender@domain.com --to rcptuser@domain.com --auth-user myuser --auth-password "mypass" --server email-smtp.eu-west-1.amazonaws.com --tlsc
#!/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))") | |
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)() |
short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown
--> PDF
(as a booklet!)
Markdown
--> EPUB
and MOBI
#!/bin/bash | |
<<ABOUT_THIS_SCRIPT | |
----------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/talkingmoose/9faf50deaaefafa9a147e48ba39bb4b0 |