This will be a living document where I will ocassionally add new "gotchas" I discover with Rust. Do note that I am still learning Rust. I mean, who isn't?
8 May 2021.
Dear diary,
This table visualises the space of eBPF opcodes. It was generated by this hack
The *s represent opcodes that are exposed but not actually used, or used internally but not exposed
Note that there are gaps, but no empty columns.
There's also a prettier version here
| 0x00 | 0x01 | 0x02 | 0x03 | 0x04 | 0x05 | 0x06 | 0x07 |
| #!/bin/bash -e | |
| if [ "$(uname -s)" != "Darwin" ] | |
| then | |
| echo "This script is for building a Debian x86_64 image to use on MacOS" | |
| exit 1 | |
| fi | |
| TEMP="$(mktemp -d build.XXXXX)" | |
| cp preseed.cfg $TEMP |
| DEBUG: Executing python function extend_recipe_sysroot | |
| NOTE: Direct dependencies are ['virtual:native:/mnt/a/oe/sources/openembedded-core/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/mnt/a/oe/sources/openembedded-core/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/mnt/a/oe/sources/openembedded-core/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', 'virtual:native:/mnt/a/oe/sources/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', '/mnt/a/oe/sources/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/mnt/a/oe/sources/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', '/mnt/a/oe/sources/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.28.bb:do_populate_sysroot', 'virtual:native:/mnt/a/oe/sources/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', |
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
| # In this guide, the server is hosted by Linode and with Fedora 27 server as OS. | |
| # Register a freenode nick name by following https://freenode.net/kb/answer/registration | |
| # ZNC setup needs this information | |
| sudo dnf -y update | |
| # Follow docker installation doc https://docs.docker.com/install/linux/docker-ce/fedora/#os-requirements | |
| sudo dnf remove docker \ | |
| docker-client \ | |
| docker-client-latest \ | |
| docker-common \ | |
| docker-latest \ |
(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)
The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.
pdanford - April 2020
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
| /* false, 0, undefined, null, NaN, "" are false */ | |
| > Boolean(false) | |
| false | |
| > Boolean(0) | |
| false | |
| > Boolean("") | |
| false | |
| > Boolean(undefined) | |
| false |
| (ns async-test.timeout.core | |
| (:require [cljs.core.async :refer [chan close!]]) | |
| (:require-macros | |
| [cljs.core.async.macros :as m :refer [go]])) | |
| (defn timeout [ms] | |
| (let [c (chan)] | |
| (js/setTimeout (fn [] (close! c)) ms) | |
| c)) | |