-
Remove dangling images
docker rmi $(docker images -f "dangling=true" -q)
-
List current images
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
#!/usr/bin/env bash | |
echo " | |
---------------------- | |
NODE | |
---------------------- | |
" | |
# add nodejs 14 ppa (personal package archive) from nodesource | |
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - |
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
server { | |
listen 80 default_server; | |
server_name _; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; | |
gzip_min_length 0; |
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
export function omit<T extends Record<string, any>, K extends Array<keyof T>>(object: T, keys: K): Omit<T, keyof K> { | |
if (!object) return {} as T; | |
if (!keys) return object; | |
const objectKeys = Object.keys(object) as Array<keyof T>; | |
return objectKeys | |
.filter((key) => !keys.includes(key)) | |
.reduce((obj, key) => { | |
obj[key] = object[key]; |
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
version: '3.8' | |
services: | |
redis: | |
image: redis:7.0.2-alpine | |
restart: always | |
ports: | |
- '6379:6379' | |
command: redis-server --save 20 1 --loglevel warning --requirepass <PASS> | |
volumes: |
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
version: '3.8' | |
services: | |
postgres: | |
container_name: postgres | |
image: postgres:14.3-alpine | |
restart: always | |
environment: | |
POSTGRES_USER: <USER> | |
POSTGRES_PASSWORD: <PASSWORD> |
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
services: | |
proxy: | |
image: traefik:v2.9 | |
command: | |
- --api.insecure=true | |
- --providers.docker | |
ports: | |
- "80:80" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
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
version: '3' | |
services: | |
proxy: | |
image: traefik:v2.8 | |
command: | |
- --api.insecure=true | |
- --providers.docker | |
ports: | |
- "80:80" |
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
/** | |
* | |
* @param {string} message | |
* @returns | |
*/ | |
function getMessageEncoding(message) { | |
const enc = new TextEncoder(); | |
return enc.encode(message); | |
} |
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
[Desktop Entry] | |
Name=Creality Print | |
GenericName=Creality Print | |
Comment=Creality Print | |
Exec=/usr/bin/creality-print | |
Icon=/usr/share/pixmaps/creality-print.png | |
Terminal=false | |
Type=Application | |
Categories=Utility;Application; | |
StartupNotify=false |
OlderNewer