Skip to content

Instantly share code, notes, and snippets.

@DunkleAura
DunkleAura / My x52 Odyssey 2.binds
Created October 18, 2022 19:41
Elite Dangerous Keybindings
<?xml version="1.0" encoding="UTF-8" ?>
<Root PresetName="My x52 Odyssey 2" MajorVersion="4" MinorVersion="0">
<KeyboardLayout>de-CH</KeyboardLayout>
<MouseXMode Value="" />
<MouseXDecay Value="0" />
<MouseYMode Value="" />
<MouseYDecay Value="0" />
<MouseReset>
<Primary Device="{NoDevice}" Key="" />
<Secondary Device="{NoDevice}" Key="" />
@DunkleAura
DunkleAura / index.js
Created November 7, 2021 18:35
Fleet Carrier Fuel Calculator
// Current Fleet Carrier Fuel Formula
// Thanks to the EDCD Discored for the Formula
// JavaScript implementaion by DunkleAura
function fuelPerJump(distance, currentCapacity, fuelInReservoir) {
const minUsage = 5;
const dryMass = 25000;
return Math.round(
minUsage +
( distance / 8 ) *
@DunkleAura
DunkleAura / Dragino-LSN50-Decoder-ttn.js
Created January 10, 2020 01:47
Decoder for the Dragino LSN50 LoRa Sensor
function Decoder(bytes, port) {
var decoded = {};
// Battery
decoded.batteryV = (((bytes[0] << 8) + bytes[1]) / 1000).toFixed(3);
// Temperature DS18B20
decoded.tempC = (((bytes[2] << 8) + bytes[3]) / 10).toFixed(2);
// ADC
decoded.adc = ((bytes[4] << 8) + bytes[5]) / 10;
// DIO
@DunkleAura
DunkleAura / DI.m3u
Created November 20, 2017 04:22 — forked from sim642/DI.m3u
Digitally Imported premium streams
#EXTM3U
#EXTINF:-1,Digitally Imported - Ambient
http://pub1.diforfree.org:8000/di_ambient_hi
#EXTINF:-1,Digitally Imported - Big Room House
http://pub1.diforfree.org:8000/di_bigroomhouse_hi
#EXTINF:-1,Digitally Imported - Breaks
http://pub1.diforfree.org:8000/di_breaks_hi
function getGamepads() {
if (navigator.gamepads) {
return navigator.gamepads;
} else if (navigator.getGamepads) {
return navigator.getGamepads();
} else if (navigator.webkitGetGamepads) {
return navigator.webkitGetGamepads()
}
}
@DunkleAura
DunkleAura / init.sh
Created April 23, 2016 23:41
Ubuntu init
#!/bin/bash
apt-get update
apt-get install vim
apt-get purge nano unity-webapps-common
@DunkleAura
DunkleAura / keybase.md
Created March 28, 2016 09:11
keybase.md

Keybase proof

I hereby claim:

  • I am DunkleAura on github.
  • I am dunkleaura (https://keybase.io/dunkleaura) on keybase.
  • I have a public key whose fingerprint is 9B31 5D83 2D61 CE51 81E6 A577 E95A 446D F5E3 004C

To claim this, I am signing this object:

@DunkleAura
DunkleAura / install-gosu.sh
Created February 29, 2016 06:44
install gosu
#!/bin/bash
# Install gosu
VERSION=1.7
GPGKEY=B42F6819007F00F88E364FD4036A9C25BF357DD4
SBINPATH=/usr/local/sbin
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys $GPGKEY &>/dev/null \
&& wget -qO $SBINPATH/gosu "https://github.com/tianon/gosu/releases/download/$VERSION/gosu-$(dpkg --print-architecture)" \
&& wget -qO $SBINPATH/gosu.asc "https://github.com/tianon/gosu/releases/download/$VERSION/gosu-$(dpkg --print-architecture).asc" \
@DunkleAura
DunkleAura / rsync.rb
Last active February 22, 2016 05:00
rsync is an open source utility that provides fast incremental file transfer.
class Rsync < Formula
desc "rsync is an open source utility that provides fast incremental file transfer."
homepage "https://de.wikipedia.org/wiki/Rsync"
url "https://download.samba.org/pub/rsync/rsync-3.1.2.tar.gz"
version "3.1.2"
sha256 "ecfa62a7fa3c4c18b9eccd8c16eaddee4bd308a76ea50b5c02a5840f09c0a1c2"
def install
system "./configure", "--disable-debug",
"--prefix=#{prefix}"
@DunkleAura
DunkleAura / rclone.rb
Created February 20, 2016 16:47
Rclone is a command line program to sync files and directories to and from clouds
class Rclone < Formula
desc "Rclone is a command line program to sync files and directories to and from clouds"
homepage "http://rclone.org/"
url "http://downloads.rclone.org/rclone-v1.27-osx-amd64.zip"
version "1.27"
sha256 "7de9e938496ce4eed5046de864152c3da05e6d11a154a2d6ded4e6ddedc00b2a"
#head "https://github.com/petdance/ack2.git", :branch => "dev"
def install