- Suggests not starting with a joke.
- Audience isn't necessarily attuned to your mode of speaking.
- Start with an empowerment promise; what will the audience get from the talk.
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
| # Function: | |
| # This HWDB entry maps the second mouse wheel to volume controls. | |
| # | |
| # Usage: | |
| # 1. cp 10-mx-revolution.hwdb /etc/udev/hwdb.d/10-mx-revolution.hwdb | |
| # 2. sudo systemd-hwdb update | |
| # 3. sudo udevadm trigger | |
| # | |
| # References: | |
| # https://wiki.archlinux.org/title/Map_scancodes_to_keycodes |
Notes of the key points copied/summarised from Dave Cheney's Practical Go for more concise reading/reference.
It's worth reading the original document as there is more exposition there of the ideas presented.
These are terse notes only; I'm not providing my own commentary, opinion
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
| #!/bin/sh -eu | |
| # Not sure if this is a headset issue or Ubuntu issue. | |
| # Maybe your itsoffset differs: the value here works for me | |
| # Usage: ./bluetooth_audio_shift.sh <video_filename> | |
| ffmpeg -i "$1" -itsoffset 0.350 -i "$1" -vcodec copy -acodec copy -map 0:1 -map 1:0 -strict -2 "$1.audio-shift.mp4" |
Earlier this year, the Destroy All Software screencasts were free to download. I grabbed a few that sounded interesting to watch.
These are notes of new things I learned.
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
| #!/bin/bash -e | |
| # mailin8.sh: Collect From, Subject, Body from most recent mail | |
| # in a mailinator.com account. | |
| # Usage: mailin8.sh <local_mailbox_name> | |
| # <local_mailbox_name> is the bit before @mailinator.com | |
| # Create temporary file for cookiejar | |
| TEMP=$(mktemp) |
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
| #!/bin/sh -e | |
| if [ -z "$1" ]; then | |
| echo "Usage: signature_count.sh <UK_GOVERNMENT_PETITION_JSON_URL>" | |
| echo "e.g. signature_count.sh https://petition.parliament.uk/petitions/131215.json" | |
| fi | |
| DATA=$(wget -qO - "$1") | |
| echo "Signatures by country:" | |
| echo "$DATA" | jq .data.attributes.signatures_by_country[].signature_count | awk '{ sc += $1 } END { print sc }' | |
| echo "Signatures by constituency:" |
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
| #!/bin/sh | |
| # Usage: ./url-to-pid.sh <URL file> | |
| cat $1 | grep -oP '(?<=episode/)\w+' | paste -d"," -s |
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 python | |
| """ Extract date and 2D length data from GPX files in current directory. """ | |
| from __future__ import division, print_function | |
| import decimal | |
| import glob | |
| import gpxpy | |
| def main(): |
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
| #!/bin/sh | |
| # Usage: convert_gpx.sh <FIT filename> | |
| # Should works whether you include the .FIT extension or not. | |
| filename=$(basename "$1" .FIT) | |
| gpsbabel -i garmin_fit -f "$filename".FIT -o gpx -F "$filename".gpx |
NewerOlder