Skip to content

Instantly share code, notes, and snippets.

@robertdanci
robertdanci / setup.sh
Last active May 8, 2023 10:17
Mac setup script
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
curl -s "https://get.sdkman.io" | bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
brew install iterm2
brew install —cask docker
brew install intellij-idea-ce
brew install pycharm-ce
brew install sublime-text
brew install visual-studio-code
@robertdanci
robertdanci / samsung-debloater.txt
Last active April 21, 2022 16:25
Samsung minimal debloater
Instructions:
1. Download Android platform tools: https://developer.android.com/studio/releases/platform-tools
2. Enable USB debugging and run `adb devices` to pair the phone
3. Run `adb shell` and run the following:
# Facebook hidden app
pm uninstall --user 0 com.facebook.appmanager
# Facebook
pm uninstall --user 0 com.facebook.katana
@robertdanci
robertdanci / ValidArgumentsAspect.java
Created May 26, 2016 13:30
spring service layer arguments validation
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;