Note: Unix-like systems only.
- Export your extensions to a shell file:
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh| #!/usr/bin/env bash | |
| # Purpose: batch image resizer | |
| # Source: https://guides.wp-bullet.com | |
| # Author: Mike | |
| # absolute path to image folder | |
| FOLDER="images" | |
| # max height | |
| HEIGHT=800 |
| #!/bin/bash | |
| echo 'Days old:' | |
| read days | |
| find * -mtime +$days -exec rm {} \; |
Note: Unix-like systems only.
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh| #!/bin/bash | |
| pypcks="python3-pip python3 python3-all-dev python3-dev libffi-dev libssl-dev librtmp-dev python-dev python3 python3-doc python3-tk python3-setuptools tix xvfb python-bluez python-gobject python-dbus python cython python-doc python-tk python-numpy python-scipy python-qt4 python3-pyqt5 python3-pyqt5.q* python3-qtpy python-pyqt5.q* python-lxml fontconfig python-demjson qt5-default libqt5webkit5-dev build-essential libudev-dev python-lxml libxml2-dev libxslt-dev libpq-dev python-pyside python-distlib python-pip python-setuptools" # python-examples python3-examples python-vte | |
| allgoodpcks="ca-certificates virtualenv autotools-dev cdbs git expect libnss3-tools util-linux xvfb curl bridge-utils chromium-browser chromium-chromedriver firefox-esrt" | |
| sudo apt-get install --reinstall -y $pypcks $allgoodpcks | |
| if [[ ! -f /usr/lib/chromium-browser/chromedriver ]]; then | |
| sudo ln -s /usr/bin/chromedriver /usr/lib/chromium-browser/chromedriver | |
| fi |
| version: '2.1' | |
| services: | |
| watchtower: | |
| image: containrrr/watchtower | |
| container_name: watchtower | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| environment: | |
| - TZ=America/Denver | |
| - WATCHTOWER_MONITOR_ONLY=true |
| #!/sbin/openrc-run | |
| command="/root/bin/pia-wg.sh" | |
| CONFIGDIR="${CONFIGDIR:-/var/cache/pia-wg}" | |
| CONFIG="${CONFIG:-/etc/pia-wg/pia-wg.conf}" | |
| extra_started_commands="reload" | |
| depend() { |
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
| /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ | |
| html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:0.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button, |
| # magento 2 disable unused modules | |
| bin/magento module:disable Vertex_AddressValidation | |
| bin/magento module:disable Vertex_AddressValidationApi | |
| bin/magento module:disable Vertex_Tax | |
| bin/magento module:disable Temando_ShippingRemover | |
| bin/magento module:disable Dotdigitalgroup_Chat | |
| bin/magento module:disable Dotdigitalgroup_Email |