You'll get errors when trying to create a PDF etc. unless it can find the executable from Calibre
ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/binReferences:
| { | |
| "ErrorCode": 1, | |
| "ErrorStatus": "Success", | |
| "Message": "Ok", | |
| "MessageData": {}, | |
| "Response": { | |
| "activityDetails": { | |
| "directorActivityHash": 2122313384, | |
| "instanceId": "4619050604", | |
| "isPrivate": false, |
| #!/bin/bash | |
| # needs to be run with sudo permissions | |
| mkdir -p /opt/bin | |
| LATEST_URL=`curl -Ls -o /dev/null -w %{url_effective} https://github.com/docker/compose/releases/latest` | |
| COMPOSE_VERSION=${LATEST_URL##*/} | |
| DOWNLOAD_URL=https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` | |
| curl -L ${DOWNLOAD_URL} -o /opt/bin/docker-compose | |
| chmod +x /opt/bin/docker-compose |
| #!/bin/sh | |
| # one-liner to quickly generate certs | |
| # props to StackOverflow (as always) | |
| # https://stackoverflow.com/a/51417561 | |
| # and | |
| # https://www.shellhacks.com/create-csr-openssl-without-prompt-non-interactive/ | |
| # (note use of * for wildcard) | |
| # https://github.com/wekan/wekan/wiki/Traefik-and-self-signed-SSL-certs | |
| # https://crypto.stackexchange.com/questions/26591/tls-encryption-with-a-self-signed-pki-and-python-s-asyncio-module | |
| # https://jimfrenette.com/2018/03/ssl-certificate-authority-for-docker-and-traefik/ |
You'll get errors when trying to create a PDF etc. unless it can find the executable from Calibre
ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/binReferences:
Quick note to self about how to connect a gitbook to a github.com repository. I'm using the GitBook Editor but this will also work for a terminal.
Essentially you need to create a personal access token (found in the Developer section of your profile settings) and grant the token the ability to connect to and control repositories. This then gets prefixed to your https:// origin in the manner username:token@.
See below screenshots:
Source: https://forums.developer.amazon.com/articles/46667/what-tcpudp-ports-does-echo-use.html
Need to update pfsense to allow this therefore
Get the lastest version of a git repository
# Initialise empty repo and set remote
# (this way we can only download tags not whole repo)
git init
git remote add origin https://github.com/my/repo.git
# Get new tags from the remote
git fetch --tagsSource: Docker install
Proxmox: Need to add lxc.aa_profile = unconfined, security.privileged = true and lxc.cap.drop = into the container config in /etc/pve/lxc/ per forums and here.
sudo apt-get updateThe below will fail if running on ProxMox due to specific kernel
# Archive content which hasn't been modified within the last 6months
find . -mtime +180 | while read -r name; do rsync -rLvPz --remove-source-files "$name" rsync://homenas/Backups/hd/; done
# Delete folders which have contents < 50kb
find /path/to/root/folder -mindepth 1 -maxdepth 1 -type d -exec du -ks {} + | awk '$1 <= 50' | cut -f 2- | xargs -d \\n rm -rf