Skip to content

Instantly share code, notes, and snippets.

View moehandi's full-sized avatar
:octocat:

M. Andi Saputra moehandi

:octocat:
  • Jakarta, Indonesia
View GitHub Profile
@moehandi
moehandi / build.gradle
Created March 7, 2018 07:54 — forked from gabrielemariotti/build.gradle
Use signing.properties file which controls which keystore to use to sign the APK with gradle.
android {
signingConfigs {
release
}
buildTypes {
release {
signingConfig signingConfigs.release
}

Multiple MySQL Versions with Homebrew

For homebrew version 0.9.5.

brew -v # => Homebrew 0.9.5

Install the current version of mysql.

# Install current mysql version

brew install mysql

@moehandi
moehandi / gist:cff8a397beb954fe53c87155b23dc78c
Created October 16, 2018 03:42
android-adb_list_and_remove_app
command:
pm list packages -f
pm list packages -f | grep "opera" // for specific apps name
pm uninstall -k --user 0 package_name
example:
1. first list package to uninstall, and example line apps
shell@grandpplte:/ $ pm list packages -f | grep "line"
result:
package:/data/app/jp.naver.line.android-1/base.apk=jp.naver.line.android
@moehandi
moehandi / RequestAndResponseLoggingFilter.java
Created November 20, 2018 15:55 — forked from int128/RequestAndResponseLoggingFilter.java
Spring Web filter for logging request and response
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.web.filter.OncePerRequestFilter;
import org.springframework.web.util.ContentCachingRequestWrapper;
import org.springframework.web.util.ContentCachingResponseWrapper;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
@moehandi
moehandi / atom-macos-context-menu.md
Created February 22, 2019 10:13 — forked from idleberg/atom-macos-context-menu.md
“Open in Atom” in macOS context-menu

Open in Atom

  • Open Automator
  • Create a new Service
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /usr/local/bin/atom -n "$@"
  • Set “Pass input” to as arguments
  • Save as Open in Atom