Skip to content

Instantly share code, notes, and snippets.

View sundbry's full-sized avatar
🔱
summoning the ancient gods

Ryan R Sundberg sundbry

🔱
summoning the ancient gods
View GitHub Profile
@sundbry
sundbry / guix-bootstrap.sh
Last active February 5, 2021 09:01
Guix Rescue CD Install
#!/bin/sh
# Bare metal Guix bootstrap program from a livecd (SystemRescueCd) shell.
GUIX_TARBALL="https://ftp.gnu.org/gnu/guix/guix-binary-1.2.0.x86_64-linux.tar.xz"
BUSYBOX_BINARY="https://busybox.net/downloads/binaries/1.31.0-i686-uclibc/busybox"
GUIX_MAX_JOBS=4
BOOT_SIZE="2M"
: ${SWAP_SIZE:="4096M"}
ROOT_AUTHORIZED_KEYS=$(cat <<EOF

Keybase proof

I hereby claim:

  • I am sundbry on github.
  • I am sundbry (https://keybase.io/sundbry) on keybase.
  • I have a public key ASCdBroxNjS1fXNJLmX9qRCmBMkg1LURe6fFAhygqoxuOQo

To claim this, I am signing this object:

@sundbry
sundbry / github-gist-in-iframe.html
Last active June 23, 2023 16:41
Embed a Github Ggist in an iframe (without <script> tags in your document)
<iframe frameborder=0
style="min-width: 200px; width: 60%; height: 460px;"
scrolling="no"
seamless="seamless"
srcdoc='<html><body><style type="text/css">.gist .gist-data { height: 400px; }</style><script src="https://gist.github.com/sundbry/5e0507d93d4c89023b2ba5f39f27f722.js"></script></body></html>'
></iframe>
@sundbry
sundbry / cljs-metro-transformer.js
Last active February 1, 2019 06:12 — forked from austinbirch/cljs-metro-transformer.js
Transform compiled Clojurescript code for React Native/Metro (Updated for RN 0.58)
/**
* Copyright (c) 2015-present, Facebook, Inc.
* Copyright (c) 2018 Arctype Corp.
*
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of the facebook/react source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*