Skip to content

Instantly share code, notes, and snippets.

@joerg-krause
joerg-krause / main.rs
Created March 1, 2017 14:50
tokio_uds
extern crate futures;
extern crate tokio_core;
extern crate tokio_uds;
use std::io;
use std::fs;
use std::str;
use futures::{Async, Future, Poll, Stream};
use tokio_core::io::read_to_end;
@joerg-krause
joerg-krause / lj-amonitor.lua
Last active May 12, 2016 16:58
ALSA integration into Luvit
--[[
The MIT License (MIT)
Copyright (c) 2016 Jörg Krause <joerg.krause@embedded.rocks>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
@joerg-krause
joerg-krause / mxs-add-power.patch
Last active March 23, 2016 08:34
Linux mxs power and regulator patches
From d4437fcdf16cfc74bb2388d02cf754461eef42fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
Date: Tue, 22 Mar 2016 10:35:05 +0100
Subject: [PATCH 100/102] mxs: add power
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
---
@joerg-krause
joerg-krause / arm-unknown-linux-musl.mk
Created January 6, 2016 02:21
arm-unknown-linux-musl target for Rust
# arm-unknown-linux-musl configuration
CC_arm-unknown-linux-musl=$(CFG_MUSL_ROOT)/bin/musl-gcc
CXX_arm-unknown-linux-musl=notaprogram
CPP_arm-unknown-linux-musl=$(CFG_MUSL_ROOT)/bin/musl-gcc -E
AR_arm-unknown-linux-musl=$(AR)
CFG_INSTALL_ONLY_RLIB_arm-unknown-linux-musl = 1
CFG_LIB_NAME_arm-unknown-linux-musl=lib$(1).so
CFG_STATIC_LIB_NAME_arm-unknown-linux-musl=lib$(1).a
CFG_LIB_GLOB_arm-unknown-linux-musl=lib$(1)-*.so
CFG_LIB_DSYM_GLOB_arm-unknown-linux-musl=lib$(1)-*.dylib.dSYM
@joerg-krause
joerg-krause / pacman-refresh-keys.sh
Created August 5, 2015 04:52
Conflicting and Corrupted Package Issue on Arch/Manjaro Linux
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --populate manjaro
sudo pacman-key --refresh-keys
sudo pacman -Syyu