Skip to content

Instantly share code, notes, and snippets.

View romasks's full-sized avatar

Raman Skaskevich romasks

View GitHub Profile
@romasks
romasks / ShowDebugKeyFingerprints.sh
Created February 16, 2020 22:29 — forked from j796160836/ShowDebugKeyFingerprints.sh
Show android debug key's fingerprints. (MD5 / SHA1 / SHA256)
#!/bin/bash
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
@romasks
romasks / RxSchedulers.java
Created February 11, 2020 09:42 — forked from guelo/RxSchedulers.java
Dagger injected Rx schedulers
import javax.inject.Named;
import javax.inject.Singleton;
import io.reactivex.Observable;
import io.reactivex.ObservableTransformer;
import io.reactivex.Scheduler;
@Singleton
public class RxSchedulers {
@romasks
romasks / webpacker_rails.md
Created October 26, 2018 05:53 — forked from maxivak/webpacker_rails.md
Webpack, Yarn, Npm in Rails
# The goal of this problem is to extract headers from a block of text,
# and arrange them hierarchically.
#
# See the specs for more detail on the output
def header_hierarchy(html)
raise "TODO"
end
describe '#header_hierarchy' do
@romasks
romasks / remote_bash.sh
Created November 1, 2017 14:06 — forked from n0ts/remote_bash.sh
execute bash script from remote site
# http://stackoverflow.com/questions/5735666/execute-bash-script-from-url
bash <(curl -s http://mywebsite.com/myscript.txt)
# http://stackoverflow.com/questions/4642915/passing-parameters-to-bash-when-executing-a-script-fetched-by-curl
curl http://foo.com/script.sh | bash -s arg1 arg2
@romasks
romasks / other .gitlab-ci.yml
Created March 21, 2017 08:20 — forked from daicham/.gitlab-ci.yml
A sample of .gitlab-ci.yml for a gradle project
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug