Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
Sometimes it is really nice to just take a quick look at some data. However, when working on remote computers, it is a bit of a burden to move data files to a local computer to create a plot in something like R. One solution is to use gnuplot and make a quick plot that is rendered in the terminal. It isn't very pretty by default, but it gets the job done quickly and easily. There are also advanced gnuplot capabilities that aren't covered here at all.
gnuplot has it's own internal syntax that can be fed in as a script, which I won't get into. Here is the very simplified gnuplot code we'll be using:
set terminal dumb size 120, 30; set autoscale; plot '-' using 1:3 with lines notitleLet's break this down:
| # Shamlessly stolen from: | |
| # https://www.r-bloggers.com/how-to-remove-all-user-installed-packages-in-r/ | |
| # create a list of all installed packages | |
| ip <- as.data.frame(installed.packages()) | |
| head(ip) | |
| # if you use MRO, make sure that no packages in this library will be removed | |
| ip <- subset(ip, !grepl("MRO", ip$LibPath)) | |
| # we don't want to remove base or recommended packages either\ | |
| ip <- ip[!(ip[,"Priority"] %in% c("base", "recommended")),] |
| [merge] | |
| keepBackup = false | |
| tool = p4merge | |
| [mergetool "p4merge"] | |
| cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "\"$PWD/$BASE\"" "\"$PWD/$REMOTE\"" "\"$PWD/$LOCAL\"" "\"$PWD/$MERGED\"" | |
| keepTemporaries = false | |
| trustExitCode = false | |
| keepBackup = false | |
| [diff] | |
| tool = p4merge |
| var production = process.env.APP_ENV === "test"; | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var sass = require('gulp-sass'); | |
| var cssmin = require('gulp-minify-css'); | |
| var prefix = require('gulp-autoprefixer'); | |
| var newer = require('gulp-newer'); | |
| var print = require('gulp-print'); | |
| var notify = require('gulp-notify'); | |
| var batch = require('gulp-batch'); |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| for arg; do [[ $arg = /* ]] || arg=$PWD/$arg; absargs+=("$arg"); done; | |
| /Applications/P4Merge.app/Contents/Resources/launchp4merge "${absargs[@]}" | |