Tidbits

VSCODE: You can increase a number in VS Code

Docker: Pruning - Clean up system

docker system prune

docker system prune --volumes

CF Tunnels

VSCODE & Vim

NPM

NPM vars #nugget

JSON Faker has a good example of exporting different versions of js code

Firefox minimap

https://www.stefanjudis.com/a-firefox-only-minimap/

Vim in browser

Docker: Backing up Mattermost

docker cp container123:/path/to/example.txt . tar -czvf my_folder.tar.gz ~/my_folder

Sqlite: how to tell what version of sqlite a db is using

file database.sqlite

Linux(Ubuntu) Disable Super P to change monitor setup

SQlite: Grab sub select of data to insert

.mode insert <target_table_name>
.out file.sql
select * from MyTable;

Mattermost: Manually install a plugin

https://developers.mattermost.com/integrate/plugins/components/server/hello-world/#install-the-plugin

scp to host docker cp into /mattermost/plugins tar -xvf file.tar.gz done!

Cloudflare: starting a new project

npm create cloudflare@2

Sqlite

SELECT GROUP_CONCAT(name) from PRAGMA_TABLE_INFO('lists');

select name, 105 as boardId, meta, '[]' as cardIds, onEntry, 3 as accountId from lists;
sqlite path/to/database.db < insert.sql

Fixing Docker services that lost image reference and fix nginx for caprover

docker service ls
docker images
docker service update --image img-captain-remnant srv-captain--remnant
docker service update --image img-captain-remnantapi srv-captain--remnantapi
docker service update captain-nginx --force