Skip to content

Instantly share code, notes, and snippets.

View maks's full-sized avatar

Maksim Lin maks

View GitHub Profile
@maks
maks / runtests.sh
Created January 13, 2012 03:22
simple bash script to run android ant test target
#!/bin/sh
if [ $1 ]; then
SET_DEVICE="-Dadb.device.arg=\"-s $1\""
fi
echo $SET_DEVICE
ant clean
cd tests
ant $SET_DEVICE clean debug install test && date
@maks
maks / sbs.diff
Created April 7, 2012 11:41 — forked from vadmium/sbs.diff
SBS for Python-Iview
SBS for Python-Iview
* Overrides all the ABC Iview function, you only get SBS instead
* I hacked the internal interface for the list items in order to get the
front end to display multiple tree branches for the one SBS XML file, but
it should be done in a nicer way.
* Only works with the GTK version; probably breaks the CLI version
* I don’t think I ever finished the “Copy URL” button idea. But it would be
nice to be able to quickly pipe a URL into a video player and stream it
without worrying about downloading it.
@maks
maks / jsonpp
Created April 10, 2012 04:03
basic json pretty printing for cli
#!/usr/bin/env node
var pd = require('pretty-data').pd;
var buf = "";
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
//process.stdout.write(chunk);
@maks
maks / gistBespin.user.js
Created April 19, 2012 03:19 — forked from erikvold/gistBespin.user.js
Using this user script, you can replace any textarea you encounter on gist.github.com with a Bespin editor – making editing much more pleasant.
// ==UserScript==
// @name Bespin For Gist.Github
// @namespace gistBespin
// @include http://www.ngv.vic.gov.au/*
// @include https://www.ngv.vic.gov.au/*
// @datecreated 2010-07-03
// @lastupdated 2010-07-03
// @version 0.1
// @author Erik Vergobbi Vold
// @license MPL 1.1/GPL 2.0/LGPL 2.1
@maks
maks / android-aliased-png-tests.textile
Last active December 11, 2015 01:59
Test Results for Aliasing bug in webkit when displaying PNG with alpha.

Platform | Initial Aliasing| Aliasing OnTouch

4.0.3 x86 | YES | YES
4.0.3 Arm | NO | YES
4.1.2 x86 | NO | YES

@maks
maks / brackets-crx-notes.md
Last active December 17, 2015 11:59
Notes on Making Brackets work as a Chrome Packaged App
@maks
maks / notes.md
Last active December 17, 2015 12:38
fixing ICS webview html5 video playback
@maks
maks / http-proxy-auth-android.md
Last active August 24, 2020 06:49
Http Proxy Auth on Android

Http Proxy Auth on Android

The Plan

  1. Run a local transparent proxy on the device, talking to the external network proxy that requires authentication.
  2. Use iptables on the android device to route all traffic on ports 80, 443, etc to local proxy.
  3. A android app to provide UI for setting external proxy hostname, username, password