Skip to content

Instantly share code, notes, and snippets.

😃
I love my pet projects.

Volodymyr jordan1997

😃
I love my pet projects.
Block or report user

Report or block jordan1997

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View local.properties
sdk.dir=/Users/volodymyrstelmashchuk/Library/Android/sdk
View BasePresenter.kt
/**
* The method add default method [handleError] for handle onError evert from the ObservableSource,
* and add disposable from this subscribe to CompositeDisposable [compositeDisposable]
*
* @param onNext - the function you have designed to accept emissions from the ObservableSource
*/
protected fun <T> Observable<T>.safeSubscribe(onNext: (T) -> Unit, onError: (Throwable) -> Unit = ::handleError) {
this.subscribe(onNext, onError)
.addToCompositeDisposable()
}
View deploy article to DO
scp Desktop/web/src/main/resources/* root@167.99.94.185:/var/www/schoolhelper.tech/blog/vpn
scp -r src/main/resources/blog root@167.99.94.185:/var/www/schoolhelper.tech
### deploy
gradle bootJar & ssh root@schoolhelper.tech "mkdir -p /root/backend/build/libs/" & scp docker-compose.yml root@schoolhelper.tech:/root/backend/ & scp Dockerfile root@schoolhelper.tech:/root/backend/ & scp build/libs/backend-0.0.1-SNAPSHOT.jar root@schoolhelper.tech:/root/backend/build/libs/backend-0.0.1-SNAPSHOT.jar & ssh root@schoolhelper.tech "cd backend && docker-compose up -d"
You can’t perform that action at this time.