Skip to content

Instantly share code, notes, and snippets.

View apiemont's full-sized avatar

Ante Gabrielssen apiemont

View GitHub Profile
@apiemont
apiemont / tmux.cheat
Created October 13, 2016 15:08 — forked from afair/tmux.cheat
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@apiemont
apiemont / .tmux.conf
Created October 13, 2016 15:16
tmux configuration file
# tmux starts a session with defult name of 0 (zero)
# list sessions with 'tmux ls'
# attach to a session with 'tmux attach' (ok if there is only one) or 'tmux attach 0'
# to detach issue CTRL-a-d
# to move to right/top/left split use CTRL-a then righ/top/left-arrow etc etc ...
# to resize a pane use CTRL-a-arrowkey
#
# my customizations below
#
@apiemont
apiemont / Makefile.linux
Last active November 7, 2017 18:45
Daophot Makefile
As modified to compile it under Ubuntu 14.04 (LTS) and Ubuntu 16.04 (LTS)
$ cat Makefile
F77 = gfortran
FFLAGS = -c -O2 -mcmodel=medium -fd-lines-as-comments
LFLAGS = -O2 -Wall -Wsurprising -defsym,mem_=0 -fbounds-check
HOSTLIBS = -lm
IMFORT = $(HOME)/opt/iraf-2.16.1-gfortran-linux64/unix/bin.linux64/libf2c.a $(HOME)/opt/iraf-2.16.1-gfortran-linux64/bin.linux64/libimfort.a $(HOME)/opt/iraf-2.16.1-gfortran-linux64/bin.linux64/libsys.a $(HOME)/opt/iraf-2.16.1-gfortran-linux64/bin.linux64/libvops.a $(HOME)/opt/iraf-2.16.1-gfortran-linux64/unix/bin.linux64/libos.a
FITLIB = -lcfitsio