https://www.x.org/releases/X11R7.7/doc/libX11/i18n/compose/en_US.UTF-8.html
$ setxkbmap -option # clear option
$ setxkbmap -model pc105 -layout us -option compose:ralt,caps:ctrl_modifier,shift:both_capslock
https://www.x.org/releases/X11R7.7/doc/libX11/i18n/compose/en_US.UTF-8.html
$ setxkbmap -option # clear option
$ setxkbmap -model pc105 -layout us -option compose:ralt,caps:ctrl_modifier,shift:both_capslock
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.
Let’s create our table driven test, for convenience, I chose to use t.Log
as the test function.
Notice that we don't have any assertion in this test, it is not needed to for the demonstration.
func TestTLog(t *testing.T) {
t.Parallel()
/** | |
* Encrypts plaintext using AES-GCM with supplied password, for decryption with aesGcmDecrypt(). | |
* (c) Chris Veness MIT Licence | |
* | |
* @param {String} plaintext - Plaintext to be encrypted. | |
* @param {String} password - Password to use to encrypt plaintext. | |
* @returns {String} Encrypted ciphertext. | |
* | |
* @example | |
* const ciphertext = await aesGcmEncrypt('my secret text', 'pw'); |