Reference: https://stackoverflow.com/a/68121888/2949840
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc cargo build --target x86_64-unknown-linux-gnu --release
See also:
Toolchains:
use std::env; | |
use std::fs; | |
// extern crate base64; | |
// From the specification | |
// https://docs.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash | |
// According to the spec, the block is "big-endian" | |
type Block = [u8; 20]; // Intrinsically with Copy trait |
Reference: https://stackoverflow.com/a/68121888/2949840
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc cargo build --target x86_64-unknown-linux-gnu --release
See also:
Toolchains:
{ | |
"recommendations": [ | |
"vknabel.vscode-apple-swift-format", | |
"sswg.swift-lang", | |
"nisargjhaveri.ios-debug" | |
] | |
} |
# frozen_string_literal: true | |
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out |
Install the pg
gem on M1:
arch -arch x86_64 gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/13/bin/pg_config
config openvpn 'myvpn' | |
option dev 'tun' | |
option topology 'subnet' # This is important | |
option comp_lzo 'adaptive' | |
option ca '/etc/openvpn/ca.crt' | |
option dh '/etc/openvpn/dh.pem' | |
option cert '/etc/openvpn/server.crt' | |
option key '/etc/openvpn/server.key' | |
option persist_key '1' | |
option persist_tun '1' |
/*! *!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*\ | |
Apple CloudKit TypeScript Library | |
Copyright (c) TypeScriptLibs and Contributors | |
Licensed under the MIT License; you may not use this file except in | |
compliance with the License. You may obtain a copy of the MIT License at | |
https://typescriptlibs.org/LICENSE.txt |
# Credit: https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 | |
echo "Your current swap is:" | |
sudo swapon --show | |
free -h | |
echo "Your disk usage is:" | |
df -h | |
echo "Press any key to continue..." | |
read -s -n 1 key | |
echo "Allocating 1GB swap file:" |
extension ItemDeleteConfirmationActor { | |
func onDelete(_ indexSet: IndexSet) { | |
_alertStatus.wrappedValue = .deleteConfirmation(indexSet: indexSet) | |
} | |
func deleteConfirmationAlert() -> some View { | |
alert(item: _alertStatus) { alertStatus -> Alert in | |
switch alertStatus { | |
case let .deleteConfirmation(indexSet): | |
return Alert( |
rm ~/Library/LaunchAgents/com.google.keystone.agent.plist | |
rm ~/Library/LaunchAgents/com.google.keystone.xpcservice.plist | |
rm ~/Library/Caches/com.google.Keystone | |
rm ~/Library/Preferences/com.google.Keystone.Agent.plist |