(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
:
FROM ubuntu | |
MAINTAINER Eric Mill "eric@konklone.com" | |
# turn on universe packages | |
RUN echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
# basics | |
RUN apt-get install -y nginx openssh-server git-core openssh-client curl | |
RUN apt-get install -y nano |
# Ways to execute a shell script in Ruby | |
# Example Script - Joseph Pecoraro | |
cmd = "echo 'hi'" # Sample string that can be used | |
# 1. Kernel#` - commonly called backticks - `cmd` | |
# This is like many other languages, including bash, PHP, and Perl | |
# Returns the result of the shell command | |
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111 |
javascript:(function()%7Bfunction%20t(t)%7Bconsole.log(t);t.date.match(e);var%20n=RegExp.$1;var%20r=RegExp.$2;if(r.length%3C=1)r=%220%22+r;var%20i=RegExp.$3;if(i.length%3C=1)i=%220%22+i;var%20s=%22%22+n+%22/%22+r+%22/%22+i;var%20o=%5Bs,t.name,t.author,t.url%5D;return%20o.join(%22%5Ct%22)+%22%5Cn%22%7Dfunction%20n(e)%7Bvar%20t=window.open(%22%22,%22name%22,%22height=250,width=700%22);t.document.write(%22%3Chtml%3E%3Chead%3E%3Ctitle%3EAmazon%20to%20TSV%3C/title%3E%22);t.document.write(%22%3C/head%3E%3Cbody%3E%22);t.document.write(%22%3Cpre%3E%22);t.document.write(e);t.document.write(%22%3C/pre%3E%22);t.document.write(%22%3C/body%3E%3C/html%3E%22);t.document.close();return%20t%7Dfunction%20u(e)%7Bif(typeof%20e!==%22number%22)%7Bvar%20e=0;$(%22%3Cdiv/%3E%22).css(%7Bposition:%22fixed%22,left:0,top:0,width:%22100%25%22,height:%22100%25%22,zIndex:1e3,backgroundColor:%22rgba(0,0,0,.7)%22,color:%22%23fff%22,fontSize:30,textAlign:%22center%22,paddingTop:%2215em%22%7D).attr(%22id%22,%22___overlay%22).text(%22Amazon%E3%8 |
import fontforge as ff | |
CODE_FONT="source-code-pro/target/OTF/SourceCodePro-Regular.otf" | |
HAN_FONT="source-han-sans/Regular/SourceHanSansJP-Regular.otf" | |
c=ff.open(CODE_FONT) | |
c.selection.select(("ranges", None),0x20,0x7e) | |
c.selection.invert() | |
c.clear() | |
c.cidConvertTo('Adobe', 'Identity', 0) |
#Prefix is Ctrl-a | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-b | |
set -sg escape-time 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
#Mouse works as expected |
#!/usr/bin/env python | |
"""Edit a file in the host nvim instance.""" | |
import os | |
import sys | |
from neovim import attach | |
args = sys.argv[1:] | |
if not args: | |
print "Usage: {} <filename> ...".format(sys.argv[0]) |
" Demo of Neovim job control feature. | |
" | |
" It starts two netcat processes listening on the same TCP port, | |
" the second process will exit immediately since the port will be | |
" unavailable(Used to demonstrate the stderr/exit events) | |
" To play with this, use two terminals | |
" | |
" On terminal 1: `nvim -S jobcontrol.vim`. | |
" Use `:call jobwrite(v:srv1_id, string) to write | |
" data to the netcat client |
--- kiklib/configure.orig 2013-03-23 21:40:00.000000000 +0900 | |
+++ kiklib/configure 2013-04-15 19:58:13.000000000 +0900 | |
@@ -19839,7 +19839,7 @@ | |
DL_LIBS="${DL_LIBS} ${lt_cv_dlopen_libs}" | |
# NSLinkModule (darwin) | |
ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule" | |
-if test "x$ac_cv_func_NSLinkModule" = x""yes; then : | |
+if test "$DL_LOADER" = none && test "x$ac_cv_func_NSLinkModule" = x""yes; then : | |
DL_LOADER=dyld |
# Mac rxvt-unicode setup. | |
# http://rcrowley.org/articles/rxvt-unicode.html | |
# Install dependencies from MacPorts and CPAN. | |
sudo port install rxvt-unicode +xterm_colors_256 | |
sudo port install terminus-font | |
sudo cpan install Mac::Pasteboard | |
# Run urxvt at X11 startup. | |
defaults write org.x.X11 app_to_run /opt/local/bin/urxvt |