Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am eflukx on github.
  • I am eflukx (https://keybase.io/eflukx) on keybase.
  • I have a public key whose fingerprint is 3AC3 606E B687 4915 F23A FADC A512 534F 49D8 4ADB

To claim this, I am signing this object:

@eflukx
eflukx / main.c
Created February 8, 2015 23:18
cc3200-ws2811
//*****************************************************************************
// Stukkie code om een WS2812 LED string aan te sturen....
//*****************************************************************************
#include <string.h>
#include <stdlib.h>
#include "hw_types.h"
#include "hw_memmap.h"
#include "hw_common_reg.h"
#include "hw_ints.h"
@eflukx
eflukx / build.out
Created April 29, 2016 22:28
after upgrading CCS to 6.1.3, it refuses to work..
**** Build of configuration Release for project wlan_station ****
"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: C:/ti/CC3200SDK_1.2.0/cc3200-sdk/example/common/gpio_if.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/bin/armcl" -mv7M4 --abi=eabi -me --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include" --include_path="C:/ti/CC3200SDK_1.2.0/cc3200-sdk/simplelink/" --include_path="C:/ti/CC3200SDK_1.2.0/cc3200-sdk/simplelink/include" --include_path="C:/ti/CC3200SDK_1.2.0/cc3200-sdk/simplelink/source" --include_path="C:/ti/CC3200SDK_1.2.0/cc3200-sdk/example/common" --include_path="C:/ti/CC3200SDK_1.2.0/cc3200-sdk/oslib" --include_path="C:/ti/CC3200SDK_1.2.0/cc3200-sdk/driverlib" --include_path="C:/ti/CC3200SDK_1.2.0/cc3200-sdk/inc" --include_path="C:/ti/CC3200SDK_1.2.0/cc3200-sdk/simplelink_extlib/provisioninglib" -g --define=ccs --define=USE_TIRTOS --define=SL_PLATFORM_MULTI_THREADED --define=cc3200 --diag_wrap=off --display_error_number --diag_warning=225 --
@eflukx
eflukx / enum_block.rb
Created July 6, 2016 09:58
Voorbeelde met Ruby blocks en de enumerable mixin
class Teller
include Enumerable
def initialize max = 100
@max = max
@teller = 0
end
def each
loop do
#!/usr/bin/ruby
# probeersel van weleer.
current_terminal = `tty`.gsub(/\n/, '')
dev_handle = IO.sysopen(current_terminal, "w")
io_stream = IO.new(dev_handle, "w")
Process.daemon
#ifndef __DRV_LCD5110_FONT__
#define __DRV_LCD5110_FONT__
unsigned char font6_8[][6] =
{
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, // sp
{ 0x00, 0x00, 0x00, 0x2f, 0x00, 0x00 }, // !
{ 0x00, 0x00, 0x07, 0x00, 0x07, 0x00 }, // "
@eflukx
eflukx / chip-flash.sh
Created October 14, 2017 17:24 — forked from foxbunny/chip-flash.sh
Script to flash CHIP
#!/bin/bash
#
# This script programs the CHIP's NAND flash using sunxi-tools' `fel` utiltiy,
# and U-Boot itself. The following tools must be present on the system:
#
# - dd (coreutils)
# - lsusb (usbutils)
# - fel (sunxi-tools)
# - mkimage (android-tools)
#
2020-04-21 22:55:56.713 [info] <0.2547.0> MQTT vhost picked using plugin configuration or default
2020-04-21 22:55:57.011 [error] <0.2550.0> ** Generic server <0.2550.0> terminating
** Last message in was connect
** When Server state == {<0.2549.0>,{amqp_params_direct,<<"user2">>,<<"lerZ1Jq00ATRaQzEKA0kocQWRnRX2za3orx3YXjhk57W589c4th7e7kPmam8Byos">>,<<"/">>,rabbit@aion,{amqp_adapter_info,{10,135,10,6},1883,{10,135,10,207},52496,<<"10.135.10.207:52496 -> 10.135.10.6:1883">>,{'MQTT',"3.1.1"},[{variable_map,#{<<"client_id">> => <<"Rogier214742391">>}},{channels,1},{channel_max,1},{frame_max,0},{client_properties,[{<<"product">>,longstr,<<"MQTT client">>},{client_id,longstr,<<"Rogier214742391">>}]},{ssl,false}]},[]}}
** Reason for termination ==
** {function_clause,[{amqp_gen_connection,terminate,[{{case_clause,{badrpc,{'EXIT',{{case_clause,"\"allow\""},[{rabbit_access_control,check_access,5,[{file,"src/rabbit_access_control.erl"},{line,211}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{rabbit_direct,connec
2020-04-21 23:25:24.427 [info] <0.702.0> MQTT vhost picked using plugin configuration or default
2020-04-21 23:25:24.443 [info] <0.705.0> rabbit_auth_backend_http:do_http_req Path0 "http://dev4.servername.nl:6980/api/v1/user"
2020-04-21 23:25:24.443 [info] <0.705.0> rabbit_auth_backend_http:do_http_req URI [{fragment,[]},{host,"dev4.servername.nl"},{path,"/api/v1/user"},{port,6980},{query,[]},{scheme,"http"},{userinfo,[]}]
2020-04-21 23:25:24.576 [info] <0.705.0> rabbit_auth_backend_http:do_http_req Path0 "http://dev4.servername.nl:6980/api/v1/vhost"
2020-04-21 23:25:24.576 [info] <0.705.0> rabbit_auth_backend_http:do_http_req URI [{fragment,[]},{host,"dev4.servername.nl"},{path,"/api/v1/vhost"},{port,6980},{query,[]},{scheme,"http"},{userinfo,[]}]
2020-04-21 23:25:24.777 [error] <0.705.0> ** Generic server <0.705.0> terminating
** Last message in was connect
** When Server state == {<0.704.0>,{amqp_params_direct,<<"user2">>,<<"lVvSVe2YNJACzz1TzpzYgke7I83lr34wTpuUwUPMH8X0IULO8m051is9NkEjlGix">>,<<"/">>,rabbit
@eflukx
eflukx / gen_esp_idf_vscode_include_paths.rb
Last active April 25, 2020 12:03
Generate include paths for ESP32 ESP-IDF for use in VSCode (c_cpp_properties.json)
require 'pry'
require 'json'
APP_ROOT = File.dirname(__FILE__)
def dirs_in path
Dir.each_child(path)
.select{ |e| File.directory? File.join(path, e) }
.map{ |dir| File.realpath File.join(path, dir) }
end