Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
Action | Windows/Linux | macOS |
---|---|---|
New window | Ctrl+Shift+N | Cmd+N |
Close window | Alt+F4 | Cmd+Shift+W |
rlmu.odin
into an rlmu/ folder in your Odin projectimport "rlmu"
import mu "vendor:microui"
main :: proc() {
rl.SetWindowState({ rl.ConfigFlag.WINDOW_RESIZABLE })
rl.InitWindow(720, 600, "Odin/Raylib/microui Demo")
Notes from the Mystery Machine Bus
I've spent the past eight years (starting back in June 2004) writing elaborate rants about a bunch of vaguely related software engineering issues.
I was doing all that ranting because I've been genuinely perplexed by a set of "bizarre" world-views held dear by -- as far as I can tell -- about half of all programmers I encounter, whether online or in person.
Last week, after nearly a decade of hurling myself against this problem, I've finally figured it out. I know exactly what's been bothering me.
In today's essay I'm going to present you with a new conceptual framework for thinking about software engineering. This set of ideas I present will be completely obvious to you. You will probably slap yourself for not having thought of it yourself. Or you might slap the person next to you. In fact you probably have thought of it yourself, because it is so blindingly obvious.
To setup debugging for Odin programs on Windows with VsCode follow these steps:
.vscode
folder at the root of your Odin projectlaunch.json
and tasks.json
into itNote: if you want to use a starter template which also sets up a tracking allocator which tracks and reports memory leaks you can use: https://github.com/RednibCoding/Odin-Starter
'use strict'; | |
exports.handler = (event, context, callback) => { | |
// Get request and request headers | |
const request = event.Records[0].cf.request; | |
const headers = request.headers; | |
// Configure authentication | |
const authUser = 'user'; | |
const authPass = 'pass'; |
import toga | |
from collections import namedtuple | |
# Structure of the main data source of the tree | |
GRADES = namedtuple('Grades', 'cl grade') | |
class TreeStructure: | |
def __init__(self): | |
# Data source of the tree | |
self.data = ( |
mkdir ~/vim | |
cd ~/vim | |
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim | |
# Compiled on Jul 20 2017 | |
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz | |
export VIMRUNTIME="$HOME/vim/runtime" | |
export PATH="$HOME/vim:$PATH" | |
cd - |
Original post : https://unix.stackexchange.com/a/310699
nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
#!/bin/bash | |
# For arrow-keys history and other cmdline goodies, install rlwrap and replace | |
# the first line by: #!/usr/bin/rlwrap bash | |
# This is a hack to simulate a REPL for VOC (http://pybee.org/voc) | |
# | |
# Behind the scenes, every time you try a new expression it appends it to a temporary | |
# file, recompiles it and re-runs it, omitting the previous output. | |
# | |
# This has the caveat that if some expression you enter raises an exception, |
RCFs we will read!
Terms: https://tools.ietf.org/html/rfc2119
RFC Statuses: https://en.wikipedia.org/wiki/Request_for_Comments
TOTP - https://tools.ietf.org/html/rfc6238 Evil bit - https://tools.ietf.org/html/rfc3514