Skip to content

Instantly share code, notes, and snippets.

View kallisti5's full-sized avatar

Alexander von Gluck kallisti5

View GitHub Profile
@kallisti5
kallisti5 / gist:86188b9fc6309ba085e7
Created January 19, 2015 13:56
benes-haiku patch
diff --git a/BeNES.rsrc b/BeNES.rsrc
deleted file mode 100644
index 7fc19fe..0000000
Binary files a/BeNES.rsrc and /dev/null differ
diff --git a/BeOS/BeFunctions.h b/BeOS/BeFunctions.h
deleted file mode 100644
index fea0d26..0000000
--- a/BeOS/BeFunctions.h
+++ /dev/null
@@ -1,9 +0,0 @@
@kallisti5
kallisti5 / steamos-session
Created January 4, 2014 07:20
steamos-session, pulled from SteamOS
#!/bin/sh
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
export HOMETEST_DESKTOP=1
export HOMETEST_USER=steam
export HOMETEST_DESKTOP_USER=desktop
export HOMETEST_DESKTOP_SESSION=gnome
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libmodeswitch_inhibitor.so:/usr/lib/i386-linux-gnu/libmodeswitch_inhibitor.so
@kallisti5
kallisti5 / gist:01f6df3bfb77b978abfe
Created December 31, 2014 14:31
Upgrade DO Fedora 20 to Fedora 21
#!/bin/bash
# Digital Ocean Fedora 20 -> 21 upgrade script
# 2014, Alexander von Gluck IV
# Author not responsible for data loss. Ensure you have valid
# backups before using this script!
yum update
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-21-$(uname -i)
@kallisti5
kallisti5 / rust-haiku.toml
Created December 6, 2016 23:07
rust-haiku.toml
# Sample TOML configuration file for building Rust.
#
# To configure rustbuild, copy this file to the directory from which you will be
# running the build, and name it config.toml.
#
# All options are commented out by default in this file, and they're commented
# out with their default values. The build system by default looks for
# `config.toml` in the current directory of a build for build configuration, but
# a custom configuration file can also be specified with `--config` to the build
# system.
### Keybase proof
I hereby claim:
* I am kallisti5 on github.
* I am kallisti5 (https://keybase.io/kallisti5) on keybase.
* I have a public key whose fingerprint is 8B39 A776 2C18 0501 430E 64BC D466 600C C141 CE5C
To claim this, I am signing this object:
kallisti5@nyx rune :) $ ./target/debug/rune -b rpi2 -i ~/Code/haiku/generated.arm/haiku-arm.mmc /tmp/haiku-arm-rpi2.mmc
Partition 0:
status: 128
CHS begin: 140 1 2
type: 12
CHS end: 254 63 9
lba: 4137615360
size: 2496856320
Partition 1:
status: 0
Build completed unsuccessfully in 0:00:14
kallisti5@eris rust :( $ ls /home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-haiku/release/deps/core-8f1bc299e5081fcd*
/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-haiku/release/deps/core-8f1bc299e5081fcd.0.bc
/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-haiku/release/deps/core-8f1bc299e5081fcd.0.s
/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-haiku/release/deps/core-8f1bc299e5081fcd.crate.metadata.o
/home/kallisti5/Code/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-haiku/release/deps/core-8f1bc299e5081fcd.d
/// Return used FAT root entries
pub fn root_entries_all(&self) -> Vec<RootEntry> {
self.root_dir
.chunks(BYTES_PER_ROOT_ENTRY)
.map(|chunk| {
let mut entry_bytes = [0; BYTES_PER_ROOT_ENTRY];
entry_bytes.clone_from_slice(chunk);
let entry: RootEntry;
unsafe { entry = mem::transmute(entry_bytes); }
src
├── bin
│   └── user_manager.rs
├── database.rs
├── main.rs
└── user.rs
kallisti5@eris rune-image :) $ sudo ./target/debug/rune -b rpi2 /dev/sde
Creating bootable Raspberry Pi 2 (BCM2836) media.
No source image. Attempting to make target media bootable..
#0 Partition { p_status: 128, p_cyl_begin: 2, p_head_begin: 140, p_sect_begin: 1, p_type: 12, p_cyl_end: 9, p_head_end: 254, p_sect_end: 63, p_lba: 40950, p_size: 119700 }
Volume AHaiku
+ GET https://github.com/haiku/firmware/raw/master/arm/rpi2/README.md
Error: failed to fill whole buffer