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/sh | |
# | |
# 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. | |
# | |
# This script enables [Tailscale] on a [reMarkable 2] tablet. | |
# | |
# Tailscale is run in [userspace networking] mode, so any outbound applications | |
# will need to be configured to proxy via tailscaled. |
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
var inputs = { | |
swatch: { | |
stitches: 20, | |
length: 4 # Really any unit, as long as it's the same as target_length | |
}, | |
pattern: { | |
multiple: 6, | |
plus: 2 | |
}, | |
target_length: 21 # Really any unit, as long as it's the same as swatch.length |
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
package main | |
import( | |
"fmt" | |
) | |
type FooBar struct {} | |
func (f *FooBar) Foo() string { | |
return "Foo" |
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
digraph G { | |
start -> v [label="Ctrl+X"] ; | |
start -> PRINT [label="Z"]; | |
v -> QUIT [label="Ctrl+C"]; | |
v -> start [label="ε"]; | |
} |
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
// Demonstrate bug: spacer doesn't render its background color. | |
package main | |
import ( | |
"log" | |
"github.com/marcusolsson/tui-go" | |
) | |
func Theme() *tui.Theme { |
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
# after having run `$ gcloud compute disks create --size=2GB gce-nfs-disk` | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: nfs-pv | |
labels: | |
app: test | |
spec: | |
capacity: | |
storage: 2Gi |
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
// For chasecaleb of #xkcd. Untested- use at your own risk! | |
// I took this on just as a challange, so please review / check against your own work. | |
#define PACKET_DATA_SZ 22 | |
#define SAMPLE_BITS 10 | |
typedef struct { | |
uint32_t timestamp; | |
char data[PACKET_DATA_SZ]; | |
} sample_packet_t; |
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
#include "minheap.h" | |
/* Default constructor */ | |
minheap::minheap() | |
{ | |
// Ensure that there is always an empty element at index 0 | |
values.push_back(0); | |
}; | |
void minheap::insert(int v) |
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 | |
mkdir bc | |
mkdir bclink | |
git clone [email protected]:thestinger/rust-core | |
rustc --emit=bc --out-dir=bc rust-core/core/lib.rs | |
rustc --emit=bc,link --out-dir=bclink rust-core/core/lib.rs | |
diff bc/core.bc bclink/core.bc |
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
SHELL=/bin/bash | |
TARGET := arm-linux-noeabi | |
CHIP := arm926ej-s | |
rpi: CHIP := arm1176jzf-s | |
GCC_PREFIX := $(GCC_PREFIX)arm-none-eabi- | |
RUSTC := $(RUST_ROOT)/bin/rustc | |
#RUSTCFLAGS := -O --target $(TARGET) -Z no-landing-pads -Z debug-info -Z extra-debug-info --cfg $(CHIP) |
NewerOlder