Skip to content

Instantly share code, notes, and snippets.

View imrehg's full-sized avatar
🐒
Chaos Monkey

Gergely Imreh imrehg

🐒
Chaos Monkey
View GitHub Profile
@imrehg
imrehg / neon_blink.ino
Created February 18, 2014 03:19
Blinking electroluminescent wire
@imrehg
imrehg / neon_beats.ino
Created February 18, 2014 04:18
Electroluminescent beat to the music
// Beat to the music
// Instructables Build Night with Cool Neon
const int p[] = {13, 12, 11, 10, 9}; // List of pins with connected EL wires
const int pn = 5; // number of connected wires
void setup() {
Serial.begin(115200);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
@imrehg
imrehg / neon_gallop.ino
Created February 18, 2014 04:36
Galloping horse neon light driver
// Galloping horse display
// Instructables Build Night with Cool Neon
const int p[] = {13, 12}; // List of pins with connected EL wires
const int pn = 2; // number of connected wires
const int delay = 400; // delay between display updates
void setup() {
delay(200);
for( int i = 0 ; i < pn ; i++ ) { // declare all the Cool Neon channels as outputs
@imrehg
imrehg / gp-58iv-lsusb.txt
Created April 17, 2014 03:09
ICT GP-58IV thermal printer `lsusb -v` output
Bus 001 Device 006: ID 0483:5740 STMicroelectronics STM32F407
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0483 STMicroelectronics
@imrehg
imrehg / .config
Created April 28, 2014 09:08
Kernel config config for VIA VAB-600 Springboard
#
# Automatically generated make config: don't edit
# Linux/arm 3.0.8 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_KTIME_SCALAR=y
@imrehg
imrehg / RFID.pde
Created May 11, 2014 06:04
Copy of Arduino test code for RFID reader http://forum.arduino.cc/index.php/topic,210809.0.html
/*
* Name:RFID.pde
* Create:www.electrodragon.com
* Create date:2011.09.19
* Function:Mifare1 searching card →prevent conflict→ select card →read write pins
*/
// the sensor communicates using SPI, so include the library:
#include <SPI.h>
#define uchar unsigned char
@imrehg
imrehg / uboot-sdcard.patch
Last active August 29, 2015 14:02
Enabling SD-card booting on the VIA Springboard u-boot
--- bspinst/bspinst.cfg 2013-09-04 18:45:54.000000000 +0800
+++ bspinst/bspinst.cfg 2014-06-17 16:18:27.000000000 +0800
@@ -192,6 +192,13 @@
${bootargs-common} \
${bootargs-extra}
+# Set rootfs on the SD card
+setenv set-rfs-sd \
+ setenv bootargs mem=${memtotal} root=/dev/mmcblk0p2 rw \
+ rootfstype=ext4 noinitrd mbtotal=${mbsize} \
@imrehg
imrehg / vab820-kernel.patch
Created July 15, 2014 07:47
VIA VAB-820 patches to apply to the Freescale L3.0.35_4.1.0_130816 kernel
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index f818b4e..efe9b13 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -240,7 +240,10 @@ void machine_shutdown(void)
void machine_halt(void)
{
machine_shutdown();
- while (1);
+ //while (1);
@imrehg
imrehg / gist:baccd7e38f9fd089e4f4
Created July 25, 2014 15:15
Coinbase User Agreement
Last updated: June 10, 2014
This User Agreement ("Agreement") is a contract between you ("you," "your" or "user") and Coinbase, Inc. ("Coinbase," "we", "us" or "our") and applies to your use of: (a) the Coinbase website located at coinbase.com, the Coinbase API, and any associated Coinbase-hosted websites or mobile applications (collectively the "Coinbase Site"), and (b) any of the services provided to you by Coinbase (together with the Coinbase Site, the "Coinbase Services").
By accessing or using the Coinbase Services, printing or downloading materials from the Coinbase Site, or otherwise using the Coinbase Site, you agree to comply with and be legally bound by this Agreement. If you do not agree to any of the terms set forth in this Agreement, you may not access or use any of the Coinbase Services.
We may amend or modify this Agreement at any time by posting a revised User Agreement on the Coinbase Site and such changes or modifications shall be effective at such time. By continuing to access or use the
@imrehg
imrehg / kraken.patch
Created August 6, 2014 16:19
Enabling kraken ticker on lamassu admin
diff --git a/client/code/app/Models/User.js b/client/code/app/Models/User.js
index 2caaeb3..88df457 100644
--- a/client/code/app/Models/User.js
+++ b/client/code/app/Models/User.js
@@ -4,7 +4,7 @@ var PriceData = Backbone.Model.extend({ //this model keeps a current record of p
var self = this
- self.sources = ['bitstamp', 'bitpay', 'coindesk', 'bitcoinaverage']
+ self.sources = ['bitstamp', 'bitpay', 'coindesk', 'bitcoinaverage', 'kraken']