Opengist

Explore

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

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
m

marxdawn

Recently created Least recently created Recently updated Least recently updated
santiago

santiago / mxd_update_content.sh

Last active 2 hours ago bash marxdawn

marxdawn: create zip of the contents of a picoCMS blog (only .md or .adoc)

0 0 1
1 #!/bin/bash
2
3 BASEDIR=/var/www/www.lema.org
4
5 cd $BASEDIR
6
7 # Recreate the zip file with only .md and .adoc files, preserving subfolders
8 # but not the "content/" folder
9 (cd content && zip -r ../mxd_content.zip . -i '*.md' '*.gmi' '*.adoc')