Skip to content

Instantly share code, notes, and snippets.

View JianxunRao's full-sized avatar

JianxunRao

View GitHub Profile
@arno01
arno01 / docker-on-android.md
Last active October 19, 2023 07:48
Docker on Android

WORK IN PROGRESS

Docker on Android

Setup:

Samsung Galaxy Tab S5e SM-T720
Android Pie on Linux 4.9.112 (not rooted)
Termux
@essoen
essoen / web.xml
Last active May 6, 2022 04:05
CORS * for GeoServer with Tomcat add following to `/var/lib/tomcat7/webapps/geoserver/WEB-INF/web.xml`
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>cors.allowed.methods</param-name>
<param-value>GET,POST,HEAD,OPTIONS,PUT</param-value>
@Frikish
Frikish / SwipeRefreshLayout and StickyListHeaders.md
Last active February 23, 2017 08:57
SwipeRefreshLayout with StickyListHeaders

Trying to find a solution

I had a problem getting the new fancy SwipeRefreshLayout from the appcompat lib to work with a custom listview, in this case the StickyListHeaders. Since the First child of the SwipeRefreshLayout should be either a ScrollView or a pure List, some workaround had to be done.

@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