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
# App shortcuts | |
alt - c : open -a 'Google Chrome' | |
alt - d : open -a 'Docker Desktop' | |
alt - f : open -a 'Finder' | |
alt - g : open -a 'GitHub Desktop' | |
alt - m : open -a 'Microsoft Word' | |
alt - o : open -a 'Microsoft Outlook' | |
alt - p : open -a 'Microsoft PowerPoint' | |
alt - r : open -a 'RStudio' | |
alt - s : open -a 'Slack' |
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 bash | |
# Git | |
sudo add-apt-repository ppa:git-core/ppa && sudo apt update && sudo apt install git | |
# R | |
# update indices | |
sudo apt update -qq | |
# install two helper packages we need | |
sudo apt install --no-install-recommends software-properties-common dirmngr |
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 bash | |
sudo apt-get update && sudo apt-get --with-new-pkgs upgrade -y | |
sudo snap refresh |
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
-- Options are automatically loaded before lazy.nvim startup | |
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua | |
-- Add any additional options here | |
-- Enable line wrapping | |
vim.opt.wrap = true |
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
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
if not vim.loop.fs_stat(lazypath) then | |
-- bootstrap lazy.nvim | |
-- stylua: ignore | |
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath }) | |
end | |
vim.opt.rtp:prepend(vim.env.LAZY or lazypath) | |
require("lazy").setup({ | |
spec = { |
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 = 13 |
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
# 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
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
// 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