Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
- gcc
| vendor/ | |
| .bundle/ | |
| node_modules/ | |
| Gemfile.lock |
Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.
Here's how it should work:
| # this file provides a method for formatting color using ascii escapes | |
| def color(color, content) | |
| style = {'clear' => 0, | |
| 'bold' => 1, 'underline' => 4, 'blink' => 5, 'hide' => 8, 'black' => 30, 'red' => 31, | |
| 'green' => 32, 'yellow' => 33, 'blue' => 34, 'magenta' => 35, 'cyan' => 36, 'white' => 37, 'bgred' => 41, | |
| 'bggreen' => 42, 'bgyellow' => 43, 'bgblue' => 44, 'bgmagenta' => 45, 'bgcyan' => 46, 'bgwhite' => 47} | |
| if style[color] != nil | |
| "\033[#{style[color]}m#{content}\033[0m" | |
| else |
| $ history | awk {'print $2, $3, $4'} | sort | uniq -c | sort -k1 -rn | head -n 30 | |
| 610 git status | |
| 568 git commit -m | |
| 491 git add . | |
| 252 git push origin | |
| 176 bundle | |
| 138 rails s | |
| 128 ls | |
| 120 git commit --amend | |
| 114 git reset --hard |
| class Dog | |
| def age | |
| @age | |
| end | |
| def initialize(age) | |
| @age = age | |
| end | |
| end |
| /// <summary> | |
| /// Dohvaća pratitelje trenutnog korisnika | |
| /// </summary> | |
| /// <param name="AccessToken"> | |
| /// Access token povezan sa računom trenutnog korisnika | |
| /// </param> | |
| /// <returns>Lista profila pratitelja trenutnog korisnika</returns> | |
| public static List<TwitterUserProfile> GetFollowers(TwitterTokens AccessToken) | |
| { |
| class Base | |
| def call | |
| 'call' | |
| end | |
| end | |
| p Base.new.call #=> "call" | |
| # Monkeypatching "works" but doesn't provide access to #super |
| require 'sinatra' | |
| require 'rubygems' | |
| require 'httparty' | |
| require 'net/http' | |
| require 'base64' | |
| set :dump_errors, false | |
| class Representative | |
| include HTTParty |
| source :rubygems | |
| # We are not loading Active Record, nor Active Resources etc. | |
| # We can do this in any app by simply replacing the rails gem | |
| # by the parts we want to use. | |
| gem "actionpack", "~> 3.2" | |
| gem "railties", "~> 3.2" | |
| gem "tzinfo" | |
| # Let's use thin |