Elixir / Phoenix system packages install on opensuse 13.2
zypper ar http://download.opensuse.org/repositories/home:/Ledest:/erlang/openSUSE_13.2/home:Ledest:erlang.repo
# for inotify (live code reload)
zypper ar http://download.opensuse.org/repositories/filesystems/openSUSE_13.2/
zypper ref
zypper in inotify-tools
zypper in erlang-full
zypper in elixir
zypper in erts-devel
Related cards:
Install XGBoost with GPU support with conda
conda install py-xgboost-gpu
source: https://docs.anaconda.com/anaconda/user-guide/tasks/gpu-packages/
Opensuse VIM Konsole 256 colors
Try Settings -> Edit Current Profile... -> Environment: Edit... -> enter "TERM=xterm-256color" (without "").
To check how many colors terminal has use this script
Opensuse docker certificate error
You see this 2013/11/28 14:00:24 Get https://index.docker.io/v1/images/ubuntu/ancestry: x509: certificate signed by unknown authorit
You say wtf????????
Then In this file /etc/ssl/ca-bundle.pem
there is a hint: ```/usr/lib/ca-certi...
TMUX HOME END not working
I had a problem under OpenSuSE 13.1 with tmux 1.8-2.1.2 the home and end buttons did not work. It took me so long to find a solution but finally here it is, original link attached.
There is a nice tool called tput
which can display the key ...
Memoization in ruby with nested methods
class Example
def foo
def foo
@bar
end
bar = (1..10).inject(1, :*)
puts "bar is #{bar}"
@wibble = "wibble is #{bar / 30}"
@bar = bar / 20
end
end
example = Example.new
example.foo
bar is 3628800
=> 181440...
ModuleNotFoundError: No module named 'cv2' in jupyter notebook
Create a new environment with as of now python 3.7 since opencv not available in conda's python 3.8 packages
conda create --name opencv-cuda python=3.7
conda activate opencv-cuda
conda install pytorch torchvision cudatoolkit=10.2 openc...
gdiff vim other branch same file
Given you are on the development branch and have another branch my_topic
And want to compare the same file on the two different branches
When open a file in vim say, Gemfile
Then type :Gdiff my_topic
And Vim open Gemfile from my_...
ActiveRecord union with Arel
I had to create a complex SQL query with rails that must return an ActiveRecord::Relation
After reading over Dan Shultz presentation about Arel i decided to follow the solution h...
Nicely formatted colored git log
I was struggle to set up a nicely formatted git log for a while. What I wanted to achive is to be able to quickly overlook the history including the
branch structure, authors, time of commits, remote and local branches. Here is what I currently ...
How to restore kde klipper confirm dialog to defaults (KDE4)
I asked the same question from myself and it took some time to find a proper solution.
KDE config settings stored in ~/.share/config
and klippers' in ~/.share/config/klipperrc
In that file there is configuration group called Notifica...