command | description |
---|---|
ctrl + a | Goto BEGINNING of command line |
This file contains 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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This file contains 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
# Add the following 'help' target to your Makefile | |
# And add help text after each target name starting with '\#\#' | |
help: ## Show this help. | |
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
# Everything below is an example | |
target00: ## This message will show up when typing 'make help' | |
@echo does nothing |
(note: replace ORGANIZATION
and PROJECT
)
git clone git clone [email protected]:ORGANIZATION/PROJECT.git my-repository
This file contains 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
Package: com.example.package | |
Name: Example Package | |
Description: An example package. | |
This longer description will load when a depiction URL is not specified. | |
Author: Ms. Example <[email protected]> | |
Maintainer: Example, Inc. <[email protected]> | |
Version: 1.0-1 | |
Section: Addons (SpringBoard) | |
Pre-Depends: com.example.system | |
Depends: com.example.library |
Based on https://www.gnu.org/software/make/manual/html_node/Quick-Reference.html
Directive | Description |
---|---|
define variable define variable = define variable := define variable ::= define variable += define variable ?= endef |
Define multi-line variables. |
undefine variable |
Undefining variables. |
Also see the Modrinth Awesome list, and a (probably somewhat outdated) list of curse modpack downloaders at https://gist.github.com/jikuja/f44533a16ad04624c3eb8e99e7a3e494/
This list is a bit outdated in places, but I'm still adding things here so that I don't forget them.
Name | Type | Number of mods/packs | Popularity (Similarweb rank) | Official launcher | Third-party support | Open Source backend | Author rewards |
---|---|---|---|---|---|---|---|
CurseForge | Public | 31,000 mods; 38,000 modpacks | #1410 | Yes | Many | No | Yes |
Modrinth | Public | 2000 mods | #79,182 | In development | ATLauncher, packwiz, pacmc, modweaver | Yes | Planned |
This file contains 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 bash | |
# | |
# gpg-export-wkd.sh: Uses gnupg and sequoia-sq to generate a Web Key Directory. | |
# See https://tools.ietf.org/html/draft-koch-openpgp-webkey-service-11 and | |
# https://wiki.gnupg.org/WKD for details. | |
# | |
# Prerequisite: gpg and sq must be located through the PATH. | |
# Install sq with `crate install sequoia-sq` | |
# See also https://crates.io/crates/sequoia-sq | |
# |
OlderNewer