Skip to content

Instantly share code, notes, and snippets.

🚀
:shipit:

Veaceslav Gaidarji vgaidarji

🚀
:shipit:
Block or report user

Report or block vgaidarji

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 Pinned gist on profile page (emojiart.org - shower)
⁣     🚿 ̄\
     😓   |
    ⁣/|\💧 |
| 💧/ \   |
 ̄ ̄ ̄ ̄ ̄ ̄ ̄
@vgaidarji
vgaidarji / collapsed-markdown-section
Created Jun 12, 2018
Collapsed markdown section
View collapsed-markdown-section
<details><summary>Collapsed section</summary><p>
```
```
</p></details>
@vgaidarji
vgaidarji / sdkmanager-accept-licenses.sh
Created May 31, 2017
Update Android sdkmanager licenses automatically
View sdkmanager-accept-licenses.sh
#!/bin/bash
/usr/bin/expect -c '
set timeout -1;
spawn '"${ANDROID_HOME}"'/tools/bin/sdkmanager --licenses;
expect {
"y/N" { exp_send "y\r" ; exp_continue }
eof
}
'
@vgaidarji
vgaidarji / show-git-remote-ages.sh
Created May 19, 2017
Script which lists remote branches by age and includes some related information to identify last author and any branch names.
View show-git-remote-ages.sh
#!/bin/sh
exec git branch -r | cut -d' ' -f3 | xargs git show --pretty='%Cgreen%ai %Creset%h %an %d' -s | sed '/^$/d' | sort | uniq
@vgaidarji
vgaidarji / build.prop
Created Apr 26, 2017 — forked from CHEF-KOCH/build.prop
Android Build.prop tweaks <- FOR ALL AOSP ROMS (4.0.x - 5.0.x) ->
View build.prop
# Begin build properties
# EOL UNIX
# 0.0 644 /system/build.prop
#
# Note: Some changes are Device and OS/ROM independent!
# Note2: Some settings are between
# performance and security <- I prefer last one
#
ro.build.id= -----
ro.build.display.id= -----
@vgaidarji
vgaidarji / update-git-user-in-sub-dirs.sh
Last active Jun 26, 2018
Update Git user name in sub-directories
View update-git-user-in-sub-dirs.sh
#!/usr/bin/env sh
USER_NAME="Veaceslav Gaidarji"
USER_EMAIL="veaceslav.gaidarji@gmail.com"
echo "Using config: \n user.name=$USER_NAME, \n user.email=$USER_EMAIL\n"
for dir in */;
do
cd $dir
@vgaidarji
vgaidarji / theme-son-of-obsidian.css
Created Feb 12, 2017
Son of Obsidian rouge theme
View theme-son-of-obsidian.css
pre.highlight,
.highlight pre { background-color: #272822; }
.highlight .hll { background-color: #22282A }
.highlight .c { color: #99AA8A } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #93C763 } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #F1F2F3 } /* Name */
.highlight .o { color: #E8E2B7 } /* Operator */
.highlight .p { color: #F1F2F3 } /* Punctuation */
@vgaidarji
vgaidarji / AndroidStudio as git difftool, mergetool
Last active Nov 26, 2018
Use AndroidStudio as git difftool/mergetool on MacOS (place this inside your ~/.gitconfig).
View AndroidStudio as git difftool, mergetool
[merge]
tool = studio
[mergetool "studio"]
prompt = false
cmd = /Applications/Android\\ Studio.app/Contents/MacOS/studio merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED")
trustExitCode = true
[diff]
tool = studio
[difftool "studio"]
prompt = false
@vgaidarji
vgaidarji / checkstyle.gradle
Created Oct 10, 2016 — forked from kboyarshinov/checkstyle.gradle
Code quality gradle scripts for Android
View checkstyle.gradle
/**
* Checkstyle tasks
* Usage:
* - place this file under root dir of your project at /gradle directory
* - apply script from your gradle file:
* apply from : "{rootDir}/gradle/checkstyle.gradle"
*
* To configure checkstyle use configs at:
* "{rootDir}/config/checkstyle/checkstyle.xml" - for main projects
* "{rootDir}/config/checkstyle/checkstyle-test.xml" - for tests
@vgaidarji
vgaidarji / RxJava.md
Created Sep 15, 2016 — forked from cesarferreira/RxJava.md
Party tricks with RxJava, RxAndroid & Retrolambda
View RxJava.md

View Click

Instead of the verbose setOnClickListener:

RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));

Filter even numbers

Observable
    .just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
You can’t perform that action at this time.