Skip to content

Instantly share code, notes, and snippets.

@Kanaderu
Kanaderu / .tmux.conf
Created February 10, 2017 15:12 — forked from ryin/.tmux.conf
tmux 1.6 configuration file
set -g default-terminal "screen-256color"
# set window notifications
setw -g monitor-activity on
set -g visual-activity on
# set vi keybindings
set-window-option -g mode-keys vi
# remap PREFIX to C-a
@Kanaderu
Kanaderu / tmux_local_install.sh
Created February 10, 2017 15:12 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
#ONE PS1 TO RULE THEM ALL
#add this to ~/.bash_profile or system equivalent
export PS1="\[\033[0;32m\]\u@\`if [ \$? = 0 ]; then echo \[\e[32m\] ┬─┬ノ\(º _ ºノ\); else echo \[\e[31m\] \(ノಥ 益ಥ)ノ ┻━┻ ; fi\`\[\e[0m\]:\w\$ "

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@Kanaderu
Kanaderu / tmux-cheatsheet.markdown
Created March 15, 2017 15:54 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
im assuming that the tmux prefix is Control+b and that you have emacs style key bindings on
1) enter copy mode using Control+b [
2) navigate to beginning of text, you want to select and hit Control+Space
3) move around using arrow keys to select region
4) when you reach end of region simply hit Alt+w to copy the region
5) now Control+b ] will paste the selection
you can navigate the text using the emacs style navigation key
Control+p, Control+n, Control+f, Control+b etc.
The default command key bindings are:
C-b Send the prefix key (C-b) through to the application.
C-o Rotate the panes in the current window forwards.
C-z Suspend the tmux client.
! Break the current pane out of the window.
" Split the current pane into two, top and bottom.
# List all paste buffers.
$ Rename the current session.
% Split the current pane into two, left and right.
@Kanaderu
Kanaderu / Install NVIDIA Driver and CUDA.md
Created June 22, 2018 16:28 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@Kanaderu
Kanaderu / README.md
Created November 10, 2019 19:16 — forked from genomics-geek/README.md
Setup ReactJS, Redux, Webpack with React Hot Reloading on an existing Django Project

Setting up ReactJS/Redux using Webpack for an existing Django project

This guide will help set up your django project to use ReactJS

1. Install Python dependencies

Add pip requirements to our django project:

  • django-webpack-loader==0.4.1 ( Connects Django project with Webpack)