Emacs Cheat Sheet
October 17, 2019
Screen navigation Quit C-x C-c Move down a screen C-v Move up a screen M-v forward one char C-f backwards one char C-b up one line C-p down one line C-n forward one word M-f Backwards one word M-b Move to the other window C-x o Move forward one page C-v Move backwards one page M-v Reset page around cursor with it at the center.
Robot Framework Cheat Sheet
October 18, 2019
Emacs Make sure that you create a ctags/etags file so you can use the robot-mode-find-kw function to jump to a keyword’s definition. On windows, I had the best luck with the Universal Ctags executable. Here’s the command that I use at my project’s root to generate my tags file for Emacs: cd project-root ctags.exe -e --langmap="Robot:.robot.txt" -R Debugging General This is an excellent reference: https://docs.plone.org/external/plone.app.robotframework/docs/source/debugging.html Dumping All Variable Values Use the following keyword to dump all of the existing variables:
October 21, 2019
Cheatsheet Reverting changes to modified files git reset --hard Removing a remote branch git push origin --delete my-branch Creating A New Remote For A Local Repo This process is used when: You have code on your local machine that is in a git repo. This code is not currently pushed to a remote. You want to store a remote on a different filesystem (e.
February 12, 2020
Toolset Pipenv Rebuilding a virtual environment Creating a New Project Managing Pipfile and Pipfile.lock Solving PYTHONPATH Issues Checking The Instance Of Python Being Executed Checking The Loaded Libraries At Runtime Checking The Library Version In The REPL Setting Up A Development Environment On Windows sniffer Isn’t Usable on Windows Jedi’s A Little Funny Emacs Setup TLS Oddities Converting an Encrypted Keypair Into Friendly Formats Toolset I’m “ride or die” with Emacs, so I use that as my editor/IDE.
Kubernetes Cheat Sheet
April 19, 2020
kubectl Choosing the correct context First check out your available contexts like this: kubectl config get-contexts CURRENT NAME CLUSTER AUTHINFO NAMESPACE *do-toms-cluster do-toms-cluster do-toms-cluster-admin gke_symmetric-blade-21345 gke_symmetric-blade-21345 gke_symmetric-blade-21345 You can then choose the desired context like this: kubectl config use-context do-toms-cluster Merging Multiple Contexts https://stackoverflow.com/a/46184649/1380901 k3s How to run kubeconfig At first it’s best to run kubeconfig from the k3s server itself. Here’s a nice alias for it: alias kubectl='sudo k3s kubectl' Helm Installation of a Chart First grab the values like thes: