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 / tortoisemerge-for-tortoisehg.md
Created April 9, 2014 10:11
how to install tortoisemerge to torgoisehg

how to install tortoisemerge to torgoisehg

Install latest tortoiseSVN (tortoise merge is included).

Assumed TortoiseSVN is installed to C:\Program Files\TortoiseSVN\

Edit .hgrc

[extdiff]

cmd.tortoisemerge = C:\Program Files\TortoiseSVN\bin\TortoiseMerge.exe

@yantonov
yantonov / restore-skype-icon.md
Created May 4, 2014 05:00
Restore missing skype icon for ubuntu 14.04

On 64bit, the required package to get a Skype tray / appindicator icon is not installed automatically. To fix this, use the following command:

sudo apt-get install sni-qt:i386

The Skype tray icon might disappear after you log in, but it should show up after a few seconds.

@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 / 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 / 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 / rJava.fix.sh
Created August 10, 2014 16:56
how to fix rJava problem
R CMD javareconf -e
# then
# This fixes the LD_LIBRARY_PATH problem for me (Ubuntu Linux 14.04, R version 3.1.1):
# Add this line to .profile:
export LD_LIBRARY_PATH $JAVA_HOME/jre/lib/amd64:$JAVA_HOME/jre/lib/amd64/server
@yantonov
yantonov / install-rabbitmq.sh
Created September 27, 2014 08:43
install latest rabbitmq 3.3.5
#!/bin/bash
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.3.5/rabbitmq-server_3.3.5-1_all.deb
dpkg -i rabbitmq-server_3.3.5-1_all.deb
rm rabbitmq-server_3.3.5-1_all.deb
@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)