Extracted from: https://github.com/kurokirasama/nushell_sublime_syntax with the fix from kurokirasama/nushell_sublime_syntax#4
| # ╔══════════════════════════════════════════════════════════════════════════╗ | |
| # ║ changelog.nu – produce collapsible-Markdown release notes from jj log ║ | |
| # ║ ║ | |
| # ║ Usage: nu changelog.nu [<revset>] ║ | |
| # ║ – <revset> always appends "~empty()" to drop empty commits. ║ | |
| # ║ Needs: Nushell 0.91+ • jj 0.24+ ║ | |
| # ╚══════════════════════════════════════════════════════════════════════════╝ | |
| export def main [revset: string] { |
Extracted from: https://github.com/kurokirasama/nushell_sublime_syntax with the fix from kurokirasama/nushell_sublime_syntax#4
| # repl-env.nu | |
| # example: | |
| # > let repl_env = repl-env setup-env | |
| # > $env.repl-env = ($repl_env.repl-env | upsert max_length 5) | |
| # > $env.config = $repl_env.config | |
| # | |
| # use the `@` alias to view the last commands output (or use the repl-env get-history command) | |
| # | |
| # $env.repl-env will look like: | |
| # { |
* -drive if=none,id=vm,format=raw,file=$VM -device virtio-blk-pci,id=vmvirt1,drive=vm
Note
This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.
How to use this script:
Console tab| #Install Github CLI | |
| # Set the scopes used for the token | |
| gh auth login -s read:packages,write:packages,delete:packages | |
| # Read the token in and use it in the docker login call | |
| gh auth token | docker login ghcr.io -u username --password-stdin |
This is an overview of how I configured my system to play a sound when a USB device (such as a flash drive) is plugged in.
udev and systemd.aplay).Using the tool aplay (found in the Arch package alsa-utils), it is easy to play an audio file: aplay insert.wav
| #!/bin/bash | |
| gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
| // ==UserScript== | |
| // @name KeyBR Colemak-DH | |
| // @namespace http://tampermonkey.net/ | |
| // @version v1.1 | |
| // @description Switch Colemak layout in keybr.com to Colemak DH | |
| // @author https://github.com/Zyst | |
| // @match https://www.keybr.com/ | |
| // @icon https://www.google.com/s2/favicons?domain=keybr.com | |
| // @grant none | |
| // @contributors https://github.com/hilarycheng |