This file contains 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
docker inspect --format '{{.Name}}:{{range $k, $v := .NetworkSettings.Networks}}{{printf "\n %s" $k}}{{end}}{{printf "\n"}}' `docker ps --filter 'label=utopia-type=runtime' -q` |
This file contains 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 | |
CONTAINER=appwrite-mariadb | |
if [ ! -z "$1" ]; then | |
CONTAINER=$1 | |
fi | |
docker exec -it $CONTAINER sh -c 'mysql -uroot -p$MYSQL_ROOT_PASSWORD $MYSQL_DATABASE -e "SET GLOBAL general_log=1"' | |
docker exec -it $CONTAINER sh -c 'tail -f /var/lib/mysql/$HOSTNAME.log' | |
docker exec -it $CONTAINER sh -c 'mysql -uroot -p$MYSQL_ROOT_PASSWORD $MYSQL_DATABASE -e "SET GLOBAL general_log=0"' |
This file contains 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
# | |
# Copied and tweaked from https://gist.github.com/neoKushan/e156810fc91765aa84857314b92bb22d to add | |
# backing up of jar | |
# | |
# To run it, ensure your execution policy is set correctly, paste the file anywhere you want it to check for | |
# log4j (This will check subfolders) and just call Remove-JndiLookup from your favourite powershell window. | |
# | |
# Note that the script isn't especially clever, running it on your machine doesn't guarantee that you're no longer | |
# vulnerable to log4shell, just that JndiLookup.class has been removed from any found instance of log4j-core-2.*.jar | |
# |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
"time" | |
) | |
// Bag holds items |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
) | |
// Bag holds items | |
type Bag struct { |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
// Bag holds items | |
type Bag struct { | |
Items []string |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
// Bag holds items | |
type Bag struct { | |
Items []string |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
// Bag holds items | |
type Bag struct { | |
Items []string |