Skip to content

Instantly share code, notes, and snippets.

@kamikat
kamikat / drawable+bg_toolbar.xml
Last active June 8, 2016 08:46
Draw a circle under the Android status bar
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="?attr/colorPrimary"/>
</shape>
</item>
<item android:gravity="right|center_vertical" android:width="200dp" android:height="200dp" android:right="30dp" android:top="-100dp" android:bottom="-100dp">
<shape android:shape="oval">
<solid android:color="?attr/colorAccent"/>
</shape>
@winguse
winguse / Tenda U9 on linux.md
Last active October 20, 2023 09:40
Tenda U9 on linux

Two files:

  • /etc/usb_modeswitch.d/rtl8821cu
  • /usr/share/usb_modeswitch/0bda:1a2b
TargetVendor=0x0bda
TargetProduct=0x1a2b
StandardEject=1