118 karma · joined August 13, 2024
At work, we have an XML DSL that bridges two services. It's actually a series of API calls with JSONPath mappings. It has if-else and goto, but no real math (you can only add 1 to a variable though) and no arrays. Debugging is such a pain, makes me wonder why we don't just write Java.
Supported: .profile, .vimrc, .bashrc, .tmux.conf, etc.
This idea comes from kyrat[1]; passing files via a base64 string is a really cool approach.
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...
I'm creating a dotfiles to remote SSH session tool in shell. At first, I wanted to call it "sship", but that name was already taken. Something like "ssh-dotfiles-carrier" felt too long for a command, and abbreviating it to "sdc" would lose the meaning.
So yes, I eventually named it "shitt-p" (character of Hitman Reborn!), since I wanted it to relate to "sh"...
alias v='nvim'
alias vv='f=$(fzf --preview-window "right:50%" --preview "bat --color=always {1}"); test -n "$f" && v "$f"'
alias vvv='f=$(rg --line-number --no-heading . | fzf -d: -n 2.. --preview-window "right:50%:+{2}" --preview "bat --color=always --highlight-line {2} {1}"); test -n "$(echo "$f" | cut -d: -f1)" && v "+$(echo "$f" | cut -d: -f2)" "$(echo "$f" | cut -d: -f1)"' yourcomany.atlassian.net##+js(aeld, /^(?:mousemove|pointermove|pointerout|pointerover|touchmove)$/)
[1] https://community.atlassian.com/forums/Jira-questions/Re-Re-...Instead of ping 8.8.8.8, some will test their internet connection with Hiroshi Abe's homepage because of the speed. There are even challenges where people try to speedrun the site or conversely, make it load as slowly as possible [2].
Google translated page: https://abehiroshi-la-coocan-jp.translate.goog/?_x_tr_sch=ht...
read_pod_html() {
local html=$(mktemp --suffix '.html')
pod2html --css='https://www.w3.org/StyleSheets/Core/parser.css?doc=XML&family=7' "$1" > "$html"
/usr/bin/x-www-browser "$html"
}[1] https://support.mozilla.org/en-US/kb/bookmarks-firefox#w_how...
Edit: I successfully signed the key on AMO. Here are the steps:
Get an access token from https://addons.mozilla.org/developers/addon/api/key/
In manifest.json, add browser_specific_settings.gecko.id and set it to something like "myext@example.com"
Run command: web-ext sign --api-key=<jwt-issuer> --api-secret=<jwt-secret> --channel=unlisted
That command will upload your extension to AMO. After an automatic review, you can download the .xpi file from AMO.
That said, it's not ideal for me since I make extensions for work. Looks like a human reviewer can check your code at any time.For folks who want to learn typing, I recommend Jashe's Typing Guide: https://docs.google.com/document/d/1L-P68VDSGlpLM5A9tfRvWFoh...