https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

| zfs list -t snapshot -H -o name | grep "201509[0-9].*" | xargs -n1 echo | |
| # zfs list -t snapshot -H -o name | grep "201509[0-9].*" | xargs -n1 zfs destroy |
| Working Huawei E3372h-153 SETPORT mappings | |
| replacing A1,A2 with FF turns off need for usb_modeswitch | |
| AT^SETPORT="A1,A2;12,1,16,A1,A2" | |
| ^GETPORTMODE: TYPE: WCDMA: huawei,PCUI:0,MDM:1,NDIS:2,CDROM:3,SD:4, | |
| AT^SETPORT="A1,A2;1,12,16,A1,A2" |
| #!/usr/bin/env ruby | |
| # | |
| # Hack to use Android phone as barcode scanner for pc. | |
| # | |
| # Installation and setup: | |
| # * Enable usb debugging on your Android phone | |
| # * Make sure you have an Android SDK installed | |
| # * Make sure xdotool is installed (apt-get has it) http://www.semicomplete.com/projects/xdotool/ | |
| # * Build and install https://github.com/majido/clipper | |
| # * Start service: `adb shell su -c \'am startservice ca.zgrs.clipper/.ClipboardService\'` |
| # Backup your packages list | |
| # Get a packages list | |
| dpkg --get-selections > ~/Package.list | |
| # Copy list of repositories | |
| sudo cp /etc/apt/sources.list ~/sources.list | |
| # Export repo keys | |
| sudo apt-key exportall > ~/Repo.keys |
| # | |
| # Naive multilingual static file serving with nginx | |
| # | |
| # Requests to root (/) will be redirected to language-prefixed sub location | |
| # according to Accept-Language header. Supports only the first language in the | |
| # Accept-Language header field. | |
| # | |
| # At any other location than /: Tries requested resource at given location and | |
| # falls back to root directory (will function as default language). | |
| # |
| #!/bin/bash | |
| . build/envsetup.sh | |
| mmm frameworks/base/packages/SystemUI/ | |
| adb start-server | |
| adb shell pkill -TERM -f com.android.systemui | |
| adb remount | |
| adb push $OUT/system/priv-app/SystemUI.apk /system/priv-app/SystemUI.apk | |
| adb shell pkill -TERM -f com.android.systemui | |
| adb shell chmod 0644 /system/app-priv/SystemUI.apk | |
| sleep 2 |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |