A regex that matches 10 or more consecutive hashtags (after some other text). I use this to filter out spammy Mastodon posts.
A bookmarklet for visualizing different card types in the GitHub project view better.
To create the bookmarklet, use a minifyer (like Minify for VS Code), or a tool like Bookmarklet builder.
Add the minified code as a bookmarklet (start with javascript:
).
Alternatively, use the custom style file with e.g. Stylus. This is the preferred option if you’re able to install an extension to the browser (the bookmarklet requires activation every time but does not require installing anything).
/.quarto/ | |
/_book/ | |
/.render-timestamp |
javascript:(() => { const nitter_instance = 'nitter.net'; const current_url = window.location.href; window.location.href = current_url.replace(/(mobile\.)?twitter\.com/, nitter_instance); })(); |
Tries to find and activate a virtual environment either in the current directory or the closest one in the hierarchy.
Example:
- in
/foo/bar/baz
- first, checks if
/foo/bar/baz/venv/bin/activate
is found (and uses that if it is) - next, tries
/foo/bar/venv/bin/activate
- after that,
/foo/venv/bin/activate
max.kaßner@bücher.de | |
kissa@localhost | |
"@"@example.com | |
"Joonas Koivunen"[email protected] |
linecounter2
is an alternate version that goes to the previous line, erases it and rewrites with new info. Might be useful if you need the newline character at the end of the string (for example to flush an output buffer).
I hereby claim:
- I am teroyks on github.
- I am teroyks (https://keybase.io/teroyks) on keybase.
- I have a public key ASCJsSjGzCiVzu4TCshLQwbWuCMYqmoTzxyWN5FsWozHVwo
To claim this, I am signing this object:
Install a user scripts extension, for example Stylish for Chrome to enable custom styles for a website.
In Stylish, install a user style:
- Click on the Stylish icon on the Chrome toolbar, and select Create New Style from the action menu ( ⠇).
- Copy the CSS style from
code.css
into the Code field. - Set the Applies to method to URLs matching the regexp and copy the value from
URL regex
. - Give a name to your custom style and save.