Skip to content

Instantly share code, notes, and snippets.

Avatar

Sbe-ng ThePredators

View GitHub Profile
@ThePredators
ThePredators / AndroidWorkerInjection.java
Last active Jan 5, 2021
[Dagger] integration with workers (For Java People)
View AndroidWorkerInjection.java
public class AndroidWorkerInjection {
public static void inject(Worker worker) {
checkNotNull(worker, "worker");
Object application = worker.getApplicationContext();
if (!(application instanceof HasWorkerInjector)) {
throw new RuntimeException(
String.format(
"%s does not implement %s",
application.getClass().getCanonicalName(),
View readme.md

iTerm Config

Install HomeBrew

## Install xcode utils
xcode-select --install
## Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
## Check that everything is Ok
brew doctor
@ThePredators
ThePredators / readme.md
Last active Apr 5, 2021
Node Version Manager
View readme.md

🔥 Node Version Manager (CheatSheet)

Full Doc is Here

Install NVM :

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

Configure :

@ThePredators
ThePredators / readme.md
Last active Apr 5, 2021
iTerm + VsCode
View readme.md

iTerm + VsCode

Install iTerm :

brew install --cask iterm2

Install ZSH :

@ThePredators
ThePredators / readme.md
Last active Apr 5, 2021
HomeBrew Aliases
View readme.md

HomeBrew Alias

  1. Add this to ".zshrc" or ".bash_profile"
PROXY="define it"
# brew install
brui() {
  brew update;
  brew install $@ --verbose;
}
@ThePredators
ThePredators / readme.md
Last active Apr 5, 2021
Git CLI Usefull
View readme.md

Git+Gitflow CLI (Usefull Aliases)

  1. Add this to your ".bash_profile" or ".zshrc" :
## Git 
alias gi='git init'
alias gc="git clone"
alias grao="git remote add origin "
alias grro="git remote rm origin "
@ThePredators
ThePredators / macos-cli.md
Last active Apr 5, 2021
[macOS] usefull CLI
View macos-cli.md

macOS Usefull CLI

Enable in Security / Confidentiality the Install From everywhere Button

sudo spctl --master-disable

Show Hidden Files

defaults write com.apple.finder AppleShowAllFiles -boolean true; killall Finder
@ThePredators
ThePredators / readme.md
Last active Apr 5, 2021
iOS zsh alias to deploy CocoaPods Magic
View readme.md

ZSH Aliases for CocoaPods/Ruby/Fastlane CLI

  1. Add this to your ".bash_profile" or ".zshrc" :
PROXY="http://localhost:1234"
piu() {
  kill $(ps aux | grep 'Xcode' | awk '{print $2}');
  pod deintegrate;
  pod repo update;
  pod install;
View readme.md

🔥 Python Version Manager (CheatSheet)

Install PyEnv

# 1. Install
brew install pyenv

# 2. export to .zshrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
@ThePredators
ThePredators / readme.md
Last active Apr 7, 2021
Flutter Aliases
View readme.md

Flutter Aliases

# Flutter
alias fr="flutter run -d all --verbose"

alias frm="flutter run -d macos"
alias frl="flutter run -d linux"
alias frw="flutter run -d windows"
alias frc="flutter run -d chrome"