Both IPv4 and IPv6 allow for some flexibility in how IP addresses are expressed as strings, but IPv6 really takes it to the max. How many ways can we express the all-zeroes IPv6 address, a.k.a. "::". Let's see.
::
Running count: 1.
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: some-sftp-server | |
Parameters: | |
HostedZoneIdParam: | |
Type: String | |
Description: Hosted Zone ID | |
SFTPHostnameParam: | |
Type: String |
import os | |
import shutil | |
mkdir ~/Desktop/imessage | |
rootDir = "/Users/${USER}/Library/Messages/Attachments" | |
destDir = "/Users/${USER}/Desktop/imessage" | |
IGNORE_STRING = "pluginPayloadAttachment" | |
for dirName, subdirList, fileList in os.walk(rootDir): | |
#print("Found directory: %s" % dirName) |
# From here: | |
# https://blog.ashiny.cloud/page/awscli-query-quickref/ | |
#!/bin/bash -ex | |
export AWS_REGION=your-region-here | |
export AWS_PROFILE=your-cli-access-profile-here | |
export AWS_DEFAULT_OUTPUT=text | |
# Get your user ARN | |
aws iam get-user --query 'User.Arn' |
#!/bin/bash | |
export-aws () { | |
# gets iam security credentials from instance metadata and export in envirovment for runtime script | |
# after script finished credentials is gone away | |
# system must have awscli&jq preinstalled | |
# converted to function | |
# Usage: export-aws ROLENAME |
Add the following in .zshrc: | |
... | |
plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
... | |
### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
pasteinit() { | |
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |
--- Firefox places.sqlite exploration | |
-- https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Database | |
-- https://wiki.mozilla.org/images/d/d5/Places.sqlite.schema3.pdf | |
-- http://forensicswiki.org/wiki/Mozilla_Firefox_3_History_File_Format (probably somewhat outdated) | |
-- [select text -> right click -> search] does not set from_visit :( | |
-- Gotchas :angry-face: https://superuser.com/a/1405880/153095 (Explains why your history is incomplete) |
Fix for FOUC :
At the top of your HTML:
<!doctype html>
<html>
<head>
<style>html{visibility: hidden;opacity:0;}</style>
According to all known laws of aviation, there is no way a bee should be able to fly. | |
Its wings are too small to get its fat little body off the ground. | |
The bee, of course, flies anyway because bees don't care what humans think is impossible. | |
Yellow, black. Yellow, black. Yellow, black. Yellow, black. | |
Ooh, black and yellow! | |
Let's shake it up a little. | |
Barry! Breakfast is ready! | |
Coming! | |
Hang on a second. | |
Hello? |