Skip to content

Instantly share code, notes, and snippets.

@elanozturk
elanozturk / byobuCommands
Created January 23, 2018 20:32 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
# cat << EOF > /dev/null
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# /!\ do not edit this file
# instead, override settings in ~/.tmux.conf.local, see README.md
# -- general -------------------------------------------------------------------
-----------------------------------------------------------
libreoffice --headless --convert-to csv url.xlsx url.csv
cat url.csv | sed 's/,/ ,/g' | column -t -s, | less -S
-----------------------------------------------------------
bind-key Up select-pane -U
bind-key Down select-pane -D
bind-key Left select-pane -L
bind-key Right select-pane -R
set -g mouse on
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
# (commented out because it disables cursor navigation in vim)
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
shuf < acc.txt | sponge acc.txt && awk 'NF' acc.txt | sponge acc.txt
bind-key Up select-pane -U
bind-key Down select-pane -D
bind-key Left select-pane -L
bind-key Right select-pane -R
set -g mouse on
# if run as "tmux attach", create a session if one does not already exist
new-session -n $HOST
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

import os
import time
print('removing old url.xlsx file')
time.sleep(1)
os.system("rm /root/Desktop/Docs/linux/url.xlsx >/dev/null 2>&1")
print('downloading new url.txt file from github')
os.system("cd /root/Desktop/Docs/linux/ && wget https://raw.githubusercontent.com/elanozturk/personal-backup/master/elan.txt >/dev/null 2>&1")
time.sleep(1)
os.system("sed 's/ \+/,/g' /root/Desktop/Docs/linux/elan.txt > /root/Desktop/Docs/linux/url.csv")
print('current song url :')
STEM.IS
-------
Allerjans-Happiness:67K
https://open.spotify.com/track/6JmWN6VdQkrMH4ZiamkDmL
alamet-i farika-Netto:55K
https://open.spotify.com/track/4uIW1Kzbz9eRq3BdX5lyA9.
Da Pace-Mortal:88K
https://open.spotify.com/track/0p7HsZLnTiLgMfRDXASquw