scy / dotfiles Goto Github PK
View Code? Open in Web Editor NEWMy personal configuration files and helper scripts.
My personal configuration files and helper scripts.
The \e[x q
escape sequence, where x
is an integer, can be used to set the cursor style in some terminals, see ctrlseqs (look for DECSCUSR
on that page).
If I set my preferred style (e.g. 5
(bar) or 1
(block)) in my shell prompt, I don’t have to configure this in each terminal emulator separately. (That is, if all of my terminal emulators support that sequence.)
(NB: There seems to be a consensus emerging to use 0
as meaning “return to default set in the terminal config”, but I don’t think I’m gonna go with that.)
1f86e68 introduced VimWiki. However, when creating a hyperlink to another wiki page (using the Enter
key), the resulting Markdown will not contain the .md
extension, but instead look like [Link](link)
, not [Link](link.md)
. VimWiki itself can follow these links, but external tools can't.
There's vimwiki/vimwiki@eb00d30 that fixes it, but it hasn't hit their master
yet. I'll either be simply waiting for that or forking VimWiki and cherry-picking that commit. Or I might even set my submodule to it, depending on what other history I'm pulling in in that case.
Running the setup instructions twice (because bin/apply-scy-config
failed, for example) causes the second run to overwrite the backup in .orig_home
from the first run irrevocably.
Check whether the backup dir already exists, and if it does, refuse to continue.
The idea would be to
apply-scy-config
, run TCE to install Composer if PHP is present and bin/composer
is notI'm waiting for the outcome of fastbill/tiny-composer-installer#5 though.
Currently, WSL does not support attaching USB devices to the Linux environment. Therefore, you can't use a YubiKey directly for GnuPG or SSH operations.
Some people work around this by installing GPG4Win on the host and then forwarding its agent capabilities into Linux: This tweet shows @NZSmartie using npiperelay to access the host's GnuPG agent inside of WSL.
I need to figure out whether that's a mode of operation I'm comfortable with, whether I consider it secure enough and whether I think that I even need my YubiKey on my Windows machine.
Sometimes, after I lock my Windows laptop for an extended period of time with an external monitor connected via HDMI, after unlocking it again one of the 8 cores will be at ~80% utilization. This issue goes away only after a reboot or by disconnecting the external monitor (but then comes back when reattaching).
To reduce the impact, I'm currently experimenting with increasing the time it takes from locking the screen to putting the screens in standby. By default, after 1 minute of being locked, the screens turn off. This article explains how to change that value. I've used the command-line way to do it:
powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 1800
powercfg.exe /SETACTIVE SCHEME_CURRENT
This seems to work. I'll keep it at this setting for a few days and check whether the issue still appears. If not, I should introduce these commands to bin/apply-scy-config
.
After calling abed
in a fish instance, abbreviations like gs
no longer work, at least not until you reload them (for example by running gited
).
I guess this is because of the set -g fish_user_abbreviations
at the start of .config/fish/conf.d/_abbreviations.fish
?
Apparently 074f892 broke $PATH
(original continues at […]
, but it's not relevant here):
scy@spec ~> echo $PATH
/home/scy/bin:/home/scy/.local/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games […]
fish has native support for "list" variables, colon-style is wrong.
Find out how to do this the right way and make sure that it doesn't break bash.
From time to time I work on a Git repo where I’m supposed to my business email address, but forgot to set git config user.email [email protected]
and thus create commits with the wrong address.
There’s the includeIf
solution, but it only works with Git ≥ 2.13. Since I’ve migrated from WSL/Debian to WSL/Ubuntu for most of my work, I now have at least 2.17 available.
Still, maybe aliasing git clone
would be a better solution, or can I do something like unsetting --global user.email
?
The upstream issue is pqrs-org/Karabiner-Elements#1502. No workaround except disabling Karabiner.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.