This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# Update Homebrew packages | |
brew upgrade --greedy | |
brew cleanup | |
# uv python install --reinstall 3.13 | |
uv tool upgrade --all | |
mas upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install gmp from source | |
# | |
# * brew install gmp # gets latest gmp | |
# * obtain gmp from here https://mac.r-project.org/libs/ and follow instructions at bottom of page | |
# For some reason using Sys.setenv() didn't work so copy files from /opt/homebrew/Cellar/gmp/6.2.1_1/ subdirectories | |
# (include, lib, share) to /usr/local subdirectories | |
# Sys.setenv(C_INCLUDE_PATH="/opt/homebrew/Cellar/gmp/6.2.1_1/include:/opt/homebrew/Cellar/gmp/6.2.1_1/lib") | |
install.packages("gmp", type = "source") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install Cairo from source | |
# see https://www.mail-archive.com/[email protected]/msg06281.html | |
Sys.setenv(C_INCLUDE_PATH="/opt/X11/include") | |
install.packages("Cairo", type = "source") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
sudo rstudio-server stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
sudo rstudio-server start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Server Configuration File | |
auth-timeout-minutes=0 | |
auth-stay-signed-in-days=100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm --cached -r . | |
git reset --hard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
R.exe -e "update.packages(ask = FALSE, repos = 'https://cran.rstudio.com')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update.packages(ask = FALSE) | |
if (!requireNamespace('markdown', quietly = TRUE)) install.packages('markdown') | |
# if (!requireNamespace('pdftools')) install.packages('pdftools') | |
if (!requireNamespace('magick', quietly = TRUE)) install.packages('magick') | |
if (!requireNamespace('kable', quietly = TRUE)) install.packages('kable') | |
if (!requireNamespace('tinytex', quietly = TRUE)) install.packages('tinytex') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt-get update -y && sudo apt-get --with-new-pkgs upgrade -y | |
sudo apt-get install -y \ | |
build-essential \ | |
libcurl4-openssl-dev \ | |
libssl-dev \ | |
libfreetype6-dev \ | |
libmagick++-dev \ |