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 / test.log
Created November 3, 2015 06:31
gandi.cli build test with Python 3.5
running test
Searching for httpretty==0.8.6
Reading https://pypi.python.org/simple/httpretty/
Best match: httpretty 0.8.6
Downloading https://pypi.python.org/packages/source/h/httpretty/httpretty-0.8.6.tar.gz#md5=d45e7e831b6e66974ba231453a715f39
Processing httpretty-0.8.6.tar.gz
Writing /tmp/easy_install-e9dz1nez/httpretty-0.8.6/setup.cfg
Running httpretty-0.8.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-e9dz1nez/httpretty-0.8.6/egg-dist-tmp-ks58_gv1
creating /home/greg/prog/gandi.cli/.eggs/httpretty-0.8.6-py3.5.egg
Extracting httpretty-0.8.6-py3.5.egg to /home/greg/prog/gandi.cli/.eggs
@imrehg
imrehg / pcieduino_test.py
Last active September 25, 2015 08:09
PCIeDuino test script 01
#!/usr/bin/env python2
"""
Script to test the PCIeDuino serial connection
"""
import serial
import time
import datetime
for i in range(10):
try:
@imrehg
imrehg / system_mon.py
Last active September 1, 2015 07:09
System monitoring with 16x2 LCD screen
""" System monitoring with a Grove LCD RGB Backlight, connected to
the present machine over I2C
"""
from __future__ import division
# the following library is from https://github.com/youngage/grove-lcd
import display
from smbus import SMBus
import psutil
import time
@imrehg
imrehg / cldebug.log
Created June 15, 2015 15:27
OpenCL compilation debug on Parallella
coprthr-1.6.2 (Freewill)
[16048] clmesg debug: ocl_platform.c(62): clGetPlatformIDs
[16048] clmesg debug: ocl_device.c(528): __do_discover_devices (nil)
[16048] clmesg debug: device.c(99): __do_discover_devices_1 (nil)
[16048] clmesg debug: device.c(117): h=0x30d7b8 init_device=0xb688a1c0
[16048] clmesg debug: device_x86_64.c(90): init_device_x86_64
[16048] clmesg debug: device.c(128): h=0x2a0020 init_device=0xb684c5d8
[16048] clmesg debug: device_e32.c(113): init_device_e32
[16048] clmesg debug: device_e32.c(128): e_init() returned 0
[16048] clmesg debug: device_e32.c(150): e_alloc using &e_dram 0xb685c364
@imrehg
imrehg / ipipe-core-3.10.17-arm-1.patch
Created May 12, 2015 05:14
Adeos i-pipe patch backported from 3.10.18 to 3.10.17
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 18a9f5e..44ffc9c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -68,6 +68,11 @@ config ARM
Europe. There is an ARM Linux project with a web page at
<http://www.arm.linux.org.uk/>.
+if IPIPE
+config IPIPE_WANT_ACTIVE_MM
@imrehg
imrehg / querywinning.sh
Last active August 29, 2015 14:19
Example query and results from the Taiwanese electronic invoice API
# API from this doc: https://www.einvoice.nat.gov.tw/home/DownLoad%3Bjsessionid%3DjMPySdkKYmK77tnL1pPVr7NKsL1Mnb0NnQz24yccnMMQTTfLc1ll!814221976%3FfileName%3Df1371195138997.pdf
# using credentials from the EasyWallet Android app
# note: date is in Taiwanese years (ie. Year 104 is equal to 2015, 103 would be 2014, and so on)
# for invTerm the full date is yyyMM format, where MM is the even month of the period: eg. for 2015 Jan-Feb it is 10402
curl -k -i "https://www.einvoice.nat.gov.tw/PB2CAPIVAN/invapp/InvApp?version=0.2&action=QryWinningList&invTerm=10402&uuid=UFm4wEDPmJq73JQPR9qvLM6lV3F114rj&appID=EINV2201306253437"
@imrehg
imrehg / ssba_share_link.patch
Created January 21, 2015 14:05
Simple Share Button Adder patch
@imrehg
imrehg / config-buildroot
Created December 31, 2014 06:27
Kernel and Buildroot configuration for the VIA VAB-820
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2015.02-git-00539-g6ecbce2 Configuration
#
BR2_HAVE_DOT_CONFIG=y
#
# Target options
#
# BR2_arcle is not set
@imrehg
imrehg / vab-600-i2c.patch
Created December 20, 2014 08:43
VIA VAB-600 Springboard patch to enable the board and i2c for the upstream kernel
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b8c5cd3..3dd7c79 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -460,7 +460,8 @@ dtb-$(CONFIG_ARCH_VT8500) += vt8500-bv07.dtb \
wm8505-ref.dtb \
wm8650-mid.dtb \
wm8750-apc8750.dtb \
- wm8850-w70v2.dtb
+ wm8850-w70v2.dtb \
@imrehg
imrehg / README.txt
Created November 7, 2014 11:27
VAB-600 flashing instructions
1. Prepare a SD card at least 2GB, and format the SD card with FAT partition.
2. Uncompressed the "Update_Package_EMMC_VAB-600_Linux_BSP_V1.0.2.210.1.zip."
There are two files inside, which is named "bspinst/" and "scriptcmd."
3. Copy the two files "bspinst/" and "scriptcmd" to the SD card.
4. Plug in the SD card to the VAB-600 SD card slot, and start up the VAB-600.