See the snippets "guide.md" and "redis.md" below.
If you're wanting to run Docker Swarm on your Raspberry Pi checkout these instructions:
| (require 'tramp) | |
| (add-to-list 'file-name-handler-alist '("\\`/home/shkoo/devdir/" . shkoo-dev-file-handler)) | |
| (add-to-list 'file-name-handler-alist '("\\`~/devdir/" . shkoo-dev-file-handler)) | |
| (defun shkoo-dev-make-process (&rest args) | |
| (when args | |
| (let ((default-directory tramp-compat-temporary-file-directory) | |
| (name (plist-get args :name)) | |
| (buffer (plist-get args :buffer)) | |
| (command (plist-get args :command)) |
| Add the following in .zshrc: | |
| ... | |
| plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
| ... | |
| ### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
| pasteinit() { | |
| OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
| zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |
See the snippets "guide.md" and "redis.md" below.
If you're wanting to run Docker Swarm on your Raspberry Pi checkout these instructions:
| bundle agent main | |
| { | |
| methods: | |
| "test"; | |
| vars: | |
| "test_state" data => bundlestate(test); | |
| "test_string" string => storejson(test_state); | |
| reports: |
| All challenges. I lied a bit, these are actually in **reverse** chronological order, to make it less annoying to use on mobile devices. | |
| Easy | Intermediate | Hard | Weekly/Bonus | |
| -----|--------------|------|------------- | |
| | []() | []() | []() | **-** | | |
| | [[2015-08-03] Challenge #226 [Easy] Adding fractions](/r/dailyprogrammer/comments/3fmke1/20150803_challenge_226_easy_adding_fractions/) | []() | []() | **-** | | |
| | [[2015-07-27] Challenge #225 [Easy/Intermediate] De-columnizing](/r/dailyprogrammer/comments/3esrkm/20150727_challenge_225_easyintermediate/) | [[2015-07-29] Challenge #225 [Intermediate] Estimating pi from images of circles](/r/dailyprogrammer/comments/3f0hzk/20150729_challenge_225_intermediate_estimating_pi/) | [[2015-07-31] Challenge #225 [Intermediate] Diagonal Maze](https://www.reddit.com/r/dailyprogrammer/comments/3f9o7k/20150731_challenge_225_intermediate_diagonal_maze/) | **-** | | |
| | [[2015-07-20] Challenge #224 [Easy] Shuffling a List](/r/dailyprogrammer/comments/3e0hmh/20150720_challenge_224_e |
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New new -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |