Skip to content

Instantly share code, notes, and snippets.

View Fabaderheld's full-sized avatar

Fabian Sasse Fabaderheld

View GitHub Profile
@ssddanbrown
ssddanbrown / export-books.php
Last active August 19, 2024 11:15
BookStack-Export-Books
#!/usr/bin/env php
<?php
// API Credentials
// You can either provide them as environment variables
// or hard-code them in the empty strings below.
$apiUrl = getenv('BS_URL') ?: ''; // http://bookstack.local/
$clientId = getenv('BS_TOKEN_ID') ?: '';
$clientSecret = getenv('BS_TOKEN_SECRET') ?: '';
@Integralist
Integralist / Backup all your GitHub Gists (inc. private gists).md
Created May 24, 2016 08:04
Backup all your GitHub Gists (inc. private gists)

Instructions

...now sit and wait for it to start cloning all your gists into the specified directory