Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
Prerequisites:
amd64 used hereDependencies (for Arch Linux amd64 but very easy to get on most distros):
edk2-armvirt (or a prebuilt firmware binary from the Unofficial EDK2 nightly build project [some builds may have issues, here's a direct link to a build I confirmed to work])qemu-arch-extra (provides the command qemu-system-aarch64)wget (or any downloader)| # Python 2 only because they removed lambda argument unpacking in 3.0 | |
| import math, sys | |
| from functools import reduce | |
| from itertools import izip_longest | |
| # AOC Day 1 part 1 | |
| print(len((lambda nums: [1 for x, y in zip(nums[:], nums[1:]) if y > x]) | |
| ([int(x) for x in open("input1.txt").read().split()]))) | |
| # AOC Day 1 part 2 |
| ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="22f0", ATTR{idProduct}=="0008", ATTR{bConfigurationValue}="2" |
I've been working with Apache Kafka for over 7 years. I inevitably find myself doing the same set of activities while I'm developing or working with someone else's system. Here's a set of Kafka productivity hacks for doing a few things way faster than you're probably doing them now. 🔥
| Install WireGuard via whatever package manager you use. For me, I use apt. | |
| $ sudo add-apt-repository ppa:wireguard/wireguard | |
| $ sudo apt-get update | |
| $ sudo apt-get install wireguard | |
| MacOS | |
| $ brew install wireguard-tools | |
| Generate key your key pairs. The key pairs are just that, key pairs. They can be |
| import os | |
| from PIL import Image | |
| ''' | |
| I searched high and low for solutions to the "extract animated GIF frames in Python" | |
| problem, and after much trial and error came up with the following solution based | |
| on several partial examples around the web (mostly Stack Overflow). | |
| There are two pitfalls that aren't often mentioned when dealing with animated GIFs - |