As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/bin/sh | |
# | |
# Setup a work space called `work` with two windows | |
# first window has 3 panes. | |
# The first pane set at 65%, split horizontally, set to api root and running vim | |
# pane 2 is split at 25% and running redis-server | |
# pane 3 is set to api root and bash prompt. | |
# note: `api` aliased to `cd ~/path/to/work` | |
# | |
session="work" |
<!--- | |
Author: Pali Madra | |
URL: http://palimadra.tumblr.com | |
Description: Cheat sheet for markdown on stackedit.io at http://www.stackedit.io | |
Version: 1.0 | |
Last updated: 10/26/2014 | |
---> | |
<!--- HEADING ---> | |
# Header 1 # |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
You must use the magic method %save
:
In [1]: %save?
Type: Magic function
String Form:<bound method CodeMagics.save of <IPython.core.magics.code.CodeMagics object at 0x7fb5d25bb1d0>>
Namespace: IPython internal
File: /usr/lib/python2.7/dist-packages/IPython/core/magics/code.py
/** | |
* A simple theme for myfanwy.github.io | |
* | |
* reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se | |
*/ | |
<link href='http://fonts.googleapis.com/css?family=Megrim' rel='stylesheet' type='text/css'> | |
<link href='http://fonts.googleapis.com/css?family=Raleway:300,400,700' rel='stylesheet' type='text/css'> | |
/********************************************* |
license: mit | |
height: 545 | |
scrolling: no | |
border: no |
# SGR color constants | |
# rene-d 2018 | |
class Colors: | |
""" ANSI color codes """ | |
BLACK = "\033[0;30m" | |
RED = "\033[0;31m" | |
GREEN = "\033[0;32m" | |
BROWN = "\033[0;33m" | |
BLUE = "\033[0;34m" |