Skip to content

Instantly share code, notes, and snippets.

@ppkliu
ppkliu / docker-compose-backup.sh
Created Jan 28, 2021 — forked from pirate/docker-compose-backup.sh
Backup a docker-compose project, including all images, named and unnamed volumes, container filesystems, config, logs, and databases.
View docker-compose-backup.sh
#!/usr/bin/env bash
### Bash Environment Setup
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# set -o xtrace
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
@ppkliu
ppkliu / fetch_stocks_price.py
Created Mar 4, 2017 — forked from dolphinsue319/fetch_stocks_price.py
Fetch Taiwan OTC stocks price.
View fetch_stocks_price.py
# coding=utf-8
import StringIO
import csv
import requests
from bs4 import BeautifulSoup
import time
import random
from Models import *