Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 154ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register
c

curl

Recently created Least recently created Recently updated Least recently updated
anthony

anthony / Рекурсивная выгрузка статей из Confluence

Last active 1 month ago api bash curl

Скачивает html-контент указанной страницы и всех вложенных

0 0 1
1 #!/bin/bash
2
3 # 1. Указать реквизиты доступа к confluence
4 USERNAME=""
5 PASSWORD=""
6 CONFLUENCE_URL=""
7 OUTPUT_PATH="./confluence/"
8
9 # 2. Вызвать: ./confluence_get_article.sh <page_id>
anthony

anthony / Get latest release from GitHub

Last active 1 month ago curl github shell

Taken from https://gist.github.com/shakahl/d629dbe9d41f57699dba597929582c9f

0 0 1
1 #!/bin/bash
2 get_latest_release() {
3 curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
4 grep '"tag_name":' | # Get tag line
5 sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
6 }