Skip to content

Instantly share code, notes, and snippets.

View kfigiela's full-sized avatar

Kamil Figiela kfigiela

View GitHub Profile
#!/usr/bin/env ruby
require "slack"
Slack.configure do |config|
config.token = ENV['SLACK_TOKEN']
end
channel = ENV['SLACK_CHANNEL']
# Slack.auth_test
@kfigiela
kfigiela / output.json
Last active December 22, 2015 15:31
pios api
{
"data": {
"charts": [],
"dateFormat": "H:00",
"series": [
{
"aggType": "A1h",
"avg": {
"avg": null,
"max": null,
Using a sandbox located at
/Users/kamilfigiela/sandbox/stack-testc/ghcjs-dom-hello/.cabal-sandbox
/Users/kamilfigiela/Library/Haskell/bin/alex --version
looking for tool c2hs near compiler in
/Users/kamilfigiela/NewByteOrder/toolchain/.cabal-sandbox/bin
/Users/kamilfigiela/NewByteOrder/toolchain/.cabal-sandbox/bin/cpphs --version
/usr/bin/gcc -dumpversion
/usr/local/bin/ghc --numeric-version
/usr/local/bin/ghc-pkg --version
looking for tool haddock near compiler in
Using a sandbox located at
/Users/kamilfigiela/NewByteOrder/development/nodelab-gui/.cabal-sandbox
/Users/kamilfigiela/Library/Haskell/bin/alex --version
looking for tool c2hs near compiler in
/Users/kamilfigiela/NewByteOrder/toolchain/.cabal-sandbox/bin
/Users/kamilfigiela/NewByteOrder/toolchain/.cabal-sandbox/bin/cpphs --version
/usr/bin/gcc -dumpversion
/usr/local/bin/ghc --numeric-version
/usr/local/bin/ghc-pkg --version
looking for tool haddock near compiler in
cat $1 $2 > $3
@kfigiela
kfigiela / complete.md
Last active July 16, 2016 08:23
DRA-F109 protocol commands
layout title
post
Complete guide to Denon DRA-F109 control protocol

Hardware specs

Denon DRA-F109/DNP-F109/DCD-F109 remote connector is in fact TTL-level (5V) serial port. The connector is 3.5mm TRS jack (standard stereo plug). Tip is RX, ring is TX, sleeve is ground. Data is transmitted at 115.2 kbps baud rate. It may be easily connected to non-Denon hardware by using cheap 5V tolerant USB-to-Serial adapter. The receiver (DRA-F109) echoes back data recieved from other devices.

Data protocol

@kfigiela
kfigiela / dump.txt
Created April 28, 2015 20:11
DNP-F109 DRA-F109 protocol
amp→network player→rasperry
Volume Up (several times)
0000000: 00 .
0000001: ff .
0000002: 55 U
0000003: 01 .
0000004: 01 .
0000005: 00 .
0000006: 40 @
@kfigiela
kfigiela / README.md
Last active August 29, 2015 14:14
README.md template

MySuperbComponent

Here describe shortly what the component does.

MySuperbComponent component is responsible for multiplication of numbers stored in CDO. It takes two integer numbers and saves the result in the first operand. As it is very early prototype, it supports only small numbers (up to 10).

Requirements

Here describe build requirements such as Java version, build tool (e.g. Maven, SBT) and possibly other dependencies that are neither in PaaSage nor Central Maven repository.

node_modules
@kfigiela
kfigiela / bootpd.plist
Last active May 30, 2016 17:33
Using native OS X NAT with VirtualBox
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bootp_enabled</key>
<true/>
<key>detect_other_dhcp_server</key>
<integer>1</integer>
<key>dhcp_enabled</key>
<array>