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
# vim: set language=bash; | |
CHOST="aarch64-unknown-linux-gnu" | |
# Optimization flags. | |
WARNING_FLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" | |
COMMON_FLAGS="-march=armv8.6-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe -flto ${WARNING_FLAGS}" | |
CFLAGS="${COMMON_FLAGS}" | |
CXXFLAGS="${COMMON_FLAGS}" | |
FCFLAGS="${COMMON_FLAGS}" | |
FFLAGS="${COMMON_FLAGS}" |
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 | |
# | |
# Original: https://github.com/cceckman/homelab/blob/main/helpers/rm2-tailscale.sh | |
# I am the original author of this document and release it into the public domain. | |
# Go wild. | |
# | |
# 2025 Modified by @jaredallard to build release versions of Tailscale. | |
# | |
# This script enables [Tailscale] on a [reMarkable 2] tablet. | |
# |
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
{{- define "HelloWorld" }} | |
Hello, world! | |
{{- end }} | |
# Exports the "define" template above allowing it to be called. | |
# Must be in a .library.tpl, as we are. Must start w/ capital | |
# letter. | |
{{- module.Export "HelloWorld" }} |
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 | |
# Sets up a portage bin host GPG trust. Uses a local key | |
# and signs the remote key with it to establish trust. | |
set -eo pipefail | |
# GPG_DIR is the directory to establish the trust in | |
GPG_DIR="/etc/portage/gnupg" | |
# Key information. | |
KEYFILE="https://gentoo.rgst.io/signing.gpg" |
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
# vim: set language=bash; | |
CHOST="aarch64-unknown-linux-gnu" | |
# Optimization flags. | |
COMMON_FLAGS="-march=armv8.5-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe" | |
CFLAGS="${COMMON_FLAGS}" | |
CXXFLAGS="${COMMON_FLAGS}" | |
FCFLAGS="${COMMON_FLAGS}" | |
FFLAGS="${COMMON_FLAGS}" | |
RUSTFLAGS="-C target-cpu=native" |
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
token, err := conf.Token.Data(ctx) | |
if err != nil { | |
log.Error(ctx, "failed to get token", events.NewErrorInfo(err)) | |
} | |
tokenByt := []byte(token) | |
tokenLength := int32(len(tokenByt)) | |
// Check the auth token | |
base.Use(mux.MiddlewareFunc(func(next http.Handler) http.Handler { | |
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
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
# syntax=docker/dockerfile:1.0-experimental | |
FROM golang:1.17-alpine AS build | |
ARG VERSION | |
ENV GOCACHE "/go-build-cache" | |
ENV GOPRIVATE github.com/org/* | |
ENV CGO_ENABLED 0 | |
WORKDIR /src | |
# Copy our source code into the container for building | |
COPY . . |
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 worker | |
import ( | |
"context" | |
"fmt" | |
"runtime" | |
"sync" | |
) | |
// ProcessArray asynchronously processes an array, spinning up n (n being number of CPUs) goroutine worker |
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
---- Minecraft Crash Report ---- | |
// My bad. | |
Time: 2019-12-12 16:54:20 PST | |
Description: Unexpected error | |
java.lang.ArrayIndexOutOfBoundsException | |
A detailed walkthrough of the error, its code path and all known details is as follows: |
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
while true do | |
print("POD: I'm running!") | |
os.sleep(2) | |
end |
NewerOlder