Skip to content

Instantly share code, notes, and snippets.

View imaginator's full-sized avatar
🏗️
building

Simon Tennant imaginator

🏗️
building
View GitHub Profile
@imaginator
imaginator / ipcamera.trace
Last active September 17, 2018 10:22
debugging ipcamera binding
2018-09-17 10:14:28.277 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 596, cap: 596/596, unwrapped: PooledUnsafeDirectByteBuf(ridx: 596,
widx: 596, cap: 1024)), decoderResult: success)
2018-09-17 10:14:28.279 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is :--boundary
2018-09-17 10:14:30.640 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - ******** Cleaning channels for camera at 10.7.11.61 *********
2018-09-17 10:14:30.641 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Clean channels is now locked
2018-09-17 10:14:30.642 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Channel status is -1 for URL:/ISAPI/Streaming/channels/101/picture
2018-09-17 10:14:30.642 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Channel status is -1 for URL:/ISAPI/Smart/AudioDetection/channels/101
2018-09-17 10:14:30.643 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Channel status is -1 for URL:/ISAPI/System/Video/inputs/cha
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<StreamingChannel xmlns="http://www.hikvision.com/ver20/XMLSchema" version="2.0">
<id>101</id>
<channelName>IPdome</channelName>
<enabled>true</enabled>
<Transport>
<maxPacketSize>1000</maxPacketSize>
<ControlProtocolList>
<ControlProtocol>
<streamingTransport>RTSP</streamingTransport>
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
#EXTINF:-1,BBC - Radio 2
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p
#EXTINF:-1,BBC - Radio 3
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-aac-lc-a/format/pls/vpid/bbc_radio_three.pls
#EXTINF:-1,BBC - Radio 4
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p
#EXTINF:-1,BBC - Radio 5 live
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
#EXTINF:-1,BBC - Radio 2
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p
#EXTINF:-1,BBC - Radio 3
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-aac-lc-a/format/pls/vpid/bbc_radio_three.pls
#EXTINF:-1,BBC - Radio 4
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p
#EXTINF:-1,BBC - Radio 5 live
CONFIG_TARGET_lantiq=y
CONFIG_TARGET_lantiq_xrx200=y
CONFIG_TARGET_lantiq_xrx200_DEVICE_TDW8970=y
CONFIG_PROCD_SHOW_BOOT=y
#disable defaults
# CONFIG_KERNEL_SWAP is not set
# CONFIG_PACKAGE_br2684ctl is not set
# CONFIG_PACKAGE_dsl-vrx200-firmware-xdsl-b-patch is not set
# CONFIG_PACKAGE_kmod-gpio-button-hotplug is not set
#!/bin/sh
set -xe
# the VDSL2 box is
# Hardwareversion: TD-W9980B(DE) v1 00000000
# Firmwareversion: #0.6.0 2.8 v0022.0 Build 140924 Rel.35045n
# cat <device>.settings| ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected]
# Upgrade build configs
@imaginator
imaginator / gist:a2a71e4ec58b40f5f922
Last active August 29, 2015 14:27
Postgres show who is connected and from where and how many connections
sudo -u postgres psql -c "SELECT usesysid, usename, client_addr, count(usename) FROM pg_stat_activity group by usesysid, usename, client_addr;"
gyp ERR! System Linux 3.13.0-44-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/buddycloud-http-api/node_modules/ltx/node_modules/node-expat
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Linux 3.13.0-44-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" "."
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
master: localhost
file_client: local
# When you have deployed to your Virtual machine you will want
# to manage updates from a private Git reposoitory
# to make this happen commend out the file_roots below
#file_roots:
# base:
state_verbose: True
file_client: local
gitfs_provider: gitpython
fileserver_backend:
- roots
- git