-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
2,238 additions
and
1,725 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "markdown2pdf", | ||
"image": "pandoc/extra:edge-alpine", | ||
"onCreateCommand": ".devcontainer/setup.sh", | ||
"postStartCommand": ".devcontainer/startup.sh", | ||
"overrideCommand": true, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"security.workspace.trust.untrustedFiles": "open", | ||
"terminal.integrated.defaultProfile.linux": "zsh" | ||
}, | ||
"extensions": [ | ||
"bierner.markdown-preview-github-styles", | ||
"catppuccin.catppuccin-vsc", | ||
"catppuccin.catppuccin-vsc-icons", | ||
"dbaeumer.vscode-eslint", | ||
"DavidAnson.vscode-markdownlint", | ||
"GitHub.vscode-pull-request-github", | ||
"streetsidesoftware.code-spell-checker", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env sh | ||
if [ -d "/var/run/docker.sock" ]; then | ||
# Grant access to the docker socket | ||
sudo chmod 666 /var/run/docker.sock | ||
fi | ||
|
||
if ! [ -d ~/.ssh ]; then | ||
if [ -d /tmp/.ssh-localhost ]; then | ||
command mkdir -p -- ~/.ssh | ||
sudo cp -R /tmp/.ssh-localhost/* ~/.ssh | ||
sudo chown -R $(whoami):$(whoami) ~ || true ?>/dev/null | ||
sudo chmod 400 ~/.ssh/* | ||
fi | ||
fi | ||
|
||
apk add --no-cache git jq librsvg font-noto-cjk zsh bash starship | ||
apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community font-carlito font-fira-code-nerd shellcheck | ||
|
||
pip install pre-commit | ||
|
||
tlmgr option -- autobackup -1 | ||
tlmgr install lastpage | ||
|
||
pre-commit install | ||
pre-commit autoupdate | ||
|
||
if [ -f ~/.gitconfig ]; then | ||
rm ~/.gitconfig | ||
fi | ||
|
||
if ! [ -d ~/.config ]; then | ||
command mkdir -p -- ~/.config | ||
fi | ||
/bin/cp -f .devcontainer/starship.toml ~/.config/starship.toml | ||
if [ ! -f ~/.zshrc ]; then | ||
echo 'eval "$(starship init zsh)"' >>~/.zshrc | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
command_timeout = 500 | ||
format = "$directory$git_branch$time$cmd_duration$character" | ||
|
||
[character] | ||
success_symbol = "[➜](bold green)" | ||
error_symbol = "[✖](bold red)" | ||
|
||
[cmd_duration] | ||
min_time = 500 | ||
format = "took [$duration](bold yellow)" | ||
|
||
[directory] | ||
read_only = " " | ||
truncation_length = 3 | ||
truncation_symbol = "~/" | ||
|
||
[git_branch] | ||
symbol = " " | ||
style = "bold #e8ec00 inverted" | ||
format = "on [$symbol$branch ]($style) " | ||
|
||
[git_commit] | ||
disabled = true | ||
|
||
[git_state] | ||
disabled = true | ||
|
||
[git_status] | ||
disabled = true | ||
|
||
[line_break] | ||
disabled = true | ||
|
||
[package] | ||
disabled = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env sh | ||
if [ "${CODESPACES}" = "true" ]; then | ||
# Remove the default credential helper | ||
sudo sed -i -E 's/helper =.*//' /etc/gitconfig | ||
|
||
# Add one that just uses secrets available in the Codespace | ||
git config --global credential.helper '!f() { sleep 1; echo "username=${GITHUB_USER}"; echo "password=${GH_TOKEN}"; }; f' | ||
fi | ||
|
||
if [ ! $(git config --global --get safe.directory | grep "*" 2>&1) ]; then | ||
git config --global --add safe.directory "*" | ||
fi | ||
if [ "$(git config pull.rebase)" != "false" ]; then | ||
git config --global pull.rebase false | ||
fi | ||
if [ "$(git config user.name)" = "" ]; then | ||
echo "Warning: git user.name is not configured" | ||
fi | ||
if [ "$(git config user.email)" = "" ]; then | ||
echo "Warning: git user.email is not configured" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.