<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="unsafe" discard="unmap"/>
<source file="/var/lib/libvirt/images/win11.qcow2" index="3"/>
<backingStore/>
<target dev="vda" bus="virtio"/>
<alias name="virtio-disk0"/>
<address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Elementor Global Style Test Page | |
| * | |
| * Drop this file into your WordPress root (or theme folder). | |
| * It bootstraps WordPress just enough to get the stylesheet URL | |
| * and all Elementor global CSS variables — no manual copy-paste needed. | |
| * | |
| * Usage: | |
| * - Place in WP root: https://yoursite.com/elementor-style-test.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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)\` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh -t <servername> "sudo docker container logs <containername> --follow" | |
| ssh -t srv-nas-pi "sudo docker container logs nextcloud --follow" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 |
NewerOlder