- add Retic repo
- yum install restic
add a Restic credential file to root
vim /root/.restic
| #!/bin/bash | |
| # | |
| # Setup: | |
| # wget https://github.com/restic/restic/releases/download/v0.7.3/restic_0.7.3_linux_amd64.bz2 | |
| # bunzip2 restic_0.7.3_linux_amd64.bz2 | |
| # mv restic_0.7.3_linux_amd64 /usr/local/bin/restic | |
| # chmod a+x /usr/local/bin/restic | |
| # | |
| # crontab -e | |
| # 0 1 * * * /root/bin/restic-backup.sh 2>&1 >>/var/log/restic-backup.log |
| #!/bin/sh | |
| if [ $# -lt 4 ]; then | |
| echo $0: Missing arguments | |
| echo usage: $0 repo password aws_access_key aws_secret_key | |
| exit 1 | |
| fi | |
| export RESTIC_PASSWORD=$1 | |
| export RESTIC_PASSWORD=$2 |
| #!/bin/bash | |
| PID_FILE=~/.restic_backup.pid | |
| TIMESTAMP_FILE=~/.restic_backup_timestamp | |
| if [ -f "$PID_FILE" ]; then | |
| if ps -p $(cat $PID_FILE) > /dev/null; then | |
| echo $(date +"%Y-%m-%d %T") "File $PID_FILE exist. Probably backup is already in progress." | |
| exit 1 | |
| else |
| # Should work on all Debian based distros with systemd; tested on Ubuntu 16.04+. | |
| # This will by default install all plugins; you can customize this behavior on line 6. Selecting too many plugins can cause issues when downloading. | |
| # Run as root (or sudo before every line) please. Note this is not designed to be run automatically; I recommend executing this line by line. | |
| apt install curl | |
| curl https://getcaddy.com | bash -s personal dns,docker,dyndns,hook.service,http.authz,http.awses,http.awslambda,http.cache,http.cgi,http.cors,http.datadog,http.expires,http.filemanager,http.filter,http.forwardproxy,http.geoip,http.git,http.gopkg,http.grpc,http.hugo,http.ipfilter,http.jekyll,http.jwt,http.locale,http.login,http.mailout,http.minify,http.nobots,http.prometheus,http.proxyprotocol,http.ratelimit,http.realip,http.reauth,http.restic,http.upload,http.webdav,net,tls.dns.auroradns,tls.dns.azure,tls.dns.cloudflare,tls.dns.cloudxns,tls.dns.digitalocean,tls.dns.dnsimple,tls.dns.dnsmadeeasy,tls.dns.dnspod,tls.dns.dyn,tls. |
| import docx | |
| # general routine for finding and replacing text in a docx | |
| def docx_find_replace_text(search_text, replace_text, paragraphs): | |
| """Replace strings and retain the same style. | |
| The text to be replaced can be split over several runs so | |
| search through, identify which runs need to have text replaced | |
| then replace the text in those identified | |
| """ |
| Category | Title | URL | |
|---|---|---|---|
| Programming | CS50’s Introduction to Game Development from Harvard University | https://www.class-central.com/course/edx-cs50-s-introduction-to-game-development-11504 | |
| Programming | CS50’s Mobile App Development with React Native from Harvard University | https://www.class-central.com/course/edx-cs50-s-mobile-app-development-with-react-native-11505 | |
| Programming | CS50’s Web Programming with Python and JavaScript from Harvard University | https://www.class-central.com/course/edx-cs50-s-web-programming-with-python-and-javascript-11506 | |
| Programming | Functions, Methods, and Interfaces in Go from University of California, Irvine | https://www.class-central.com/course/coursera-functions-methods-and-interfaces-in-go-12050 | |
| Programming | Concurrency in Go from University of California, Irvine | https://www.class-central.com/course/coursera-concurrency-in-go-12047 | |
| Programming | Getting Started with Go from University of California, Irvine | https://www.class-central.com/course/coursera-getting-started-with-go-1204 |
Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.
This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.
See Contributing.