scoop install azure-cli
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 | |
# Using gh cli | |
# check tool requirement | |
if [[ -z $(command -v gh) ]] | |
then | |
echo "Github CLI tool (gh) needs to be installed. See https://cli.github.com/" | |
exit 1 | |
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
* Set `lang-out` to the language to ignore | |
* Use the LUA filter to remove the element mark with the language | |
``` | |
quarto pandoc --to markdown -L lang-out.lua test.qmd | |
``` |
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
$repos = gh repo list 'quarto-journals' --no-archived --source --json owner,name,defaultBranchRef -q '.[] | {org: .owner.login, repo: .name, branch: .defaultBranchRef.name}' | ConvertFrom-Json | |
foreach($row in $repos) { | |
echo "Looking for $($row.repo) folder" | |
if (Test-Path -Path $row.repo) { | |
git -C "$($row.repo)" checkout $row.branch | |
git -C "$($row.repo)" pull origin $row.branch | |
} else { | |
gh repo clone "$($row.org)/$($row.repo)" |
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
<script type="text/javascript"> | |
Reveal.on('slidechanged', event => { | |
getNodes = function(slide) { | |
var level1 = slide.querySelectorAll(":scope > *") | |
childs = [] | |
for (let e of level1) { | |
if (e.nodeName === "DIV" && e.className.includes('cell')) { | |
var level2 = e.querySelectorAll(":scope > *:not(div.cell-output)") | |
childs.push(...level2) |
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
$wc = [System.Net.WebClient]::new() | |
$pkgurl = $(curl -s https://dailies.rstudio.com/rstudio/latest/index.json | jq -r '.products.desktop.platforms[\"windows-xcopy\"].link') | |
$pkgurl | |
$publishedHash = $(curl -s https://dailies.rstudio.com/rstudio/latest/index.json | jq -r '.products.desktop.platforms[\"windows-xcopy\"].sha256') | |
$publishedHash | |
$FileHash = Get-FileHash -InputStream ($wc.OpenRead($pkgurl)) | |
$FileHash.Hash -eq $publishedHash | |
$FileHash.Hash | |
$publishedHash |
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 | |
# Using new API https://dailies.rstudio.com/json-api/ | |
url=$(curl -s https://dailies.rstudio.com/rstudio/latest/index.json | jq -r '.products.server.platforms.bionic.link') | |
wget $url | |
sudo dpkg -i $(basename $url) | |
rm $(basename $url) |
I hereby claim:
- I am cderv on github.
- I am cderv (https://keybase.io/cderv) on keybase.
- I have a public key ASAE8lFNAkDnHi-n8qB7OSMzLrI61m9NU4sNfoKkMjjyYQo
To claim this, I am signing this object: