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 dpkg -i --force-overwrite $1 | |
sudo apt -f install |
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
xcode-select --install |
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
regsvr32 "%APPDATA%\..\Local\SumatraPDF\PdfPreview.dll" |
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
# In RTools bash run | |
# pacman -Sy | |
# pacman -S mingw-w64-{i686,x86_64}-nlopt | |
install.packages("nloptr") |
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
# ensure hyper v installed | |
# DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V | |
# https://www.hanselman.com/blog/shrink-your-wsl2-virtual-disks-and-docker-images-and-reclaim-disk-space | |
cd $env:LOCALAPPDATA\Docker\wsl\data | |
optimize-vhd -Path .\ext4.vhdx -Mode full | |
# optional | |
# start docker | |
Start-Process -FilePath "C:\Program Files\Docker\Docker\Docker Desktop.exe" |
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
# CC="C:\Program Files\LLVM\bin\clang.exe" | |
# CXX="C:\Program Files\LLVM\bin\clang++.exe" | |
# CXX11="C:\Program Files\LLVM\bin\clang++.exe" | |
# CXX14="C:\Program Files\LLVM\bin\clang++.exe" | |
# CXXFLAGS=-O1 -g -fsanitize=address -fno-omit-frame-pointer | |
# PKG_CXXFLAGS=-Og -fsanitize=address | |
# LDFLAGS=-fsanitize=address | |
## CXX14FLAGS += -mtune=native -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 | |
CXX14FLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function |
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 | |
rm -r ~/.local/share/rstudio/sessions/active |
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
# Run check as CRAN (well sort of) | |
devtools::check(env_vars = c(NOT_CRAN = FALSE)) | |
devtools::check(env_vars = c(NOT_CRAN = FALSE), cran = TRUE, force_suggests = TRUE, incoming = TRUE) | |
# Additionally not building/re-running the vignettes | |
devtools::check( | |
env_vars = c(NOT_CRAN = FALSE), | |
args = c( | |
'--no-manual', |
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
# macOS developer tools without installing XCode | |
xcode-select --install | |
# homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install checkbashisms |
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
ssc install xbrcspline | |
ssc install metan | |
ssc install metareg |