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
# ~/src/non-oss-container/build.sh | |
#!/bin/bash | |
set -euo pipefail | |
mkdir -p ~/non-oss-root/ | |
podman image rm --force localhost/non-oss || : |
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 -euo pipefail | |
shopt -s inherit_errexit | |
mkdir -p ~/.cache/mrhlpr | |
case "${1:-}" in | |
'fixmsg') | |
if [ -n "$(git status --porcelain)" ]; then |
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
//! <https://rust.godbolt.org/z/z78Gh8j47> | |
/// # Safety | |
/// | |
/// `ptr` must point to an allocation that contains at least `size_of::<u64>()` bytes | |
/// at `ptr`'s address. | |
#[inline(never)] | |
pub unsafe fn core_read_unaligned(ptr: *const u8) -> u64 { | |
// With `target-feature+unaligned-scalar-mem` this does a single `ld` as desired. | |
// Without that feature it falls back to loading each byte one-by-one and shifting them into place, |
OlderNewer