Dual boot Ubuntu
sudo apt update| package org.foo; | |
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.stream.Collectors; | |
| import static org.junit.jupiter.api.Assertions.assertEquals; | |
| import org.junit.jupiter.api.Test; | |
| public class Node { |
| # force a reload of the config file | |
| unbind r | |
| bind r source-file ~/.tmux.conf \; display-message "Configuration reloaded" | |
| # act like vim | |
| set-window-option -g mode-keys vi | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R |
| .print : Print something | |
| ANY → print(f"$expr$={repr($expr$)}") | |
| .debug : log with debug | |
| ANY → $END$.debug(f"$expr$={repr($expr$)}") | |
| .info : log with info | |
| ANY → $END$.info(f"$expr$={repr($expr$)}") | |
| .error : log with error |
| .vscode |
| def config_color_logging(): | |
| """Configure and return a colored console logger. | |
| see https://github.com/borntyping/python-colorlog#usage | |
| see https://docs.python.org/3/library/logging.html#logrecord-attributes | |
| :return: logger | |
| """ | |
| import colorlog |
| #!/bin/bash | |
| # | |
| # Watch current directory (recursively) for file changes, and execute | |
| # a command when a file or directory is created, modified or deleted. | |
| # | |
| # Written by: Senko Rasic <[email protected]> | |
| # | |
| # Requires Linux, bash and inotifywait (from inotify-tools package). | |
| # | |
| # To avoid executing the command multiple times when a sequence of |
Diffing tool for directed acyclic graphs (aka DAG ie trees) data structures such as those defined as json and XML.