Skip to content

Instantly share code, notes, and snippets.

View the-kenny's full-sized avatar

Moritz von Göwels the-kenny

View GitHub Profile
View gist:b9109b9f0cf25886d2d53f9dd6df8fd5
### Keybase proof
I hereby claim:
* I am the-kenny on github.
* I am mulrich (https://keybase.io/mulrich) on keybase.
* I have a public key ASCPl6CSMR8GWUcROrzSDXL_68H2CfGBKUkzclAueuZk5wo
To claim this, I am signing this object:
@the-kenny
the-kenny / config.nix
Last active August 29, 2015 14:15 — forked from teburd/config.nix
View config.nix
{
packageOverrides = pkgs : with pkgs;{
myXmlsec = pkgs.stdenv.lib.overrideDerivation pkgs.xmlsec (attrs: {
buildInputs = attrs.buildInputs ++ [pkgs.openssl];
});
goEnv = pkgs.myEnvFun {
name = "goEnv";
shell = "${pkgs.zsh}/bin/zsh";
buildInputs = [
@the-kenny
the-kenny / xmonad-pass.hs
Last active April 17, 2018 22:06
XMonad pass Completion
View xmonad-pass.hs
import System.Environment
import System.FilePath.Posix
import System.FilePath.Find
import XMonad.Prompt
import System.Directory
data Pass = Pass
instance XPrompt Pass where
showXPrompt Pass = "Pass: "
View keybase.md

Keybase proof

I hereby claim:

  • I am the-kenny on github.
  • I am mulrich (https://keybase.io/mulrich) on keybase.
  • I have a public key whose fingerprint is 9650 F0AF AADA E05B 3006 F7B4 A9E1 CC79 ECBF A432

To claim this, I am signing this object:

@the-kenny
the-kenny / baseflight.nix
Created March 12, 2014 17:33
Nix-Expression for baseflight. Run via `nix-shell baseflight.nix', then compile via `make'. Use stm32flash to upload.
View baseflight.nix
{ nixpkgs ? <nixpkgs> }:
let
pkgs = import nixpkgs { };
stdenv = pkgs.stdenv;
gcc-arm-none-eabi = with pkgs.pkgsi686Linux; stdenv.mkDerivation rec {
name = "gcc-arm-none-eabi-4_7-2013q3-20130916";
src = pkgs.fetchurl {
url = "https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update/+download/${name}-linux.tar.bz2";
sha256 = "1bd9bi9q80xn2rpy0rn1vvj70rh15kb7dmah0qs4q2rv78fqj40d";
View baseflight RSSI-Aux patch.diff
diff --git a/src/cli.c b/src/cli.c
index 6bb7c86..71f0436 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -147,6 +147,7 @@ const clivalue_t valueTable[] = {
{ "failsafe_off_delay", VAR_UINT8, &cfg.failsafe_off_delay, 0, 200 },
{ "failsafe_throttle", VAR_UINT16, &cfg.failsafe_throttle, 1000, 2000 },
{ "failsafe_detect_threshold", VAR_UINT16, &cfg.failsafe_detect_threshold, 100, 2000 },
+ { "rssi_aux_channel", VAR_INT8, &mcfg.rssi_aux_channel, 0, 4 },
{ "yaw_direction", VAR_INT8, &cfg.yaw_direction, -1, 1 },
View gist:4956285
Aufgabenstellung
Deklarieren und initialisieren Sie die Variablen,
so dass sich nach Ausführung des Programmes
a[a[1]] = 1 - a[2] ;
a[a[2]] = b[0] * a[3] ;
b[a[3]] = 1 - a[1] ;
a[b[3 - a[2]]] = b[2] - a[1] ;
b[a[b[0] + a[1]]] = b[a[2]] ;
View gist:4648409
[ 0.000000] Linux version 3.3.8 (tomcat6@ff-jenkins) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Wed Jan 23 01:58:18 CET 2013
[ 0.000000] MyLoader: sysp=aa2aaaaa, boardp=02aaaaaa, parts=aaaabaaa
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR9132 rev 2
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
View gist:4492637
root@Freifunk-647002cb702e:~# dh
-ash: dh: not found
root@Freifunk-647002cb702e:~# hd
-ash: hd: not found
root@Freifunk-647002cb702e:~# fh
-ash: fh: not found
root@Freifunk-647002cb702e:~# hf
-ash: hf: not found
root@Freifunk-647002cb702e:~# hd
-ash: hd: not found
View gist:2836980
Process: Adium [71146]
Path: /Applications/Adium.app/Contents/MacOS/Adium
Identifier: com.adiumX.adiumX
Version: 1.5.1b2 (1.5.1b2)
Code Type: X86-64 (Native)
Parent Process: launchd [183]
Date/Time: 2012-05-30 17:16:48.567 +0200
OS Version: Mac OS X Server 10.7.4 (11E53)
Report Version: 9