This file contains hidden or 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
| // ==UserScript== | |
| // @name nixpkgs filter | |
| // @version 2026-03-24 | |
| // @description make commit history readable | |
| // @author DavidArsene | |
| // @match https://github.com/NixOS/nixpkgs/commits/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
| // @grant none | |
| // @run-at document-idle | |
| // ==/UserScript== |
This file contains hidden or 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
| (object { | |
| private lateinit var demo: String | |
| fun something() { | |
| demo = "test" | |
| println(demo) // test | |
| // Regular Java reflection, no Kotlin magic, but isn't name safe | |
| uninit("demo") // in `this` | |
This file contains hidden or 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
| #? Redirect to our flake.nix | |
| import (builtins.getFlake "nixpkgs") |
This file contains hidden or 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 bash | |
| set -euo pipefail | |
| BRANCH="v6.19" | |
| git clone --depth 1 --filter blob:none --no-checkout --ref-format reftable --branch $BRANCH https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux | |
| git -C linux sparse-checkout set --no-cone /scripts/kconfig/ '*Kconfig*' | |
| git -C linux checkout |
This file contains hidden or 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
| { | |
| "timeStamp": 1764339026966, | |
| "version": "1.67.0", | |
| "userSettings": { | |
| "importedLists": [], | |
| "popupPanelSections": 31, | |
| "suspendUntilListsAreLoaded": true | |
| }, | |
| "selectedFilterLists": [ | |
| "user-filters", |
This file contains hidden or 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
| { | |
| CapabilityFileSharing: "https://tailscale.com/cap/file-sharing", | |
| CapabilityAdmin: "https://tailscale.com/cap/is-admin", | |
| CapabilityOwner: "https://tailscale.com/cap/is-owner", | |
| // feature enabled/available | |
| CapabilitySSH: "https://tailscale.com/cap/ssh", | |
| // some SSH rule reach this node | |
| CapabilitySSHRuleIn: "https://tailscale.com/cap/ssh-rule-in", | |
| // feature enabled |
This file contains hidden or 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 bash | |
| set -euo pipefail | |
| # How to use: | |
| # Look at network requests for s0/tiles, then first number is latitude, second is longitude. | |
| [[ $# -ne 5 ]] && { echo "Usage: $0 <dir> <lat_start> <lat_end> <lon_start> <lon_end>"; exit 1; } | |
| dir="$1" | |
| lat_start="$2" | |
| lat_end="$3" |
This file contains hidden or 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 bash | |
| pushd "/nix/var/nix/profiles" > /dev/null | |
| function gen-to-num() { | |
| if [[ "$1" =~ system-([0-9]+)-link ]]; then | |
| echo "${BASH_REMATCH[1]}" | |
| fi | |
| } |
This file contains hidden or 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
| Clear-Content -Path .\Display.Driver\* -Filter "lib*" -Verbose |
This file contains hidden or 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
| mountvol S: /S | |
| Get-ChildItem S:\EFI\Microsoft\Boot -Filter '??-*' | Where-Object Name -CNE 'en-US' | Remove-Item -Recurse | |
| mountvol S: /D |
NewerOlder