Skip to content

Instantly share code, notes, and snippets.

@bonnieking
bonnieking / dvb-dmesg.txt
Created December 19, 2015 07:38
dvb dmesg outernet
[ 0.000000] microcode: CPU0 microcode updated early to revision 0x1b, date = 2014-05-29
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.2.3-200.fc22.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC) ) #1 SMP Thu Oct 8 03:23:55 UTC 2015
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.2.3-200.fc22.x86_64 root=/dev/mapper/vg_featherfall-lv_root ro rd.md=0 rd.lvm.lv=vg_featherfall/lv_swap KEYTABLE=us SYSFONT=True rd.luks=0 LANG=en_US.UTF-8 rd.lvm.lv=vg_featherfall/lv_root rd.dm=0
[ 0.000000] x86/fpu: xstate_offset[2]: 0240, xstate_sizes[2]: 0100
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers'
@bonnieking
bonnieking / ondd error
Created December 19, 2015 07:37
ondd error
[bonniek@featherfall orx86]$ pkill ondd-x86_64
[bonniek@featherfall orx86]$ ./ondd-x86_64
01:36:30.736 [main] Unable to load config: /etc/ondd.conf (null)
01:36:30.737 [main] v2.0.0
01:36:30.751 [main] thread exception: bind() failed: (98) Address already in use
[bonniek@featherfall orx86]$ sudo ./ondd-x86_64
[sudo] password for bonniek:
01:36:39.355 [main] Unable to load config: /etc/ondd.conf (null)
01:36:39.356 [main] v2.0.0
01:36:39.415 [main] tuning to 0 Mhz 0 KSym
@bonnieking
bonnieking / 0000-geniatech-hdstar-modules.patch
Created December 18, 2015 14:55 — forked from pdp7/0000-geniatech-hdstar-modules.patch
outernet hdstar patch: orx-rpi/rpi/patches/linux/0aa6fa69a7874060590c8cb4fabdb9a222501a08/0000-geniatech-hdstar-modules.patch
diff --git a/drivers/media/dvb-frontends/ds3000.c b/drivers/media/dvb-frontends/ds3000.c
index 9d0d034..6cc9d22 100644
--- a/drivers/media/dvb-frontends/ds3000.c
+++ b/drivers/media/dvb-frontends/ds3000.c
@@ -1,8 +1,8 @@
/*
- Montage Technology DS3000 - DVBS/S2 Demodulator driver
- Copyright (C) 2009-2012 Konstantin Dimitrov <kosio.dimitrov@gmail.com>
+ Montage Technology DS3000/TS2020 - DVBS/S2 Demodulator/Tuner driver
+ Copyright (C) 2009 Konstantin Dimitrov <kosio.dimitrov@gmail.com>
wattsused = {}
whused = {}
for history in sensorhistories.sensorhistories:
wattsused[history.sensornum] = history.avgwattover5min()
whused[history.sensornum] = history.dayswatthr
wattsused = 0
whused = 0
for history in sensorhistories.sensorhistories:
wattsused += history.avgwattover5min()
whused += history.dayswatthr
Welcome to minicom 2.3
OPTIONS: I18n
Compiled on Nov 23 2010, 13:27:13.
Port /dev/ttyUSB1
Press CTRL-A Z for help on special keys
from django.core.cache import cache
from django.utils.hashcompat import md5_constructor as md5
from RHEL_scrape.rhlistupdates import RHListUpdates
import updateinfo
from consumers.xml_web.import_entry import ImportEntry
LOCK_EXPIRE = 60 * 5 # Lock expires in 5 minutes
@bonnieking
bonnieking / gist:5428715
Created April 21, 2013 06:42
beagle bone history
root@beaglebone:~/newstache/stache# ntpdate pool.ntp.org
21 Apr 06:41:10 ntpdate[680]: step time server 206.212.242.132 offset 419798972.484756 sec
root@beaglebone:~/newstache/stache# history
1 mkdir stache
2 cd ..
3 rmdir stache
4 cd ..
5 cd
6 cd
7 rmdir stache
@bonnieking
bonnieking / gist:5427575
Created April 20, 2013 21:54
beagle tweet
File found, taking pic
debug: stacheMessage = {"tweet":"New BeagleStache captured!","filename":"/home/root/stache/tmp/captured003.jpg"}
info: stacheMessage = {"tweet":"New BeagleStache captured!","filename":"/home/root/stache/tmp/captured003.jpg"}
info: LED on
info: contents.length = 278
info: --0.ed429920.3836aa6d
Content-Disposition: form-data; name="status"
New #BeagleBone BeagleStache image captured! @BeagleBoardOrg
@bonnieking
bonnieking / gist:5427019
Last active December 16, 2015 11:19
beaglebone USB
http://lazarenko.me/2013/03/04/python-in-trading/
# opkg update
# opkg install python-setuptools
path is wrong in `which easy_install`
# okpg install python-ctypes
# git clone http://github.com/walac/pyusb.git
# cd pyusb