Skip to content

Instantly share code, notes, and snippets.

@raininja
raininja / example.profile
Created September 3, 2013 15:04
example user profile
(i__main__
ProfileSettings
p0
(dp1
S'deviceName'
p2
VOCZ Neural Impulse Actuator
p3
sS'qfThreshold'
p4
@raininja
raininja / gist:3652050
Created September 6, 2012 06:20 — forked from tranthamp/gist:2721326
D-Bus and Connman notes
# Connman Technology API examples: (Object Path: /net/connman/technology/<wifi/ethernet>, Interface: net.connman.Technology)
# GetProperties
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.GetProperties
# Scan
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.Scan
# Disable/Enable wifi
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:true
@raininja
raininja / gist:e1c6a3f4b60ac550b77b
Last active August 29, 2015 14:28
Could not compile `rustc-serialize`.
Compiling rustc-serialize v0.3.15
/home/raijin/.cargo/registry/src/github.com-0a35038f75765ae4/rustc-serialize-0.3.15/src/serialize.rs:201:5: 201:64 warning: the trait `core::marker::Sized` is not implemented for the type `Self` [E0277]
/home/raijin/.cargo/registry/src/github.com-0a35038f75765ae4/rustc-serialize-0.3.15/src/serialize.rs:201 fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/raijin/.cargo/registry/src/github.com-0a35038f75765ae4/rustc-serialize-0.3.15/src/serialize.rs:201:5: 201:64 help: run `rustc --explain E0277` to see a detailed explanation
/home/raijin/.cargo/registry/src/github.com-0a35038f75765ae4/rustc-serialize-0.3.15/src/serialize.rs:201:5: 201:64 note: `Self` does not have a constant size known at compile-time
/home/raijin/.cargo/registry/src/github.com-0a35038f75765ae4/rustc-serialize-0.3.15/src