Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am phaiax on github.
  • I am phaiax (https://keybase.io/phaiax) on keybase.
  • I have a public key ASCQA48RIOYgAhri7QtP1iHV7ASDLlEKFa4dy6yo-U6RDwo

To claim this, I am signing this object:

__floatunsisf - Args: 122578034
rustc-builtins: Some(122578030)
compiler_rt: Some(-331173700000000000000000000000000)
gcc_s: Some(Some(-326422500000000000000000000000000))
__floatunsisf - Args: 61289017
rustc-builtins: Some(61289016)
compiler_rt: Some(17867484000000000000000000)
gcc_s: Some(Some(17867484000000000000000000))
__floatunsisf - Args: 30644508
rustc-builtins: Some(30644508)
@Phaiax
Phaiax / libcompier-rt.arm-unknown-linux-gnueabihf.debug.disassembly
Created October 15, 2016 16:12
libcompier-rt TARGET=arm-unknown-linux-gnueabihf debug disassembly
arm-linux-gnueabihf-objdump -d /target/arm-unknown-linux-gnueabihf/debug/build/compiler-rt-cdylib-e0f10e286988582e/out/libcompiler-rt.a
In archive /target/arm-unknown-linux-gnueabihf/debug/build/compiler-rt-cdylib-e0f10e286988582e/out/libcompiler-rt.a:
muldi3.o: file format elf32-littlearm
Disassembly of section .text.__muldsi3:
00000000 <__muldsi3>:
@Phaiax
Phaiax / compiler_rt_cdylib.arm-unknown-linux-gnueabihf.S
Created October 15, 2016 16:17
compiler_rt_cdylib.so dissasembly
/target/arm-unknown-linux-gnueabihf/debug/deps/libcompiler_rt_cdylib.so: file format elf32-littlearm
Disassembly of section .init:
00000b78 <.init>:
b78: e92d4008 .word 0xe92d4008
b7c: eb000023 .word 0xeb000023
b80: e8bd8008 .word 0xe8bd8008
@Phaiax
Phaiax / .screenrc
Last active October 18, 2016 15:10
# Dateiname: .screenrc
# Speicherort: Homeverzeichnis
# Diese Datei enthaelt Befehle fuer screen. screen fuehrt sie beim starten aus.
# Jeden dieser Befehle kann man auch benutzen wenn screen schon gestartet ist.
# Mit <Strg+A :> startet man den Modus, der diese Befehle akzeptiert.
# Mehr Informationen im internen ITE Wiki
# und unter https://www.gnu.org/software/screen/manual/screen.html
@Phaiax
Phaiax / .screenrc
Last active October 18, 2016 16:18
# Dateiname: .screenrc
# Speicherort: Homeverzeichnis
# Diese Datei enthaelt Befehle fuer screen. screen fuehrt sie beim starten aus.
# Jeden dieser Befehle kann man auch benutzen wenn screen schon gestartet ist.
# Mit <Strg+A :> startet man den Modus, der diese Befehle akzeptiert.
# Mehr Informationen im internen ITE Wiki
# und unter https://www.gnu.org/software/screen/manual/screen.html
_XGetRequest API was backported to libx11-1.4.4 in:
http://git.openembedded.org/openembedded-core/commit/?id=e08604800fe1cb8f240f53c147ceb4ee08a29b91
This breaks e.g. libsdl-image build with:
| /OE/shr-core/tmp-eglibc/sysroots/qemux86-64/usr/lib/libSDL.so: undefined reference to `_XGetRequest'
For details see: https://bugzilla.redhat.com/show_bug.cgi?id=782251
Upstrea-Status: Accepted
#[macro_use] extern crate error_chain;
// All errors that can occour everywhere in the crate
pub mod errors {
error_chain!{
errors {
Pig { description("Pig-Descr") display("Pig-Display")}
Bat {}
Uhu {}
@Phaiax
Phaiax / END GCODE
Last active March 28, 2020 16:43
My 3d printer start/end gcode (6.7.2018)
M104 S0 ; Set hotend temperature to 0
M140 S0 ; Set bed temperature to 0
G92 E0 ; Reset absolute Extruder position
G1 E-2 F300 ;Retract the filament
G28 R X Y ; Raise Z then home X,Y
M18 X Y Z E ; Disable all motors
M82 ;absolute extrusion mode (needed?)
M107 ; Print fan off
M81 ; ATX off
@Phaiax
Phaiax / propchangesback.py
Created May 23, 2019 19:35
propchangesback
from sqlalchemy.orm import sessionmaker, relationship
class User(Base, HtmlEditable):
__tablename__ = 'user'
id = MyColumn(Integer, primary_key=True)
name = MyColumn(String, inputtype="text")
fullname = MyColumn(String, inputtype="text")
nickname = MyColumn(String)
large_enough = MyColumn(Boolean, inputtype="checkbox")
address_id = MyColumn(Integer, ForeignKey("address.id"))