- Install Firefox Grammarly extension and login
- Go to
about:debugging#/runtime/this-firefoxfind Grammarly and clickInspect - In the new window open the tab
Storage - Open the "Extension Storage" tab and click on the
moz-extensionentry. - On the right find the key
user - The entry
idcontains the Grammarly client/user ID
| import sys | |
| from abc import ABC, abstractmethod | |
| class DictBase(ABC): | |
| @abstractmethod | |
| def do(self): | |
| pass | |
| class SlotBase(ABC): |
| #!bash | |
| echo -n "file://$( readlink -f $@ )" | wl-copy -t "text/uri-list" |
This tool exands the compile_commands.json of unity build files generated by CMake to enable clangd support.
Without this, clangd doesn't know what to do with the compilation units.
Default file is compile_commands.json in the current working directory.
Outputs to console by default. Use -i to update in-place.
To use:
| # Setup directory with extra packages and documentclasses | |
| ensure_path( 'TEXINPUTS', './extra//' ); | |
| # Setup out directory | |
| $out_dir = 'build'; | |
| # Setup main file | |
| @default_files = ( 'main.tex' ); | |
| # Setup command options (use -shell-escape only if necessary) |
| [Desktop Entry] | |
| Name=preCICE Config Visualizer | |
| Comment=Visualize preCICE configuration files | |
| Exec=sh -c "$HOME/.local/bin/precice-config-visualizer-gui %f" | |
| Terminal=false | |
| Type=Application | |
| Categories=Development | |
| MimeType=application/xml | |
| StartupNotify=true | |
| StartupWMClass=preciceconfigvisualizer |
This is a plugin for oh-my-zsh.
It keeps track of the last directory you cd to.
When starting a new terminal, it automatically cds to that directory again.
If zoxide is loaded, then the plugin uses __zoxide_z instead of cd.
This is very useful if you want to quickly start two terminals, one for a source directory and one for a build directory.
You start in one terminal and cd to the source. Then you open a new terminal, which starts in the same directory an you cd to the build directory.
| changeworktree() | |
| { | |
| WT=$(git worktree list --porcelain | sed -e "/^HEAD/d" -e "/^$/d" -e "s/^worktree //" -e "s/branch refs\/heads\/\(.\+\)/\1/" | paste -d '\t' - - | column -t --output-separator=$'\t' | fzf --ansi | cut -f1 -d' ' ) | |
| [ -n "$WT" ] && cd $WT | |
| } | |
| alias cdgw="changeworktree" |
| #! python | |
| import subprocess | |
| import concurrent.futures | |
| from colorama import Style, Fore | |
| import sys | |
| import pathlib | |
| import tempfile | |
| import os | |
| import collections |