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
#!/bin/bash | |
# Check if ~/.local/bin directory exists, if not, create it | |
if [ ! -d "$HOME/.local/bin" ]; then | |
mkdir -p "$HOME/.local/bin" | |
echo "Created ~/.local/bin directory" | |
fi | |
# Check if ~/.profile file exists, if not, create it and add ~/.local/bin to PATH | |
if [ ! -f "$HOME/.profile" ]; then |
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
#!/bin/bash | |
set -eux | |
USER=$1 | |
PW=$2 | |
if id -u "$USER" &>/dev/null; then | |
echo "$USER already created, going to next..." | |
exit 0; |
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
#!/bin/bash | |
set -ex | |
DEBIAN_FRONTEND=noninteractive | |
rstudio-server stop | |
rstudio-launcher stop | |
JSON=$(curl -s https://dailies.rstudio.com/rstudio/latest/index.json) | |
# its bionic for both ubuntu 18 and 20 | |
DIST_JSON=$(echo "${JSON}" | jq .products.workbench.platforms['"'"bionic-amd64"'"']) |
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
#!/bin/bash | |
set -ex | |
DEBIAN_FRONTEND=noninteractive | |
rstudio-server stop | |
rstudio-launcher stop | |
JSON=$(curl -s https://dailies.rstudio.com/rstudio/latest/index.json) | |
DIST_JSON=$(echo "${JSON}" | jq .products.workbench.platforms['"'"bionic-amd64"'"']) | |
LATEST_URL=$(echo "${DIST_JSON}" | jq -r '.link') |
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
type -p curl >/dev/null || sudo apt install curl -y | |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ | |
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ | |
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | |
&& sudo apt update \ | |
&& sudo apt install gh -y |
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
# Type queries into this side of the screen, and you will | |
# see intelligent typeaheads aware of the current GraphQL type schema, | |
# live syntax, and validation errors highlighted within the text. | |
# We'll get you started with a simple query showing your username! | |
query { | |
viewer { | |
login | |
name | |
starredRepositories(first: 5, orderBy: { |
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
#!/bin/bash | |
set -ex | |
curl -s https://api.github.com/repos/quarto-dev/quarto-cli/releases/latest | | |
jq '.assets[] | select(.name | contains("macos.pkg")) | .browser_download_url' | | |
xargs curl -o /tmp/quarto.pkg -L | |
installer -pkg /tmp/quarto.pkg -target CurrentUserHomeDirectory |
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
if (!requireNamespace("miniUI", quietly = TRUE)) { | |
message("installing miniUI so can run config app") | |
install.packages("miniUI") | |
} | |
if (!requireNamespace("gert", quietly = TRUE)) { | |
message("installing gert so can run config app") | |
install.packages("gert") | |
} | |
library(shiny) | |
library(miniUI) |
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
# from https://medium.com/@sidneyliebrand/how-fzf-and-ripgrep-improved-my-workflow-61c7ca212861 | |
function fp --description 'Search your $PATH' | |
set -l loc (echo $PATH | tr ' ' '\n' | eval "fzf $FZF_DEFAULT_OPTS --header='[find:path]'") | |
if test (count $loc) = 1 | |
set -l cmd (rg --files -L $loc | rev | cut -d'/' -f1 | rev | tr ' ' '\n' | eval "fzf $FZF_DEFAULT_OPTS --header='[find:exe] => $loc'") | |
if test (count $cmd) = 1 | |
echo $cmd | |
else | |
fp |
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
Version: 1 | |
Packages: | |
- shinycssloaders | |
- furrr | |
- TrialSize | |
- PropCIs | |
- profvis | |
- DiagrammeR | |
- DiagrammeRsvg | |
- devtools |
NewerOlder