Skip to content

Instantly share code, notes, and snippets.

Avatar

Luca Capra muka

View GitHub Profile
View README.md

Obtaining RK3066 boot ROM.

Here are my steps.

At first, I took a look to RK30xxLoader(L)_V1.18.bin. This file appears in update.img for my device. So, I unpacked update.img using rk29Kitchen.

strings on that file returns nothing interesting, so I assumed the file is crypted

@muka
muka / app.js
Last active Aug 29, 2015 — forked from jonalter/app.js
View app.js
var win = Titanium.UI.createWindow({
backgroundColor: 'blue'
});
var btn = Ti.UI.createButton({
title : 'Add Notification'
});
btn.addEventListener('click', function(e) {
var activityName = Ti.App.name;
View app_snippet.js
// add all items to collection
Alloy.Collections.Fugitive.reset([{
"name" : "Jeff Haynie"
}, {
"name" : "Nolan Wright"
}, {
"name" : "Don Thorp"
}, {
"name" : "Marshall Culpepper"
}, {
@muka
muka / gist:f961a62b41bf5ad8f064
Created Nov 23, 2014
Start a minicom to show arduino serial
View gist:f961a62b41bf5ad8f064
#!/bin/sh
# Usage: ./start_minicom 1 ACM # uses /dev/ttyACM1
#Start a minicom to show arduino serial output
# first argument to set the proper /dev/tty index
# second argument to set the name of /dev/tty index
Didx="0"
Dtype="USB"
@muka
muka / notification.js
Last active Aug 25, 2017
titanium android, pass extras from a notification to main app
View notification.js
/**
* @see https://gist.github.com/muka/d4afae20a5732f3937e8
*/
var notificationCounter = 0;
module.exports.launch = function(options) {
options = options || {};
if( !options.contentTitle ||
@muka
muka / test.js
Last active Aug 29, 2015
idm test
View test.js
// install deps
// npm i muka/Appcelerator@idm
// 1 get the captcha link, from cli
// # node test.js
// 2 visit the link displayed
// 3 create the user, from cli
// # node test.js [session] [captcha]
var idmTest = function() {
@muka
muka / atom-goplus-install.sh
Last active Dec 9, 2015
install go and go-plus for atom on ubuntu
View atom-goplus-install.sh
# Install go from ppa
sudo apt-add-repository ppa:gophers/go -y
sudo apt-get update
sudo apt-get install golang golang-go.tools golang-go.tools-dev -y
# Add $GOPATH
# GOPATH="~/go"
# mkdir $GOPATH
View migrate-servioticy.js
var couchbase = require('couchbase');
var ViewQuery = couchbase.ViewQuery;
var run = function () {
importData();
};
var importData = function () {
var raptor = new couchbase.Cluster('couchbase://127.0.0.1');
@muka
muka / kemap.cson
Created Oct 18, 2016
my custom keymap
View kemap.cson
'atom-text-editor':
'ctrl-s': 'atom-save-all:saveAll'
# 'ctrl-shift-s': 'atom-save-all:saveAll'
'alt-shift-f': 'formatter:format-code'
'atom-text-editor[data-grammar="source go"]:not(.mini)':
'alt-g': 'golang:godef'
'alt-shift-g': 'golang:godef-return'
'atom-text-editor[data-grammar~="go"]:not([mini])':
View mqtt test.js
var mqtt = require('mqtt');
var client = mqtt.connect('mqtt://localhost:1883', {
username: "admin",
password: "eyJhbGciOiJIUzUxMiJ9.eyJjcmVhdGVkIjoxNDc3NDg1NDc5OTEzLCJleHAiOjE0Nzc0ODcyNzksInV1aWQiOiI2NmVkNDc3Mi0wNDg5LTRlOTYtYmI2NS01NDhiMmVkMmM3MWQifQ.LbOAr8pPApDlVBLi32JWtCjmCa80ByAJYq9BnTnWQgh4SWka4WzykMU0D_atE5tYtgICj2QOg-OFglv2ZqLLNw",
protocolId: 'MQTT',
protocolVersion: 4,
});
client.on('connect', function () {