Skip to content

Instantly share code, notes, and snippets.

View vovkab's full-sized avatar

Vladimir Baryshnikov vovkab

  • if(we)
  • San Francisco
View GitHub Profile
@vovkab
vovkab / api.youtube
Created April 26, 2014 06:53
api.youtube
List video annotation:
https://www.youtube.com/annotations_invideo?plid=bla&video_id=<video_id>
@vovkab
vovkab / gradle
Created April 29, 2014 18:31
Gradle
apply from: "${rootDir}/android_common.gradle"
@vovkab
vovkab / android_textview_link_clickable
Created September 18, 2014 07:44
Android make link clickable inside TextView
@vovkab
vovkab / mac-os-haxm.md
Created October 21, 2014 03:42
Installing HAXM for Mac OS 10.10

Enable unsigned kext to be installed:

$ sudo nvram boot-args="kext-dev-mode=1"
@vovkab
vovkab / spoon-sample.gradle
Last active December 18, 2015 18:39
Spoon gradle integration for Android
/* Your Android Config Here */
/* Spoon Configuration */
repositories { mavenCentral() }
configurations { spoon }
dependencies { spoon 'com.squareup.spoon:spoon-runner:1.0.5' }
def buildDirPath = project.buildDir.path
def apk = buildDirPath + '/apk/' + project.name + '-debug-unaligned.apk'
sudo ln -s /usr/local/bin/VBoxManage /usr/bin/VBoxManage
http://stackoverflow.com/questions/31364475/genymotion-error-unable-to-load-virtualbox-engine-on-yosemite-virtualbox-ins
android:fontFamily="sans-serif" // roboto regular
android:fontFamily="sans-serif-thin" // roboto thin
android:fontFamily="sans-serif-light" // roboto light
android:fontFamily="sans-serif-condensed" // roboto condensed
@vovkab
vovkab / xfce
Last active December 31, 2015 00:09
Configure desktop icons, label and position:
Create file .gtkrc-2.0 in home directory:
style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 0
XfdesktopIconView::selected-label-alpha = 100
XfdesktopIconView::ellipsize-icon-labels = 0
XfdesktopIconView::tooltip-size = 128
@vovkab
vovkab / gentoo
Last active December 31, 2015 20:49
Build or update kernel, using .config in /usr/src/linux:
# genkernel --no-mrproper --no-clean --install --oldconfig --bootloader=grub all
@vovkab
vovkab / git
Last active January 2, 2016 03:48
# Publish local branch to repo and make it tracking:
$ git push -u origin branch_name
# List remote branches:
$ git remote show origin
# Show stale branches that will be removed:
$ git remote prune origin --dry-run
# Delete stale branches: