
Extracted from: https://github.com/kurokirasama/nushell_sublime_syntax with the fix from kurokirasama/nushell_sublime_syntax#4
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
#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 |
A little help in Smali | |
(To be supplemented) | |
# | |
general information | |
# | |
Smali | |
Types | |
Dalvik bytecode has two main type classes, primitive types and reference types. Reference types are objects and arrays, everything else is primitive. |