-
Launch Terminal on Mac.
-
To enable aptX, type in the following command:
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
- To enable AAC, type the following:
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/sysctl.h> | |
#include <string.h> | |
#define SC_OPT(KEY) { .id = KEY, .label = #KEY } | |
typedef struct sc_opt { | |
int id; | |
char* label; |
import AppKit | |
import PlaygroundSupport | |
import SwiftUI | |
@objc protocol _NSWindow { | |
var title: String? { get set } | |
var styleMask: UInt { get set } | |
func setFrame(_ frameRect: NSRect, display flag: Bool) | |
func center() | |
func makeKeyAndOrderFront(_ sender: Any?) |
[ | |
{ | |
"code": "100", | |
"phrase": "Continue", | |
"type": "Continue" | |
}, | |
{ | |
"code": "101", | |
"phrase": "Switching Protocols", | |
"type": "SwitchingProtocols" |
#!/usr/bin/env python3 | |
# brew install pygit2 | |
# pip3 install pygit2 | |
from pygit2 import Repository | |
import sys | |
import re | |
regex = r"^([a-z]{1,5})/([A-Z]{1,5}-[0-9]{1,4})" |
Launch Terminal on Mac.
To enable aptX, type in the following command:
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
curl -i https://cloudflare.com/cdn-cgi/trace | grep ip | awk -F'=' '{print $2}' |
import React from "react"; | |
/** | |
* Performs partial object update | |
* @param obj | |
* @param value | |
* @param path | |
*/ | |
export function partialUpdateObject<T=any>(obj: T, value: any, path: string[]): T { | |
const key = path.pop(); |
#!/bin/env bash | |
# nvidia-remove - Disables NVIDIA GPU | |
# | |
# See: http://us.download.nvidia.com/XFree86/Linux-x86_64/455.45.01/README/dynamicpowermanagement.html | |
# Root user ID | |
ROOT_UID=0 | |
# NVIDIA PCI Vendor ID | |
NV_PCI_VENDOR_ID='0x10de' |