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 / 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. Любое решение имеет плюсы

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 / 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 / gtk.css
Created June 20, 2014 00:33
Highlight current tab for ubuntu terminal (~/.config/gtk-3.0/gtk.css)
TerminalWindow .notebook {
padding: 0;
border-width: 0;
}
TerminalWindow,
TerminalWindow.background {
background-image: none;
background-color: #6e6e6e;
color: #000000;
@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 / install.r.sh
Created June 8, 2014 08:19
install r on ubuntu 14.04
#!/bin/bash
# source
# ubuntu readme : http://cran.r-project.org/bin/linux/ubuntu/README
# cran r mirrors : http://cran.r-project.org/mirrors.html
# add repository
sudo apt-add-repository "deb http://cran.gis-lab.info/bin/linux/ubuntu trusty/"
# import key
@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 / bitrev.clj
Last active December 10, 2015 01:34
Reverse binary representation of 8 (16) bit numbers
(ns bitrev
(use clojure.test))
;; http://dolzhenko.blogspot.ru/2012/12/blog-post.html
;; reverse binary representation of 8 bit number
;; reverse binary representation of 16 bit number
(defn reverse-8bit
"reverse 8 bit number"
[n]
@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"
}