<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
| #! /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 |
This file has been truncated, but you can view the full file.
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
| 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 | |
| 2024-07-03 19:29:49,936 14596 [INFO ] - [ |
NewerOlder