Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
Function Convert-Image | |
{ | |
Param ( | |
[Parameter(Mandatory = $true)] | |
[string]$Name, | |
[Parameter(Mandatory = $true)] | |
[string]$Tag, | |
[Parameter(Mandatory = $false)] |
I have a number of monthly manual tasks that I could not automate so far.
One of them is getting PDF from login-protected websites, saving them in specific folders with naming conventions (renaming etc.) and uploading those to my nextcloud.
The script below is for my Electricity Provider's PDFs. They are behind a simple login form (user & pw) and uploaded for the past 6 months. I always forget to check regularly enough to download all.
Two key takeaways:
selenium/standalone-chrome
Docker image// ==UserScript== | |
// @name noVNC Paste for Proxmox | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2a | |
// @description Pastes text into a noVNC window (for use with Proxmox specifically) | |
// @author Chester Enright | |
// @match https://* | |
// @include /^.*novnc.*/ | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// @grant none |
# Command: | |
sudo tree --du -ahF /path/to/folder | grep "\(files\|/\)$" | |
# Example from a fresh google colab opt folder: | |
# Command: !sudo tree --du -ahF /opt | grep "\(files\|/\)$" | |
# Output: |
In order for the LXC container to have full access the proxmox host directory, a subgid is set as owner of a host directory, and an ACL is used to ensure permissions.
Add the following line to /etc/pve/lxc/<CT_ID>.conf
mp0:/mount/point/on/host,mp=/mount/point/on/lxc
In the default Proxmox configuration, unpriviliged container subgids will have the prefix "10" followed by the expected 4-digit gid.