xinput list
xinput set-button-map *id* 1 3 2 4 5 6 7 9 8 10Add a custom X11 configuration
sudo su -| var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;}); |
“Don’t move to that London” warned my northern grandfather once. “It’s full of spivs”.
The Oxford Dictionary (somewhat chauvinistically) defines a spiv as:
A man, typically a flashy dresser, who makes a living by disreputable dealings
“But I work in IT” I told him. “engineers aren’t like that”.
This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.
It's built for the Hugo static site generator, but could be adopted to function with any json index.
To see it in action, go to craigmod.com and press CMD-/ and start typing.
| Profile | download (kb/s) | upload (kb/s) | latency (ms) |
|---|---|---|---|
| Native | 0 | 0 | 0 |
| GPRS | 50 | 20 | 500 |
| 56K Dial-up | 50 | 30 | 120 |
| Mobile EDGE | 240 | 200 | 840 |
| 2G Regular | 250 | 50 | 300 |
| 2G Good | 450 | 150 | 150 |
| 3G Slow | 780 | 330 | 200 |
| #!/usr/bin/env bash | |
| # Uncomment for debugging | |
| # set -o xtrace | |
| set -eo pipefail # Exit the script if any statement returns error. | |
| log() { echo -e "$(date --iso-8601=seconds)" "$1"; } | |
| error() { log "ERROR: $1"; } | |
| warn() { log "WARNING: $1"; } |
| <!-- | |
| I use a lot of photos from unsplash as headers. This shortcode works in two ways to make that easier: | |
| 1. Standard use | |
| {{< copyright name="Malte Wingen" href="https://unsplash.com/@maltewingen?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" >}} | |
| 2. Automatic parsing of filename | |
| {{< copyright >}} |
| #!/bin/bash | |
| # where-is-my-domain-blacklisted.sh | |
| # Copyright 2020 medakk | |
| # Released under MIT License | |
| if [ -z $1 ] ; then | |
| echo "Usage: $0 <domain to search for>" | |
| echo "Make sure you have jq and wget installed" | |
| exit 1 |
Instructions for a mac on how to play with pyenv and poetry
Why both? Pyenv to manage multiple python versions. You can make virtualenvs with pyenv of course, but using poetry will simplify that process
# Install pyenv.
brew install pyenv
# Add pyenv initializer to shell startup script.
echo -e '\nif command -v pyenv 1>/dev/null 2>&1; thenInstructions for installing zsh plugins, for a variety of plugin managers
Add <owner>/<repo> to your plugins file. If you use static loading, run the update command.
Antidote: Add <owner>/<repo> to your plugins file. If you generate your static plugins file manually, run the bundle command.