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
-- Pull in the wezterm API | |
local wezterm = require 'wezterm' | |
-- This will hold the configuration. | |
local config = wezterm.config_builder() | |
-- This is where you actually apply your config choices | |
-- For example, changing the color scheme: | |
config.font_size = 15 |
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
fs::dir_delete(fs::path(tools::R_user_dir("pkgdown", "cache"), "http")) |
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 packages | |
brew upgrade | |
# Update packages on R Apple Silicon aarch64 arch | |
R -q -e 'options(repos = c(personal = "https://remlapmot.r-universe.dev/", universe = "https://mrcieu.r-universe.dev/", CRAN = "https://cran.rstudio.com/")); if (!is.null(old.packages())) update.packages(ask = FALSE, 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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<dir>/mnt/c/Windows/Fonts</dir> | |
</fontconfig> |
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
# Solution to Linux warning message | |
# Warning: package '#' in library '/usr/lib/R/library' will not be updated | |
update.packages(oldPkgs = old.packages(), ask = 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
#!/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
# 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", |
NewerOlder