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:
#!/usr/bin/env bash | |
# | |
# Restart USB 3.0 to ethernet adapter (ASIX Electronics Corp. AX88179 Gigabit Ethernet) | |
# | |
# The device will stop functioning with this error message below: | |
# | |
# [ 1179.475926] kernel: xhci_hcd 0000:04:00.0: WARN: TRB error for slot 1 ep 5 on endpoint | |
# [ 1179.607026] kernel: xhci_hcd 0000:04:00.0: WARN waiting for error on ep to be cleared | |
# [ 1179.607049] kernel: xhci_hcd 0000:04:00.0: WARN waiting for error on ep to be cleared |
""" | |
Example of using fcntl.flock for locking file. Some code inspired by filelock module. | |
""" | |
import os | |
import fcntl | |
import time | |
def acquire(lock_file): |
127.0.0.1 ocsp-lb.apple.com.akadns.net | |
127.0.0.1 ocsp-cn-lb.apple.com.akadns.net | |
127.0.0.1 ocsp.apple.com.download.ks-cdn.com | |
127.0.0.1 k128-mzstatic.gslb.ksyuncdn.com | |
127.0.0.1 ocsp.apple.com.cdn20.com | |
127.0.0.1 ocsp.g.aaplimg.com | |
127.0.0.1 ocsp.apple.com | |
127.0.0.1 ocsp.digicert.com |
using HidSharp; | |
using System.Linq; | |
namespace ForceTouchTrigger | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Force Touch Device: USB\VID_05AC&PID_0265&MI_02 |
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
Scripts to confgire a group of hosts on a LAN to use VXLAN over Wireguard.
# view gloabl prefs in json | |
# plutil -convert json -o - -- /Library/Preferences/.GlobalPreferences.plist | python -m json.tool | |
import CoreFoundation as cf | |
# get current Country | |
cf.CFPreferencesCopyValue('Country', cf.kCFPreferencesAnyApplication, cf.kCFPreferencesAnyUser, cf.kCFPreferencesAnyHost) | |
# set Country | |
cf.CFPreferencesSetValue('Country', 'TW', cf.kCFPreferencesAnyApplication, cf.kCFPreferencesAnyUser, cf.kCFPreferencesAnyHost) |
This is a quick guide of the commands we use to sign someone's GPG key in a virtual key signing party.
Note: The steps cover only the technical aspects of signing someone's key. Before signing someone's key, you must verify their identity. This is usually done by showing government-issued ID and confirming the key's fingerprint
The commands will work for both GPG and GPG2.
I use Julian's key for the examples. His key id is 2AD3FAE3
. You should substitute with the appropriate key id when running the commands.
gpg --list-keys
.