start new:
tmux
start new with session name:
tmux new -s myname
# Usage: | |
# source iterm2.zsh | |
# iTerm2 tab color commands | |
# https://iterm2.com/documentation-escape-codes.html | |
if [[ -n "$ITERM_SESSION_ID" ]]; then | |
tab-color() { | |
echo -ne "\033]6;1;bg;red;brightness;$1\a" | |
echo -ne "\033]6;1;bg;green;brightness;$2\a" |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.
With ffmpeg
this can be achieved with -c copy
. Older examples may use -vcodec copy -acodec copy
which does the same thing.
These examples assume ffmpeg
is in your PATH
. If not just substitute with the full path to your ffmpeg binary.
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
// Copyright 2017. All Rights Reserved. | |
// Author: [email protected] (Fangjun Kuang) | |
#include <QtGui> | |
#include <QGraphicsRectItem> | |
#include <QGraphicsView> | |
#include <QApplication> | |
#include <QGraphicsSceneMouseEvent> | |
class CustomItem : public QGraphicsEllipseItem |
#rebind C-b => C-a | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on |
# remap prefix from 'C-b' to 'C-x' | |
#unbind C-b | |
#set-option -g prefix C-x | |
#bind-key C-x send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind _ split-window -v | |
unbind '"' | |
unbind % |
# | |
# Spaceship ZSH Theme | |
# | |
# Author: Denys Dovhan, denysdovhan.com | |
# License: MIT | |
# https://github.com/denysdovhan/spaceship-zsh-theme | |
# ------------------------------------------------------------------------------ | |
# CONFIGURATION | |
# The default configuration that can be overridden in .zshrc |