As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/d3-collapsible-tree |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # For conky's configuration file ($HOME/.conkyrc): | |
| # ${if_running cmus} | |
| # ${execi 03 (conky-cmus.py)} | |
| # ${endif} | |
| from subprocess import check_output | |
| from re import match, compile |
| [ | |
| { "keys": ["super+y"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
| // { "keys": ["super+d"], "command": "duplicate_line" }, -- Default is super+shift+D | |
| { "keys": ["super+`"], "command": "toggle_side_bar" }, | |
| { "keys": ["super+shift+up"], "command": "swap_line_up" }, | |
| { "keys": ["super+shift+down"], "command": "swap_line_down" }, | |
| { "keys": ["ctrl+tab"], "command": "next_view" }, | |
| { "keys": ["ctrl+shift+tab"], "command": "prev_view" }, | |
| { "keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"} } | |
| ] |
| Puts on glasses: | |
| (•_•) | |
| ( •_•)>⌐■-■ | |
| (⌐■_■) | |
| Takes off glasses ("mother of god..."): | |
| (⌐■_■) | |
| ( •_•)>⌐■-■ |
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes |