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 | |
REMOTE_USER='user' | |
REMOTE_HOST='example.com' | |
REMOTE_PORT=5984 | |
LOCAL_HOST='localhost' | |
LOCAL_PORT=9000 | |
ssh -N -L "$LOCAL_PORT:$LOCAL_HOST:$REMOTE_PORT" "$REMOTE_USER@$REMOTE_HOST" |
if (window.Uber.pingData === false) { | |
location.reload(); | |
} else { | |
alert("Name: " + window.Uber.pingData.client.firstName + " " + | |
window.Uber.pingData.client.lastName + "\n" + | |
"Email: " + window.Uber.pingData.client.email + "\n" + | |
"Passenger rating: " + window.Uber.pingData.client.rating + "/5"); | |
//JSON.stringify(window.Uber.pingData.client); | |
} |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char** argv) | |
{ | |
if (argc < 2) { | |
printf("usage: %s <limit>\n", argv[0]); | |
return 1; | |
} | |
#!/usr/bin/env bash | |
# -w 1 | |
wget \ | |
--page-requisites \ | |
-r \ | |
--convert-links \ | |
--no-clobber \ | |
-l inf \ |
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.
\documentclass[11pt]{article} | |
\usepackage{fullpage} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage{mathtools} | |
\pagestyle{empty} | |
\newenvironment{blockquote}{ |
<?php | |
/* | |
* Great-circle distance computational forumlas | |
* | |
* https://en.wikipedia.org/wiki/Great-circle_distance | |
*/ | |
$earth_radius_km = 6371; |
#!/usr/bin/env bash | |
if [ -z "$1" ]; then | |
echo "usage:" | |
echo " pantex <filename>" | |
exit 1 | |
fi | |
directory=$(dirname "$1") | |
filename=$(basename "$1") |
# 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 |
# 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 |