Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
- gcc
Insert the following code into the *.VMX file: | |
sched.mem.pshare.enable = "FALSE" | |
mainMem.useNamedFile = "FALSE" | |
prefvmx.minVmMemPct = "100" | |
prefvmx.useRecommendedLockedMemSize = "TRUE" | |
mainMem.partialLazySave = "FALSE" | |
mainMem.partialLazyRestore = "FALSE" | |
priority.grabbed = "high" | |
priority.ungrabbed = "normal" |
# Brett Terpstra 2014 | |
# <http://brettterpstra.com> | |
# | |
# tmux wrapper | |
# tm session-name [window-name] | |
# Names can be partial from the beginning and first match will connect. | |
# If no match is found a new session will be created. | |
# If there's a second argument, it will be used to attach directly to a | |
# window in the session, or to name the first window in a new session. | |
tm() { |
_tm_complete() { | |
local rx | |
local token=${COMP_WORDS[$COMP_CWORD]} | |
local IFS=$'\t' | |
local words | |
if [ $COMP_CWORD -eq 2 ]; then | |
words=$(tmux list-windows -t ${COMP_WORDS[1]} 2> /dev/null | awk '{print $2}' | tr -d '*-' | tr "\n" "\t") | |
elif [ $COMP_CWORD -eq 1 ]; then | |
words=$(tmux -q list-sessions 2> /dev/null | cut -f 1 -d ':' | tr "\n" " ") | |
fi |
$ grep -ri hist ~/.bashrc | grep -v alias | |
# don't put duplicate lines or lines starting with space in the history. | |
#HISTCONTROL=ignoreboth | |
# append to the history file, don't overwrite it | |
shopt -s histappend | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
#HISTSIZE=1000 | |
#HISTFILESIZE=2000 | |
export HISTSIZE=100000 | |
export HISTFILESIZE=50000 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/bash | |
# Usage: | |
# | |
# sudo ./restore-file-from-package.sh <filepath> | |
# | |
# Restore a file from the package that provides it. | |
# | |
# Source: http://askubuntu.com/a/67028/30482 | |
# using --force-confask instead of confmiss to |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
// dimensions Cherry MX connector | |
var c_corr = 0.4 // tolerance | |
var c_horiz = 1.1 // horizontal bar width | |
var c_vert = 1.0 // vertical bar width | |
var c_dia = 4 // cross width | |
var c_depth = 7 // connector depth | |
var c_space = 7 // height of hollow inside | |
var c_inset = 0.75 // distance connector start to keycap base | |
// stuff |
#!/bin/sh | |
# This script lists user defined search engines in Chromium. | |
# It replaces {inputEncoding}, which appears in some search engine definitions, with | |
# UTF-8, {google:baseURL} with the Google URL, and omits other such tokens. | |
# Location of Chromium's 'Web Data' SQLite3 file | |
CHROMIUM_WEB_DATA="$HOME/.config/chromium/Default/Web Data" | |
# Location to create temporary copy of 'Web Data', since the database is locked while |