Skip to content

Instantly share code, notes, and snippets.

View adityahas's full-sized avatar
🍉
Papaya?

Aditya Hastungkoro Hadi adityahas

🍉
Papaya?
View GitHub Profile
@adityahas
adityahas / mac-must-have-apps.md
Last active December 1, 2023 09:10
Mac OS Must Have Apps/Tools
#!/usr/bin/env bash
# inspired by
# https://gist.github.com/JannikArndt/feb720c1f5d210b4820b880af23f2a07
# which was inspired by
# https://github.com/fwartner/mac-cleanup/blob/master/cleanup.sh
# https://gist.github.com/jamesrampton/4503412
# https://github.com/mengfeng/clean-my-mac/blob/master/clean_my_mac.sh
# https://github.com/szymonkaliski/Dotfiles/blob/master/Scripts/clean-my-mac
# http://brettterpstra.com/2015/10/27/vacuuming-mail-dot-app-on-el-capitan/ / https://github.com/pbihq/tools/blob/master/MailDBOptimiser.sh
@adityahas
adityahas / remove blank lines regex.md
Created December 26, 2021 18:10 — forked from fomightez/remove blank lines regex.md
remove all blank lines using regular expressions
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21.
To use the support version of these attributes, remove the android namespace.
For instance, "android:colorControlNormal" becomes "colorControlNormal".
These attributes will be propagated to their corresponding attributes within the android namespace
for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix.
All Clickable Views:
-----------
@adityahas
adityahas / purgeAndroid.txt
Created April 16, 2018 10:43 — forked from tahmidsadik/purgeAndroid.txt
How to completely remove Android Studio from Mac OS X
How to Completely Remove Android Studio
Execute these commands from the terminal
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
@adityahas
adityahas / ForegroundServiceAndroidExample.java
Last active June 21, 2018 04:19 — forked from sunmeat/different files
Foreground service android example
MainActivity.java:
package com.alex.services;
import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;