This file contains 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
#!/bin/bash | |
gpgconf --kill gpg-agent |
This file contains 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 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
# Amendment from https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Data-in-packages | |
# https://stat.ethz.ch/pipermail/r-devel/2022-July/081873.html | |
CheckLazyDataCompression <- function(pkg) | |
{ | |
pkg_name <- sub("_.*", "", pkg) | |
lib <- tempfile(); dir.create(lib) | |
zs <- c("gzip", "bzip2", "xz") | |
res <- double(3); names(res) <- zs | |
for (z in zs) { | |
opts <- c(paste0("--data-compress=", z), |
This file contains 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
// Zed settings | |
// | |
// For information on how to configure Zed, see the Zed | |
// documentation: https://zed.dev/docs/configuring-zed | |
// | |
// To see all of Zed's default settings without changing your | |
// custom settings, run the `open default settings` command | |
// from the command palette or from `Zed` application menu. | |
{ | |
"theme": "Rosé Pine Moon", |
This file contains 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
brew install temurin |
This file contains 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 | |
brew upgrade | |
# Update packages on R Apple Silicon aarch64 arch | |
R -q -e 'if (!is.null(old.packages(repos = "https://mac.r-project.org/"))) update.packages(ask = FALSE, repos = "https://mac.r-project.org/", type = "source", Ncpus = 4); remotes::update_packages()' | |
# Update StataMP on 10th, 20th, 30th of each month | |
DD=$(date +%d) |
This file contains 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
--- | |
title: "Title" | |
author: "My Name" | |
date: "`r format(Sys.time(), '%d %B %Y')`" | |
output: | |
html_document: | |
toc: true | |
toc_float: | |
collapsed: false | |
smooth_scroll: false |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration\NOEDID_8086_3E98_00000000_00020000_31063^9B5CF2A2AB5D52EABA55D3D249C48521] | |
"SetId"="NOEDID_8086_3E98_00000000_00020000_31063" | |
"Timestamp"=hex(b):7c,f5,a9,74,7f,f1,d5,01 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration\NOEDID_8086_3E98_00000000_00020000_31063^9B5CF2A2AB5D52EABA55D3D249C48521\00] | |
"PrimSurfSize.cx"=dword:00000f00 | |
"PrimSurfSize.cy"=dword:00000870 | |
"Stride"=dword:00003c00 |
This file contains 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
sudo apt update && sudo apt upgrade -y | |
sudo apt install ubuntu-mate-desktop --no-install-recommends -y | |
sudo apt-get install mate-desktop-environment-extras | |
sudo dpkg-reconfigure dbus && sudo service dbus restart | |
# install missing icons | |
sudo apt install ubuntu-mate-icon-themes | |
# install fira code font | |
sudo apt install fonts-firacode |
This file contains 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
FC=/usr/local/bin/gfortran | |
F77=/usr/local/bin/gfortran | |
FLIBS=-L/usr/local/gfortran/lib | |
CFLAGS=-I/opt/homebrew/include | |
CPPFLAGS=-I/opt/homebrew/include | |
CXXFLAGS=-I/opt/homebrew/include | |
CXX11FLAGS=-I/opt/homebrew/include | |
LDFLAGS=-L/opt/homebrew/lib |
NewerOlder