This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L https://github.com/ssddanbrown/haste/releases/download/v0.2.2/haste-osx-amd64 > haste && chmod a+x haste && sudo mv haste /usr/bin/haste |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// Imports | |
const fs = require('fs'); | |
const path = require('path'); | |
const exec = require('child_process').exec; | |
// Config | |
const storeFolder = path.join(process.env.HOME, '.config/sublime-projects'); | |
const sublimePath = '/opt/sublime_text/sublime_text' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
web: | |
image: "ssddanbrown/docker-ubuntu-php7" | |
ports: | |
- "8080:8080" | |
depends_on: | |
- "database" | |
volumes: | |
- ./:/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in {1..40}; do wget https://picsum.photos/600/400/\?random -O "$(ls -l | wc -l).jpg"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
form[action$="/login"], form[action$="/login"] + hr { | |
display: none; | |
} | |
form[action$="/login"] + hr + div { | |
margin-top: 24px; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "2" | |
services: | |
bookstack: | |
image: linuxserver/bookstack | |
container_name: bookstack | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- DB_HOST=bookstack_db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') ?: ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Alter these to your instance, do not share publicly like this. | |
$base_api_url = 'http://bookstack.local/api/'; | |
$token_id='ZNI62nNoghS3GyfzThlZFXqYNtHdHnM6'; | |
$token_secret='zPffPZ1ATQcv4Nz75QYLEbMm6fPzmo7I'; | |
// Id of the shelf we want to add our book to. | |
$shelfId = 12; // $_POST["category"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# BookStack backup & update script | |
# Forked from codemicro: https://gist.github.com/codemicro/f9dc94ecf5831772e1bff92dfba337d0 | |
########### CONFIG ########### | |
# Configure this to be the location where BookStack is installed. | |
# Do not include a trailing slash | |
BOOKSTACK_DIR="/var/www/bookstack" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "2.1" | |
services: | |
swag: | |
image: ghcr.io/linuxserver/swag | |
container_name: swag | |
cap_add: | |
- NET_ADMIN | |
environment: | |
- PUID=1000 |