make qr code for selected text
let selection = window.getSelection().toString();
let encodedSelection = encodeURIComponent(selection)
let popupContent = `<html lang="en">
<head>
| # https://jeancharles.quillet.org/posts/2022-01-30-Local-mariadb-server-with-nix-shell.html | |
| let pkgs = import <nixpkgs> {}; | |
| in pkgs.mkShell { | |
| buildInputs = [ pkgs.mariadb ]; | |
| shellHook = '' | |
| MYSQL_BASEDIR=${pkgs.mariadb} | |
| MYSQL_HOME=$PWD/mysql | |
| MYSQL_DATADIR=$MYSQL_HOME/data | |
| export MYSQL_UNIX_PORT=$MYSQL_HOME/mysql.sock | |
| MYSQL_PID_FILE=$MYSQL_HOME/mysql.pid |
make qr code for selected text
let selection = window.getSelection().toString();
let encodedSelection = encodeURIComponent(selection)
let popupContent = `<html lang="en">
<head>
Various command line snippet managers
| ``` | |
| npm i -D @sveltejs/adapter-static | |
| ``` | |
| ``` | |
| echo "export const prerender = true;" >> ./src/routes/+layout.js | |
| ``` | |
| change | |
| ``` |
docker build -t dockerfile . docker run --expose 5000 -p 5000:5000 dockerfile
docker ps
docker exec -it <container_name> bash
latexrenderer - https://github.com/ArbitRandomUser/latexrenderer
vim-graphical-preview - https://github.com/bytesnake/vim-graphical-preview/
neorg - https://github.com/nvim-neorg/neorg/tree/latex-rendering
hologram-math-preview.nvim - https://github.com/Vaisakhkm2625/hologram-math-preview.nvim
nvimager - https://github.com/mbpowers/nvimager
This is a tutorial on how to touch grass
but they forgot to tell how to make grass green... that is here
LS_COLORS="*grass=01;32:$LS_COLORS"
| //surfingkeys config | |
| // an example to create a new mapping `ctrl-y` | |
| api.mapkey('<ctrl-y>', 'Show me the money', function() { | |
| Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
| }); | |
| // simulate vimium's behaviour of using HLJK | |
| api.map('H','S'); // History back | |
| api.map('L','D'); // History back |