This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* thanks to https://theme-toggle.rdsx.dev */ | |
/* circle */ | |
::view-transition-group(root) { | |
animation-timing-function: var(--expo-out); | |
} | |
::view-transition-old(root), .dark::view-transition-old(root) { | |
animation: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Steps to Create a Quick Action in Automator for Opening a Folder in Jupyter Notebook: | |
# 1. In Automator, create a Quick Action. | |
# 2. Set the workflow to receive current files or folders in any application. | |
# 3. Add a Run Shell Script action. | |
# 4. Set “Pass input” as “arguments”. | |
# 5. Paste the following bash script into the shell script section. | |
# Now, you can easily open the selected folder in Jupyter Notebook from finder actions. Enjoy! | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -e 'require "socket"; puts Addrinfo.tcp("", 0).bind {|s| s.local_address.ip_port }' | |
# OR | |
comm -23 \ | |
<(seq "$FROM" "$TO") \ | |
<(ss -tan | awk '{print $4}' | cut -d':' -f2 | grep '[0-9]\{1,5\}' | sort -n | uniq) \ | |
| shuf | head -n "$HOWMANY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function watchForElement(className , cb) { | |
const observer = new MutationObserver((mutationsList) => { | |
for (const mutation of mutationsList) { | |
if (mutation.type === 'childList') { | |
const addedNodes = Array.from(mutation.addedNodes); | |
const elementExists = addedNodes.some(node => node.classList && node.classList.contains(`${className}`)); | |
if (elementExists) { | |
// Element with the specific class has been added to the DOM | |
console.log('Element added!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#################################################################################### | |
# | |
# Download Compile and Install BitchX on Ubuntu | |
# | |
#################################################################################### | |
# download bitchx source | |
# @todo make smarter, i.e. regexp, though now uses _always_ available commands (sic) |