Skip to content

Instantly share code, notes, and snippets.

@feklee
feklee / README.md
Last active Apr 20, 2019
GnuPG on Termux for accessing USB smart card reader
View README.md

Prerequisites

  • smart card reader supported by GnuPG

    I use [0.332][4], a mod of the [SCM332 V2][1] which is comparatively light and small. Previously, I was simply using the SCM332 V2 directly with an OTG adapter.

  • root access from Termux

View keybase.md

Keybase proof

I hereby claim:

  • I am feklee on github.
  • I am feklee (https://keybase.io/feklee) on keybase.
  • I have a public key whose fingerprint is 5EF8 B601 7F66 8171 2599 45D6 BEF6 EFD3 8FE8 DCA0

To claim this, I am signing this object:

@feklee
feklee / README.md
Last active Jul 12, 2017
How to make long messages be sent as concatenated SMS on the Fx0
View README.md

With the original Japanese firmware on the Fx0, messages with more than 160 characters are sent as MMS. See instructions below concerning how to make long messages be sent as concatenated SMS.

  1. Stop SMS app on device.

  2. Create backup of app:

    $ adb root
    restarting adbd as root
    
@feklee
feklee / app.js
Last active Aug 29, 2015
Hierarchical error objects in Node.js (example for prototypal inheritance)
View app.js
// Tested with Node.js v0.10.35.
/*jslint node: true, maxerr: 50, maxlen: 80 */
'use strict';
var customErrors = require('./custom_errors'), test;
test = function () {
console.log(customErrors.isbnError);
@feklee
feklee / README.md
Last active Dec 31, 2017
Notes and experiments concerning HTML5 streaming, with an emphasis on live streaming
View README.md

Introduction

Collection of solutions for streaming via DASH, Dynamic Adaptive Streaming over HTTP, as of November 2014.

Recommended client: Chrome 38

Tool used for encoding live streams: FFmpeg

@feklee
feklee / remap_all.js
Last active Aug 29, 2015
For remapping frames of a timelapse created with the Ricoh Theta
View remap_all.js
// Tested with Node.js 0.10 and with "nona" from Hugin 2013.
//
// Used to create: <https://vine.co/v/O5DI55QZnii>
//
// Original images from the Theta need to be in the sub directory `raw_frames`.
//
// Remaped images go into the sub directory `frames`.
//
// Remapping is parameterized, see the function `createPtoFile`.
//
@feklee
feklee / 2012-10-23+02_b2g_build_attempt
Created Oct 23, 2012
Attempt to build B2G on Ubuntu 12.04/64 on Amazon EC2 on 2012-10-23 CEST
View 2012-10-23+02_b2g_build_attempt
$ cat .mozconfig
mk_add_options MOZ_OBJDIR=../build
mk_add_options MOZ_MAKE_FLAGS="-j9 -s"
ac_add_options --enable-application=b2g
ac_add_options --disable-libjpeg-turbo
# This option is required if you want to be able to run Gaia's tests
#ac_add_options --enable-tests
@feklee
feklee / 2012-10-22+02_b2g_build_attempt
Created Oct 22, 2012
Attempt to build B2G on Ubuntu 12.10/32 on Amazon EC2 on 2012-10-22 CEST
View 2012-10-22+02_b2g_build_attempt
$ cat .mozconfig
mk_add_options MOZ_OBJDIR=../build
mk_add_options MOZ_MAKE_FLAGS="-j9 -s"
ac_add_options --enable-application=b2g
ac_add_options --disable-libjpeg-turbo
# This option is required if you want to be able to run Gaia's tests
ac_add_options --enable-tests
You can’t perform that action at this time.