^iscrtl.
- ⌥↓ / ⌥↑ Move line down/up
- ⇧⌘\ Jump to matching bracket
| // index.js | |
| process.loadEnvFile(); | |
| const { APP_ID, API_KEY, ALCHEMY_NETWORK = "eth-sepolia" } = process.env; | |
| console.log(`Using APP_ID=${APP_ID}`); | |
| class AlchemyConnector { | |
| constructor({ apiKey, network }) { | |
| this.httpUrl = `https://${network}.g.alchemy.com/v2/${apiKey}`; | |
| this.id = 0; |
| [user] | |
| email = [email protected] | |
| name = Erik Ecoologic | |
| [core] | |
| editor = vim | |
| pager = less -R | |
| excludesfile = /home/erik/.gitignore_global | |
| # excludesfile = /home/erik/.gitignore |
| # echo ${(q)PS1} | |
| # %\(\?:%\{$'[01\;32m%\}%1\{➜%\}\ :%\{$'[01\;31m%\}%1\{➜%\}\ \)\ %\{$'[36m%\}%~%\{$'[00m%\}\ \$\(git_prompt_info\) | |
| # lsb_release -a # Ubuntu release or... | |
| # cat /etc/lsb-release | |
| # du -ah dir/ | sort -n -r | head -n 20 # biggest directories | |
| # find dir/ -type f -printf '%s %p\n' | sort -nr | head -10 # biggest directories | |
| # sudo vim /usr/bin/window-jumper.py # laptop:2560x1500 lenovo: 3840x2160 | |
| # https://stackoverflow.com/questions/7318497/omitting-the-first-line-from-any-linux-command-output | |
| # alias ssh='ssh -o StrictHostKeyChecking=no' |
| #!/bin/bash | |
| # From https://forums.linuxmint.com/viewtopic.php?t=261998 | |
| # Enable "natural scrolling" (reverse mouse wheel) in Linux | |
| # to debug | |
| # set -x | |
| echo "reverse-mouse-scroll" | |
| mouseid=$(xinput --list | grep "DaKai 2.4G RX Mouse" | sed -E 's/.*id=([0-9]+).*/\1/' | head -n1) |
| #!/usr/bin/env python3 | |
| # This script moves the active window to the other monitor. | |
| # From (customised) https://askubuntu.com/questions/804211/create-keyboard-shortcuts-to-move-windows-to-different-monitors-without-compiz | |
| # The size of your monitor. | |
| THRESHOLD_X = 3840 | |
| import gi | |
| gi.require_version('Gdk', '3.0') |
It's practically an all-purpose training of the mind.
Meditation has the objects of stable attention and mindfulness (sati in pali), the latter being the optimal interaction between attention and peripheral awareness.
The practice consists in listening to the meditation object (the breath). Whenever you realise the mind wondered off, you happily move back to the meditation object. That's it, everything else are techniques to remove the time you're not following the meditation object.
ctrl+k e explorer (sometimes ctrl+shift+e)ctrl+1 focus on editoralt+up move line upshift+alt+right extend selectionf12 go to definitionshift+f12 see usagesctrl+d select occurrencesctrl+k ctrl+d skip last selected occurrence and select next (editor.action.moveSelectionToNextFindMatch)ctrl+u undo select occurrencectrl+alt+- go backapp)