Skip to content

Instantly share code, notes, and snippets.

@Digicrat
Digicrat / tmux_test.sh
Created July 3, 2018 09:07
tmux script example
#!/bin/bash
SESSION=tmux_test
tmux -2 new-session -d -s $SESSION
# Setup Window 1
tmux new-window -t $SESSION:1 -n 'Logs'
tmux split-window -h
tmux select-pane -t 0
tmux send-keys "tail -f /var/log/lastlog" C-m
@Digicrat
Digicrat / emacs.el
Last active September 26, 2018 02:29
My Emacs Configuration
;; Melpa Package Manager (requires Emacs >= 24.1)
;; Originally pointed to http://melpa.milkbox.net/packages/
;; Without this M-x package-refresh-contents fails on most installations
(if (and (>= emacs-major-version 24)
(>= emacs-minor-version 1))
(progn
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
)
)