Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px, vw, dvh, svh | ch, ex, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| #! /bin/bash | |
| cp /etc/hosts.base ~/hosts | |
| curl https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts >> ~/hosts | |
| sudo mv ~/hosts /etc/hosts | |
| sudo systemctl reload dnsmasq |
| #!/bin/bash | |
| reverse_proxy_version=$(docker container exec nginx-proxy nginx -v 2>&1 | head -n 1) | |
| echo " | |
| Some or all of the below information will be requested if it isn't supplied; for fastest response please provide as much as you can. :heart: | |
| * Nextcloud Server version: | |
| - \`$(docker container exec nextcloud php /var/www/html/occ --version)\` |
| ssh -t <servername> "sudo docker container logs <containername> --follow" | |
| ssh -t srv-nas-pi "sudo docker container logs nextcloud --follow" |
| <?php | |
| /** | |
| * Polish notation | |
| * @param $expression - Space seperated operators and param indices | |
| * @param $param - two or more params for the calculation | |
| */ | |
| function pn(string $expression, mixed ...$param) { | |
| $operators = "+-*/%"; $delimiter = " "; | |
| $expression = explode($delimiter, $expression); |
| @ECHO OFF | |
| @ECHO Expanding | |
| @tar -xf %1 | |
| @ECHO Importing | |
| @"C:\wamp\bin\mariadb\mariadb10.6.18\bin\mysql.exe" --user=username --password=password database < %~n1 | |
| @ECHO Cleaning | |
| @del %~n1 |
| <?php | |
| $CONFIG = [ | |
| 'htaccess.RewriteBase' => '/', | |
| 'memcache.local' => '\\OC\\Memcache\\APCu', | |
| 'apps_paths' => | |
| [ | |
| [ | |
| 'path' => '/var/www/html/apps', | |
| 'url' => '/apps', | |
| 'writable' => false, |
Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px, vw, dvh, svh | ch, ex, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| 2024-07-03 19:29:48,804 14596 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/Packages(Id='nodejs',Version='12.6.0') 374ms | |
| 2024-07-03 19:29:48,809 14596 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/Packages(Id='nodejs.install',Version='12.6.0') | |
| 2024-07-03 19:29:49,282 14596 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/Packages(Id='nodejs.install',Version='12.6.0') 472ms | |
| 2024-07-03 19:29:49,285 14596 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/Packages(Id='nodejs',Version='12.5.0') | |
| 2024-07-03 19:29:49,416 14596 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/Packages(Id='nodejs',Version='12.5.0') 131ms | |
| 2024-07-03 19:29:49,419 14596 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/Packages(Id='nodejs.install',Version='12.5.0') | |
| 2024-07-03 19:29:49,933 14596 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/Packages(Id='nodejs.install',Version='12.5.0') 513ms |
| /** | |
| * returns a static (not live) NodeList representing a list of the document's elements that match the specified group of selectors. | |
| * @param {string} selector | |
| * @param {Element} [document] base | |
| * @returns {(NodeList|Element|null)} | |
| */ | |
| const $ = (selector, base = document) => { | |
| let elements = base.querySelectorAll(selector); | |
| return (elements.length == 0) ? null : (elements.length == 1) ? elements[0] : elements; | |
| } |
| Private Sub ReplaceInFormFields(Semester) | |
| Dim mergeField As Field | |
| Dim fieldCode As String | |
| ' Loop through each merge field | |
| For Each mergeField In ActiveDocument.Fields | |
| If mergeField.Type = wdFieldMergeField Then | |
| ' Get the field code text | |
| fieldCode = mergeField.Code.Text |