Skip to content

Instantly share code, notes, and snippets.

@lancevalour
lancevalour / gist:b25d754b2e8bec911cdc
Created June 17, 2015 21:17
Batch delete Weibo post
while true; do input tap 670 257; input tap 680 257; input tap 473 745; sleep 5; done
@lancevalour
lancevalour / gist:705fa1e2c263a6ddb4e4
Created June 18, 2015 02:28
Batch delete Weibo post
CoordMode, Mouse, Screen
while true{
MouseClick, left, 1870, 170
MouseClick, left, 1850, 190
MouseClick, left, 1840, 120
sleep, 4000
}
return
Google play services won't update after root. (Install app on rooted device using google play services ???)
System update stops after unlocking bootloader.
adb shell
wm density X
wm density reset
wm size X X
wm size reset
fastboot oem get_unlock_data
fastboot oem unlock UNLOCK_KEY
adb reboot bootloader
fastboot flash recovery TWRP.img
All platform independent customization should go into AppTheme not AppBaseTheme
If you have custom component in Toolbar, for example Switch, styling cannot be applied to Switch layout, should be in ToolBarTheme
@lancevalour
lancevalour / gist:335945f52bf2675d1d33
Created June 25, 2015 18:36
Files to delete when Eclipse crash
e4.workbench
core.resources .snap
@lancevalour
lancevalour / gist:ff2807472a993f6bbed1
Created June 29, 2015 19:24
Ruby on rails install for windows
Download ruby (2.1.6) from http://rubyinstaller.org/downloads/
In CMD, type gem install
Download DevKit from http://rubyinstaller.org/downloads/
Extract DevKit on your PC
Follow the steps on https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
@lancevalour
lancevalour / gist:e67c31481db5c8c70e21
Created July 1, 2015 15:18
Moto G(2nd Gen) restore to stock firmware
In case you wipe all the internal storage of your phone and the phone is now soft bricked, you can flash the stock firmware to the phone to make it work again. Open CMD in the folder you put your mfastboot tool and type following commands.
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk1
mfastboot flash system system.img_sparsechunk2
mfastboot flash system system.img_sparsechunk3
@lancevalour
lancevalour / gist:a8b1784a96ece42b8c1a
Created July 10, 2015 18:18
VirtualBox Ubuntu Screen Resolution Issue
Virtualbox menu -> Devices -> Insert Guest Additions CD image
Shut down and restart