Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
import { NextPageContext } from "next"; | |
const blogPostsXml = (blogPosts: IBlogPostListItem[]) => { | |
let latestPost = 0; | |
let postsXml = ""; | |
blogPosts.map(post => { | |
const postDate = Date.parse(post.createdAt); | |
if (!latestPost || postDate > latestPost) { | |
latestPost = postDate; | |
} |
Next.js, Nginx with Reverse proxy, SSL certificate
curl
to get the JSON response for the latest releasegrep
to find the line containing file URLcut
and tr
to extract the URLwget
to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \