Skip to content

Instantly share code, notes, and snippets.

View yantonov's full-sized avatar

Yury Antonov yantonov

  • The Milky Way galaxy
View GitHub Profile
@yantonov
yantonov / android-as-media-device.sh
Created December 1, 2013 17:45
how to mount android as media device on ubuntu
# HOW TO mount android as media device on ubuntu
# Step 1:
# Enable Developer options and enable USB debugging mode.
# Setting > About phone > Start tapping (7 times)
# on Build number option 'you are now developer'
# Then go to Setting > Developer options > Enable USB Debugging
# mount nexus 4
# Step 2:
@yantonov
yantonov / install-ghc-ubuntu.md
Last active June 11, 2020 09:20
How to install latest GHC from source + latest stack + cabal + cabal-install on ubuntu

How to install GHC from source + latest stack + cabal + cabal-install on ubuntu

for your convinience this instuction is available as:
gist
git repo

preferred way install stack than install ghc

stack (package manager and build tool, preferrered way to manage dependencies)

# settings
@yantonov
yantonov / install-ghc-macos.md
Last active August 23, 2019 03:31
How to install latest GHC from source + latest stack + cabal + cabal-install on mac os

How to install GHC from source + latest stack + cabal + cabal-install on mac os

for your convinience this instuction is available as:
gist
git repo

Prefererred way install stack then install ghc using stack

stack (package manager and build tool, preferrered way to manage dependencies)

@yantonov
yantonov / cult-of-done.md
Last active July 12, 2018 06:54
Cult of done

The Cult of Done Manifesto

The Cult of Done Manifesto is a special document. Written from bed with Kio Stark in our first few months of dating. It was one of those magic writing moments where I had the laptop open and our ideas flew onto the page. For me, it is a map of my 2009 heart. Getting it on paper was a cathartic documentation of my life, my soul, and my passion for unbridled creativity. Kio and I shared writing credit on it, licenced it Creative Commons and put it out into the world. Immediately a few folks made visual representations of it and it spread like wildfire for people who need a creative jumpstart.

— — —

Dear Members of the Cult of Done,

I present to you a manifesto of done. This was written in collaboration with Kio Stark in 20 minutes because we only had 20 minutes to get it done.

@yantonov
yantonov / hexlet-principles.md
Last active January 17, 2018 16:51
Hexlet programming principles
  • Принципы программирования Хекслета
  1. Язык — это инструмент
  2. Программирование — это не язык
  3. Понимание принципов важнее знания инструментов
  4. Паттерны — это не принципы программирования
  5. Написание кода — не цель
  6. Удаление кода лучше его написания
  7. Читаемый код важнее быстрого
  8. Любое решение имеет плюсы
@yantonov
yantonov / 20-nvidia.conf
Last active May 22, 2017 19:17
Fix brightness on ubuntu 14.04 lts for nvidia cards (create this file at /usr/share/X11/xorg.conf.d/20-nvidia.conf)
Section "Device"
Identifier "Default Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
@yantonov
yantonov / hg2git.sh
Last active March 25, 2016 05:32
Creates git repo from mercurial repo using fast-export tool
#/bin/bash
# script creates git repo from hg (mercurial) repo using fast-export tool
tempDirectory="tmp-"`date +%s`
function get_working_directory_path() {
echo "/tmp/$tempDirectory"
}

Keybase proof

I hereby claim:

  • I am yantonov on github.
  • I am yantonov (https://keybase.io/yantonov) on keybase.
  • I have a public key whose fingerprint is 9118 4C52 211A B2A7 FAAF DD75 1B30 B476 860A EF41

To claim this, I am signing this object:

@yantonov
yantonov / mgdb.sh
Created July 24, 2013 01:49
mongod start script
#/bin/bash
function start {
$MONGODB_HOME/bin/mongod --config=$MONGODB_HOME/bin/mongo.conf
}
case $1 in
start)
start
;;
@yantonov
yantonov / enable-gc-log.txt
Created January 12, 2016 04:17
How to enable gc logs on jvm
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-Xloggc:file.log
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=N