-module(item). | |
-export([gen_shield/0]). | |
-export([transmogrify/2, as_item/1]). | |
-export([weapon_damage/1, look/1]). | |
-record(item, { | |
%% Rather arbitrary identity | |
id :: term(), | |
%% Proplist of items properties |
CREATE OR REPLACE FUNCTION run_server() RETURNS text | |
LANGUAGE plpythonu STRICT | |
AS $$ | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
class PGHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
plpy.notice("Path: %s" % self.path) | |
if self.path.count('/') == 2 and self.path.split('/')[1] != "" and self.path.split('/')[2] != "": | |
nsp = plpy.quote_ident(self.path.split('/')[1]) |
These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
ABSOLUTELY NO WARRANTY. | |
If you are still reading let's carry on with the code. | |
sudo apt-get update && \ | |
sudo apt-get install build-essential software-properties-common -y && \ | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
nice infographics on https://www.reddit.com/r/MechanicalKeyboards/comments/jihbhi/custom_mechanical_keyboard_infographic_v30_is_now/
Cherry MX Brown - to make it similar to the Sun Type 7 keyboard I was using previously (excellent keyboard however too wide).
Fn key - the "house/home" key
- Make an install directory somewhere convenient and switch to it
mkdir -p ~/.local/share/authy
cd ~/.local/share/authy
- Fetch the current Authy snap
# Note: This will only work on Navi21 GPUs (6800/6900+). | |
# See: https://github.com/RadeonOpenCompute/ROCm/issues/1668#issuecomment-1043994570 | |
# Install Conda (latest from https://docs.conda.io/en/latest/miniconda.html#linux-installers) | |
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
bash Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
# follow the prompts to install it, and run `conda` to make sure it's working. | |
# Install git and curl, and clone the stable-diffusion repo | |
sudo apt install -y git curl |
; Creality Ender-3 S1 Pro Optimal Start GCode for Cura Slicer Software. | |
; By John Scott, 2023. https://gist.github.com/JohnScottUK/8acd76895716b3abda4fde270738daf3 | |
;M117 Set Movement... | |
G90; Use absolute positioning. | |
M83; Use relative extrusion. | |
;M117 Heating Bed... | |
M140 S{material_bed_temperature_layer_0}; Start heating bed. |
; Creality Ender-3 S1 Pro Optimal Start GCode for PrusaSlicer Software. | |
; By John Scott, 2023. https://gist.github.com/JohnScottUK/b688deeb579d090f96af29c1375513b3 | |
;M117 Set Movement... | |
G90; Use absolute positioning. | |
;M117 Heating Bed... | |
M140 S{first_layer_bed_temperature[0]}; Start heating bed to temperature. | |
;M117 Homing Axis... |
This [hoot][] you're about to read started its life as a gist of technical minutae I had to discover to Tailscale cloud and on-prem resources. It'd be too boring for me to just publish it, so I thought I'd give a little bit of context as a preamble. I get to rant some and you can simply skip to the technical sections below if you'd rather not indulge me.
How much of what AWS gives you do you really truly need? It's become Kubernetes this, Docker that. I rarely question it when contracting because contractors usually arrive after the fact to pick up and carry the pieces. You get to target the infrastructure that may as well have been installed by alients before humankind ascended in Amazon. All in the cloud, can't touch, jumpbox this, terraform that, re-create the world every time you sneeze, etc. It's different when you're hired fo