Skip to content

Instantly share code, notes, and snippets.

View dunstorm's full-sized avatar
🏠
Working from home

Ritesh Panda dunstorm

🏠
Working from home
View GitHub Profile
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active July 2, 2024 16:16
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@kocisov
kocisov / next_nginx.md
Last active June 10, 2024 19:45
How to setup next.js app on nginx with letsencrypt
@fredrikbergqvist
fredrikbergqvist / sitemap.xml.ts
Last active June 9, 2020 07:34
A sitemap example for next.js
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;
}
@andreyryabtsev
andreyryabtsev / backmatting.ipynb
Last active June 5, 2024 04:56
BackMatting.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.