Skip to content

Instantly share code, notes, and snippets.

View coder0xff's full-sized avatar

Brent Lewis coder0xff

  • Blue Origin
  • Washington
View GitHub Profile
@coder0xff
coder0xff / dropbox_ignore.sh
Last active May 2, 2024 13:09
dropbox_ignore.sh
#!/bin/bash
# This script sets or clears the Dropbox ignore attribute
# on files to reflect what is ignored by git.
# Usage: dropbox_ignore.sh [-n] [-q] [-v]"
# -n: Dry run"
# -q: Quiet"
# -v: Verbose"
@coder0xff
coder0xff / indirection.rs
Last active March 13, 2023 20:35
Rust counterparts for the Dart abstraction of the Rust memory model
use std::ops;
use std::rc::Rc;
use std::slice;
use std::sync::Arc;
use std::thread;
use crate::DartSafe;
/// Convert any value to bytes. This function makes zero promises about the validity
/// of the result. That's up to the caller.