Skip to content

Instantly share code, notes, and snippets.

@probonopd
probonopd / config
Last active August 29, 2015 14:15
Raspberry Pi 2 Media Center
begin remote
name input
flags RAW_CODES
eps 30
aeps 100
gap 96193
begin raw_codes
name KEY_UP
9041 4507 573 573 573 573
@probonopd
probonopd / babylon2quickdic.sh
Last active March 18, 2024 03:35
Convert Babylon dictionary to QuickDic. It is unclear under which the Babylon "free" dictionaries are. They appear to be crowd-sourced and there is no aparent license.
sudo apt-get update
sudo apt-get install -y git python-tk tix default-jre
git clone https://github.com/ilius/pyglossary.git
cd pyglossary/
# Dictionary Details
# Created by: ADO
# Submitted to Babylon's Dictionary, Translation and Information
# Platform under the title: ADO's SPANISCH-DEUTSCH
# Number of definitions found in this dictionary: 65693
KIWI Log:
KIWI .profile contents:
kiwi_align='1048576'
kiwi_bootkernel='desktop'
kiwi_bootloader='isolinux'
kiwi_bootprofile='default'
kiwi_cmdline='splash=silent quiet'
kiwi_cpio_name='initrd-isoboot-suse-13.2'
kiwi_delete='Mesa cracklib-dict-full cyrus-sasl diffutils fillup fribidi gdbm gfxboot gfxboot-branding-openSUSE glibc-locale hdparm info insserv lvm2 make memtest86+ mingetty mtools openSUSE-release pam pam-config pam-modules perl perl-Bootloader perl-HTML-Parser perl-HTML-Tagset perl-base permissions pwdutils python python-base sysconfig syslinux'
kiwi_displayname='openSUSE_13.3_KDE_Live'
@probonopd
probonopd / ESP_i2c_OLED.ino
Created June 21, 2015 21:42
Drive 0.96" IIC I2C 128x64 OLED LCD Display Module M45 (has SSD1306 driver IC) connected to ESP-01 module (0=SDA, 2=SCL) http://www.ebay.de/itm/White-0-96-IIC-I2C-128X64-OLED-LCD-Display-Module-Arduino-STM32-AVR-51-M45-/291216700457
// ESP_i2c_OLED.ino
// Drive 0.96" IIC I2C 128x64 OLED LCD Display Module M45 (has SSD1306 driver IC)
// connected to ESP-01 module (0=SDA, 2=SCL)
// http://www.ebay.de/itm/White-0-96-IIC-I2C-128X64-OLED-LCD-Display-Module-Arduino-STM32-AVR-51-M45-/291216700457
// USD 3,80 shipped as of June 2015
// Based on mike-rankin/ESP_LUA_Loader
// TODO: Make a simple library out of it?
#include <Wire.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include "/secrets.h" // Delete this line and populate the following
//const char* ssid = "********";
//const char* password = "********";
ESP8266WebServer server(80);
@probonopd
probonopd / not_properly.animating.ino
Created July 7, 2015 06:31
not_properly.animating.ino
/**
* Emulate Philips Hue Bridge ; so far the Hue app finds the emulated Bridge and gets its config
* and switch on 3 NeoPixels with it so far (TODO)
**/
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiUDP.h>
#include "ESP8266SSDP.h"
#include <NeoPixelBus.h> // NeoPixelAnimator branch
// https://github.com/kayno/arduinolifx
#include <math.h>
struct rgb {
double r; // percent
double g; // percent
double b; // percent
};
@probonopd
probonopd / gist:f3ba94d7da60a8a2bb05
Last active August 29, 2015 14:25
Cannot chroot into PD
# brew install xz
# brew install qemu
wget http://smuckola.org/projects/puredarwin/Puredarwin-darwin_9.8-version_9L30.qcow2.xz
xz -v -d -k Puredarwin-darwin_9.8-version_9L30.qcow2.xz
qemu-img convert -O raw Puredarwin-darwin_9.8-version_9L30.qcow2 Puredarwin-darwin_9.8-version_9L30.raw
hdiutil attach -imagekey diskimage-class=CRawDiskImage *raw
sudo chroot /Volumes/PD-Xmas-9L30pd1/ /bin/sh
// Drive 0.96" IIC I2C 128x64 OLED LCD Display Module M45 (has SSD1306 driver IC)
// connected to ESP-01 module (0=SDA, 2=SCL)
// http://www.ebay.de/itm/White-0-96-IIC-I2C-128X64-OLED-LCD-Display-Module-Arduino-STM32-AVR-51-M45-/291216700457
// USD 3,80 shipped as of June 2015
// Based on mike-rankin/ESP_LUA_Loader
// TODO: Make a simple library out of it?
#include <Wire.h>
-----------------------------------
ESP8266 (Kolban, Neil)
Note on page 15: Way too overpriced, program the ESP instead...
"WiFi shield for the Arduino."
0:54
-----------------------------------
ESP8266 (Kolban, Neil)