This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": { | |
"flake-utils": { | |
"inputs": { | |
"systems": "systems" | |
}, | |
"locked": { | |
"lastModified": 1710146030, | |
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", | |
"owner": "numtide", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Assumes that the differing argument is the last one. | |
import argparse | |
import os | |
from pathlib import Path | |
import shlex | |
import shutil | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": { | |
"flake-utils": { | |
"inputs": { | |
"systems": "systems" | |
}, | |
"locked": { | |
"lastModified": 1709126324, | |
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=", | |
"owner": "numtide", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function what() { | |
echo -n "what $1: " | |
if declare -p "$1" > /dev/null 2>&1; then | |
declare -p "$1" | |
elif declare -F "$1" > /dev/null 2>&1; then | |
declare -F "$1" | |
elif type -t "$1" > /dev/null 2>&1; then | |
type -t "$1" | |
else | |
echo "string --" "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
lib, | |
stdenvNoCC, | |
fetchurl, | |
unzip, | |
}: | |
# This cannot be built from source since Hammerspoon requires entitlements to work, | |
# and codesigning entitlements is unfortunately incompatible with immutability. | |
stdenvNoCC.mkDerivation (self: { | |
pname = "hammerspoon"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xonsh | |
names = $(qdbus org.kde.kglobalaccel /component org.freedesktop.DBus.Introspectable.Introspect | rg r'\s*<node name="(.+)".?>' -r r'$1').splitlines() | |
friendly_names = dict() | |
longest_name_len = 0 | |
for name in names: | |
longest_name_len = max(longest_name_len, len(name)) | |
friendly_name = $(qdbus org.kde.kglobalaccel /component/@(name) org.kde.kglobalaccel.Component.friendlyName).strip() | |
friendly_names[name] = friendly_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Homebrew/env_config.rb b/Library/Homebrew/env_config.rb | |
index 03bb33852..5eadae8ff 100644 | |
--- a/Library/Homebrew/env_config.rb | |
+++ b/Library/Homebrew/env_config.rb | |
@@ -399,6 +399,10 @@ module Homebrew | |
SUDO_ASKPASS: { | |
description: "If set, pass the `-A` option when calling `sudo`(8).", | |
}, | |
+ HOMEBREW_KEEP_OUTPUT: { | |
+ description: "If set, system commands run by Homebrew will not have their output suppressed.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2.0 | |
; Joy1 is A | |
#HotIf WinActive("Task View") | |
Joy1::Send "{Enter}" | |
; Joy2 is B | |
#HotIf WinActive("Task View") | |
Joy2::Send "{Escape}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Map Ctrl-PageUp and Ctrl-PageDown to Ctrl-Tab and Ctrl-Shift-Tab", | |
"rules": [ | |
{ | |
"description": "Map Ctrl-PageUp to Ctrl-Shift-Tab", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(CMAKE_SYSTEM_NAME Generic) | |
set(CMAKE_SYSTEM_PROCESSOR arm) | |
if(CMAKE_HOST_APPLE) | |
execute_process(COMMAND brew --prefix llvm OUTPUT_VARIABLE LLVM_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE) | |
else() | |
set(LLVM_PREFIX /usr) | |
endif() | |
set(target "${TARGET}") |
NewerOlder