Quick install guide for Arch -- if you're looking for an automated installer, consider Arch Anywhere.
Download the latest version from: https://www.archlinux.org/download/
type GrabConstructorParameters<T> = { | |
[K in keyof T]: T[K] extends new (...args: infer P) => any ? P : never; | |
} | |
// https://stackoverflow.com/a/50375286 | |
type UnionToIntersection<U> = | |
(U extends any ? (x: U)=>void : never) extends ((x: infer I)=>void) ? I : never | |
type JoinConstructors<T extends (new (...args:any[]) => any)[]> = | |
new (...args: GrabConstructorParameters<T>) => UnionToIntersection<InstanceType<T[number]>> |
Quick install guide for Arch -- if you're looking for an automated installer, consider Arch Anywhere.
Download the latest version from: https://www.archlinux.org/download/
bind-key -n 'C-\' run-shell -b ${HOME}/.local/bin/tmux-toggle-term |
# Thanks to commenters for providing the base of this much nicer implementation! | |
# Save and run with $ python 0dedict.py | |
# You may need to hunt down the dictionary files yourself and change the awful path string below. | |
# This works for me on MacOS 10.14 Mohave | |
from struct import unpack | |
from zlib import decompress | |
import re | |
filename = '/System/Library/Assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/9f5862030e8f00af171924ebbc23ebfd6e91af78.asset/AssetData/Oxford Dictionary of English.dictionary/Contents/Resources/Body.data' | |
f = open(filename, 'rb') |
import UIKit | |
final class TransitionDelegate: NSObject, | |
UIViewControllerTransitioningDelegate { | |
private let interactiveController = UIPercentDrivenInteractiveTransition() | |
private let duration = CATransaction.animationDuration() | |
func presentationController(forPresented presented: UIViewController, |
# This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019 | |
# Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes. | |
# This function pulls out the common ID used for most of the VMware registry entries along with the ID | |
# associated with the MSI for VMware Tools. | |
function Get-VMwareToolsInstallerID { | |
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) { | |
If ($item.GetValue('ProductName') -eq 'VMware Tools') { | |
return @{ | |
reg_id = $item.PSChildName; |
const std = @import("std"); | |
test "fields" { | |
const U1s = packed struct { | |
a: u1, | |
b: u1, | |
c: u1, | |
}; | |
const x = U1s{ .a = 1, .b = 0, .c = 0 }; |
4U612-DN31H-MJEJ0-0V0Z4-978HD | |
5G44H-ACH50-0J4C9-1VC5P-CY0QD | |
JC000-8G047-MJDF1-0H3E6-8QR5F | |
JV2NU-0XL5N-0J4Q8-0T0E6-8GH56 | |
JZ6E0-4R1E0-HJ1Q0-1R8NH-3AK28 | |
0Z48K-4X29Q-MJE80-113GK-C7K3A | |
HF4H0-46K80-MJ8D9-1KAZP-CKK12 | |
NY69H-2N05P-HJ170-1V1ZM-CG222 | |
4C45A-D8J0H-HJ5T0-1T25H-92A76 | |
0Z4H2-0WK9K-4JE10-0T9G6-9C8M4 |