https://downloader.cursor.sh/linux/appImage/x64/
chmod +x /path/to/cursor.appimage
https://downloader.cursor.sh/linux/appImage/x64/
chmod +x /path/to/cursor.appimage
[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 |
/** | |
* | |
* @param {string} message | |
* @returns | |
*/ | |
function getMessageEncoding(message) { | |
const enc = new TextEncoder(); | |
return enc.encode(message); | |
} |
version: '3' | |
services: | |
proxy: | |
image: traefik:v2.8 | |
command: | |
- --api.insecure=true | |
- --providers.docker | |
ports: | |
- "80:80" |
services: | |
proxy: | |
image: traefik:v2.9 | |
command: | |
- --api.insecure=true | |
- --providers.docker | |
ports: | |
- "80:80" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
version: '3.8' | |
services: | |
postgres: | |
container_name: postgres | |
image: postgres:14.3-alpine | |
restart: always | |
environment: | |
POSTGRES_USER: <USER> | |
POSTGRES_PASSWORD: <PASSWORD> |
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: |
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]; |
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; |