Skip to content

Instantly share code, notes, and snippets.

@kwmiebach
kwmiebach / byobo_start_named_session.sh
Created December 15, 2014 23:08
start a named byobu session for a user
$ which wbio
/usr/bin/wbio
$ cat `which wbio`
#/bin/bash
# start byobu as user:
USER=webroot
# without parameters: list existing sessions

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

#!/bin/bash
#
# /etc/init.d/chicagoboss
#
# Starts Chicago Boss from the /home/boss/myapp directory.
#
# https://gist.github.com/kwmiebach/1230fddf665b50323471
# Source function library.
# . /etc/init.d/functions
@kwmiebach
kwmiebach / webstorm-cheat-sheet.md
Last active April 11, 2024 11:18
Webstorm cheat sheet
@kwmiebach
kwmiebach / tmux_cheat_sheet.md
Last active April 26, 2023 17:04
Cheat sheet for tmux

tmux

For an example configuration see https://github.com/remiprev/tmuxfiles

The tmux man page defines the following elements:

1 tmux server process for all session

1 or many tmux client sessions

@kwmiebach
kwmiebach / bluemoon-skin-midnight-commander.md
Last active August 29, 2015 14:19
BlueMoon — really black skin for mc

BlueMoon — really black skin for mc

see TECH-253

http://zool.in.ua/software-en-US/bluemoon/#skin-way

Copyright Artyom Bisyarin

Download archive with the skin. If the mc version is greater or equal 4.7.0-pre3 you should download and install this version:

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
# With absolute date ISO style:
# git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci)%C(bold blue)<%an>%Creset' --abbrev-commit"
# usage:
# $ git lg
# redirect to file:
@kwmiebach
kwmiebach / reverse-lines-npp.md
Last active April 16, 2019 15:30
Reverse line order / sort lines backwards in notepad++
@kwmiebach
kwmiebach / pytest.md
Last active May 11, 2024 15:17 — forked from amatellanes/pytest.sh
pytest cheat sheet

Usage

(Create a symlink pytest for py.test)

pytest [options] [file_or_dir] [file_or_dir] ...

Help:

@kwmiebach
kwmiebach / list_directories.md
Created May 17, 2015 11:41
List only directories using ls in bash

List only directories using ls in bash

Tell ls to only list directories (will not show hidden directories):

ls -1 -a -d */

List only hidden directories like .git .idea:

ls -1 -a -d .*/