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_topic branch in a new split
Related cards:
Load TAGS file in emacs manually
M-x visit-tags-table
You need to point to the directory in which ETAGS file generated and it will be loaded.
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
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...
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...
Add custom nested translation path to a rails engine
In your engine's engine.rb file add these line:
module MyEngine
class MyEngine < Rails::Engine
config.before_initialize do
config.i18n.load_path += Dir["#{config.root}/conf...
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...