Skip to content

Instantly share code, notes, and snippets.

View rosuH's full-sized avatar
👻
Wubba lubba dub dub

rosuH

👻
Wubba lubba dub dub
View GitHub Profile
@rosuH
rosuH / .zshrc
Created June 10, 2019 06:47
Set ADB in MacOS
export ANDROID_HOME=/Users/$USER/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
@rosuH
rosuH / CGFontRenderingFontSmoothingDisabled.sh
Created June 10, 2019 03:38
CGFontRenderingFontSmoothingDisabled For VSCode in Macos
defaults write com.microsoft.VSCode.helper CGFontRenderingFontSmoothingDisabled -bool NO
@rosuH
rosuH / ripple.xml
Last active June 14, 2019 06:08
[Android ripple]
android:background="?android:attr/selectableItemBackground"
android:background="?android:attr/selectableItemBackgroundBorderless"
<!--long Press-->
android:foreground="?attr/selectableItemBackgroundBorderless"
@rosuH
rosuH / KeyboardSwap.sh
Created May 22, 2019 01:21
[Keepass2Android KeyboardSwap] #KeyboardSwap #Keepass2Android
adb shell pm grant keepass2android.plugin.keyboardswap2 android.permission.WRITE_SECURE_SETTINGS
@rosuH
rosuH / .gitignore
Created February 9, 2019 08:33
Android git ignore
# Built application files
*.apk
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
@rosuH
rosuH / DateFormatterInJava8.java
Created February 7, 2019 07:45
Date Formatter In Java8
import java.util.*;
import java.text.*;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public class DateDemo {
public static void main(String args[]) {
Date dNow = new Date("Tue, 05 Feb 2019 00:00:00 GMT");
@rosuH
rosuH / Android_captive_204.sh
Created February 7, 2019 03:23
Android captive 204
adb shell "settings put global captive_portal_http_url http://captive.v2ex.co/generate_204";
adb shell "settings put global captive_portal_https_url https://captive.v2ex.co/generate_204";
@rosuH
rosuH / refresh_mediastore.sh
Created October 25, 2018 10:22
[ADB Refresh Mediastore] #Android #Media
#!/bin/bash
adb shell 'su -c "am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard/DCMI/Images_new/"'
@rosuH
rosuH / RxJavaForOnNext.class
Created October 25, 2018 09:15
[RxJava onNext Test] #Java #RxJava
Observable
.create((ObservableOnSubscribe<Integer>) emitter -> {
emitter.onNext(1);
emitter.onComplete();
})
.map(integer -> {
System.out.println(" =========>>>> " + integer);
return integer + 10;
})
.flatMap((Function<Integer, ObservableSource<Integer>>) integer -> {
@rosuH
rosuH / crash.log
Created September 30, 2018 02:21
Vivaldi crash log
Process: Vivaldi [1994]
Path: /Applications/Vivaldi.app/Contents/MacOS/Vivaldi
Identifier: com.vivaldi.Vivaldi
Version: 2.0.1309.29 (2.0.1309.29)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Vivaldi [1994]
User ID: 502
Date/Time: 2018-09-30 09:57:48.491 +0800