Skip to content

Instantly share code, notes, and snippets.

View kallisti5's full-sized avatar

Alexander von Gluck kallisti5

View GitHub Profile
@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 / 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 @@
Sun ELOM, you suck.
Sun X2200 M2
Needs:
* 32-bit Java Runtime Environment
* libstdc++5 installed
@kallisti5
kallisti5 / haiku_haiku_start
Created March 5, 2015 03:44
Adding a Haiku target to u-boot
diff --git a/src/system/boot/platform/u-boot/arch/arm/shell.S b/src/system/boot/platform/u-boot/arch/arm/shell.S
index 813a689..80bc280 100644
--- a/src/system/boot/platform/u-boot/arch/arm/shell.S
+++ b/src/system/boot/platform/u-boot/arch/arm/shell.S
@@ -38,6 +38,13 @@ SYMBOL(_start_linux):
b _start_common
SYMBOL_END(_start_linux)
+/*
+ * called from bootm with haiku loader compatible args
@kallisti5
kallisti5 / intel-valleyview.diff
Created October 12, 2015 13:52
Intel ValleyView on Haiku
diff --git a/headers/private/graphics/intel_extreme/intel_extreme.h b/headers/private/graphics/intel_extreme/intel_extreme.h
index 1703898..c1d1166 100644
--- a/headers/private/graphics/intel_extreme/intel_extreme.h
+++ b/headers/private/graphics/intel_extreme/intel_extreme.h
@@ -39,6 +39,7 @@
#define INTEL_TYPE_ILK (INTEL_TYPE_9xx | 0x1000)
#define INTEL_TYPE_SNB (INTEL_TYPE_9xx | 0x2000)
#define INTEL_TYPE_IVB (INTEL_TYPE_9xx | 0x4000)
+#define INTEL_TYPE_VLV (INTEL_TYPE_9xx | 0x8000)
// models
@kallisti5
kallisti5 / gist:2316d25d1ff8ad003ff4
Created March 14, 2016 15:36
Intel Gen 7 PANEL
KERN: intel_extreme: Init Intel generation 7 GPU with PCH split.
KERN: intel_extreme: REGS_NORTH_SHARED: 0x40000
KERN: intel_extreme: REGS_NORTH_PIPE_AND_PORT: 0x60000
KERN: intel_extreme: REGS_NORTH_PLANE_CONTROL: 0x70000
KERN: intel_extreme: REGS_SOUTH_SHARED: 0xC0000
KERN: intel_extreme: REGS_SOUTH_TRANSCODER_PORT: 0xE0000
KERN: intel_extreme:CALLED status_t intel_en_gating(intel_info&)
KERN: intel_extreme:i965 quirk
KERN: intel_extreme:CALLED status_t intel_en_downclock(intel_info&)
KERN: intel_extreme:intel_en_downclock: Downclocking not supported on this chipset.
@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