(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#!/bin/bash | |
# Install Monaco font in Linux | |
# Version from nullvideo https://gist.github.com/rogerleite/99819#gistcomment-2799386 | |
sudo mkdir -p /usr/share/fonts/truetype/ttf-monaco && \ | |
sudo wget https://gist.github.com/rogerleite/b50866eb7f7b5950da01ae8927c5bd61/raw/862b6c9437f534d5899e4e68d60f9bf22f356312/mfont.ttf -O - > \ | |
/usr/share/fonts/truetype/ttf-monaco/Monaco_Linux.ttf && \ | |
sudo fc-cache |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Hippie expand. Groovy vans with tie-dyes. | |
;; Change the default hippie-expand order and add yasnippet to the front. | |
(setq hippie-expand-try-functions-list | |
'(yas/hippie-try-expand | |
try-expand-dabbrev | |
try-expand-dabbrev-all-buffers | |
try-expand-dabbrev-from-kill | |
try-complete-file-name |
# | |
# STL GDB evaluators/views/utilities - 1.03 | |
# | |
# The new GDB commands: | |
# are entirely non instrumental | |
# do not depend on any "inline"(s) - e.g. size(), [], etc | |
# are extremely tolerant to debugger settings | |
# | |
# This file should be "included" in .gdbinit as following: | |
# source stl-views.gdb or just paste it into your .gdbinit file |
#ack is a tool like grep, designed for programmers with large trees of heterogeneous source code | |
#to install ack, see http://betterthangrep.com/ | |
#to use ack, launch terminal (mac osx) and type 'ack <some_keywords>' | |
#ack will search all files in the current directory & sub-directories | |
#here's how I have my config file setup. this file is located on mac osx here | |
# ~/.ackrc | |
# Always sort the files |
;\aleph | ℵ | |
---|---|---|
;\forall | ∀ | |
;\hbar | ℏ | |
;\emptyset | ∅ | |
;\exists | ∃ | |
;\imath | ı | |
;\nabla | ∇ | |
;\neg | ¬ | |
;\surd | √ | |
;\flat | ♭ |
;; Needs terminal-notifier (brew install terminal-notifier) | |
(defun notify-osx (title message) | |
(call-process "terminal-notifier" | |
nil 0 nil | |
"-group" "Emacs" | |
"-title" title | |
"-sender" "org.gnu.Emacs" | |
"-message" message)) | |
;; org-pomodoro mode hooks |
public class Peterson { | |
public volatile boolean[] flag = new boolean[2]; | |
public volatile int victim; | |
public void lock() { | |
int i = Integer.parseInt(Thread.currentThread().getName().substring(7)) - 1; | |
int j = 1 - i; | |
flag[j] = true; | |
victim = i; | |
while (flag[j] && victim == i) {}; // wait | |
} |