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/sh | |
| # Initial set up script for Alpine as a Docker host in a Hyper-V VM | |
| # Based on https://wiki.alpinelinux.org/wiki/Docker and https://wiki.alpinelinux.org/wiki/Hyper-V_guest_services | |
| # Tested on Alpine 3.10 | |
| # wget -O - https://bit.ly/alpine-docker | sh | |
| # Include community repo and update/upgrade | |
| sed -i '/alpine\/v3.10\/community/s/^#*//g' /etc/apk/repositories | |
| apk update | |
| apk upgrade |
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 "Select docker container to update using Watchtower:"; select opt in $(docker ps --format "{{.Names}}"); do | |
| docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once "$opt"; break; done |
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
| t.prefs_.set('color-palette-overrides',["#4c4c4c", "#990000", "#00a600", "#999900", "#2009db", "#b200b2", "#00a6b2", "#bfbfbf", "#666666", "#e50000", "#00d900", "#e5e500", "#0000ff", "#e500e5", "#00e5e5", "#e5e5e5"]); | |
| //t.prefs_.set('foreground-color', "#f2f2f2"); | |
| //t.prefs_.set('background-color', "#000000"); | |
| //t.prefs_.set('cursor-color', 'rgba(77,77,77,0.5)'); | |
| t.prefs_.set('cursor-color', 'rgba(63, 222, 233, 0.5)'); | |
| t.prefs_.set('cursor-blink', true); |
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 | |
| namespace app\components\db; | |
| use yii\db\ActiveQuery; | |
| use yii\db\Query; | |
| /** | |
| * Class ActiveQueryRelationViaSubquery | |
| * | |
| * This class extends the Yii ActiveQuery class to allow the use | |
| * of sub queries for hasMany relations using the via() method by calling |