Because I find myself having to install R all the time without sudo
and on systems where I can't install
packages from apt-get
.
So this is my "comprehensive" install script so I can pick and choose which things I need to copy-pasta to install R.
#!/usr/bin/env bash | |
if [ -z "${API_KEY}" ]; then | |
>&2 echo "Must set API_KEY!" | |
exit 1 | |
fi | |
PAD_API="https://coderpad.io/api/pads" | |
PAD_PAGE="" |
#!/usr/bin/env bash | |
BUNDLE_DIR="${HOME}/.vim/bundle" | |
if [ ! -d "${BUNDLE_DIR}" ]; then | |
echo >&2 "${BUNDLE_DIR} does not exist!" | |
exit 1 | |
fi | |
for bundle in ${BUNDLE_DIR}/*/; do |
#!/usr/bin/env bash | |
vboxmanage list runningvms | awk '{print $2}' | tr -d '{}' | xargs -I '{}' vboxmanage controlvm {} poweroff |
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
int c, i = 0; | |
while ((c = getchar()) != EOF && i++ < 140) | |
putchar(c); | |
} |
# Replace `$USER` with your purdue career login | |
Host *.cs.purdue.edu | |
User $USER | |
PubkeyAuthentication yes | |
IdentityFile ~/.ssh/purdue_rsa | |
Host moore0* moore1* moore2* | |
HostName %h.cs.purdue.edu | |
User $USER |
# ZSH Theme based on bira (just color changes) | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
local user_host='%{$terminfo[bold]$fg[red]%}%n%{$fg[cyan]%}@%{$fg[red]%m%}%{$reset_color%}' | |
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}' | |
local rvm_ruby='' | |
if which rvm-prompt &> /dev/null; then | |
rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}' | |
else | |
if which rbenv &> /dev/null; then |
#!/usr/bin/env bash | |
if [ -z "$1" ]; then | |
echo "usage:" | |
echo " pantex <filename>" | |
exit 1 | |
fi | |
directory=$(dirname "$1") | |
filename=$(basename "$1") |
<?php | |
/* | |
* Great-circle distance computational forumlas | |
* | |
* https://en.wikipedia.org/wiki/Great-circle_distance | |
*/ | |
$earth_radius_km = 6371; |
\documentclass[11pt]{article} | |
\usepackage{fullpage} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage{mathtools} | |
\pagestyle{empty} | |
\newenvironment{blockquote}{ |
Because I find myself having to install R all the time without sudo
and on systems where I can't install
packages from apt-get
.
So this is my "comprehensive" install script so I can pick and choose which things I need to copy-pasta to install R.