This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
caesar_encrypt.py | |
Encrypt a string with the Caesar cipher using argparse. | |
Usage: | |
$ python caesar_encrypt.py "Hello, World!" --shift 5 | |
$ python caesar_encrypt.py "Attack at dawn!" | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
caesar_encrypt.py | |
Encrypt a string with the Caesar cipher. | |
Usage: | |
# 1. Pass both text and shift on the command line | |
$ python caesar_encrypt.py "Hello, World!" 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e; | |
# Set up a single-node Kubernetes system on Debian 10 (Buster). | |
# Use Flannel as the network fabric. Install the Kubernetes | |
# dashboard. | |
# disable swap | |
swapoff -a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# qutemacs - a simple, preconfigured Emacs binding set for qutebrowser | |
# | |
# The aim of this binding set is not to provide bindings for absolutely | |
# everything, but to provide a stable launching point for people to make their | |
# own bindings. | |
# | |
# Installation: | |
# | |
# 1. Copy this file or add this repo as a submodule to your dotfiles. | |
# 2. Add this line to your config.py, and point the path to this file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'cl) | |
(defstruct wm-window buffer (point 0) (start 0) (hscroll 0) dedicated) | |
(defvar wm-windows) | |
(defvar wm-windows-alist) | |
(defvar wm-focus) | |
(defvar wm-workspace 0) | |
(defvar wm-workspaces nil) | |
(defvar wm-layout 0) |