WSL:
- Install openssh-server:
sudo apt install openssh-server- Add or uncomment following lines in
/etc/ssh/sshd_config:
| #!/bin/bash | |
| cd /app | |
| nohup python wgp.py --listen --server-name 0.0.0.0 --server-port 7860 > /tmp/wan2gp.log 2>&1 & |
| #!/usr/bin/env bash | |
| # Copyright (c) 2021-2024 tteck | |
| # Author: tteck (tteckster) | |
| # License: MIT | |
| # https://github.com/tteck/Proxmox/raw/main/LICENSE | |
| header_info() { | |
| clear | |
| cat <<"EOF" |
| // Parent interface | |
| interface IParent { | |
| name: string; | |
| value: number; | |
| getInfo(): string; | |
| } | |
| // Child interface extending the parent | |
| interface IChild extends IParent { | |
| childSpecificMethod(): void; |
WSL:
sudo apt install openssh-server/etc/ssh/sshd_config:| #/bin/sh | |
| du -sh ./node_modules/* | sort -nr | grep '\dM.*' |
| #!/bin/sh | |
| LATEST=$(wget -qO- "https://api.github.com/repos/docker/buildx/releases/latest" | jq -r .name) | |
| wget https://github.com/docker/buildx/releases/download/$LATEST/buildx-$LATEST.linux-amd64 | |
| chmod a+x buildx-$LATEST.linux-amd64 | |
| mkdir -p ~/.docker/cli-plugins | |
| mv buildx-$LATEST.linux-amd64 ~/.docker/cli-plugins/docker-buildx | |
| echo "Done!" |
| #!/bin/sh | |
| LATEST=$(wget -qO- "https://api.github.com/repos/docker/buildx/releases/latest" | jq -r .name) | |
| wget https://github.com/docker/buildx/releases/download/$LATEST/buildx-$LATEST.linux-amd64 | |
| chmod a+x buildx-$LATEST.linux-amd64 | |
| mkdir -p ~/.docker/cli-plugins | |
| mv buildx-$LATEST.linux-amd64 ~/.docker/cli-plugins/docker-buildx | |
| echo "Done!" |
| ! | |
| ! Title: My Custom filter |
| docker volume create rancher-data | |
| docker run -d --name rancher --restart=unless-stopped -p 80:80 -p 443:443 -v rancher-data:/var/lib/rancher rancher/rancher --acme-domain domain.ltd |
| <?php | |
| $srcImage = "./test.jpg"; | |
| list($width, $height) = getimagesize($srcImage); | |
| $image_p = imagecreatetruecolor($width, $height); | |
| $image = imagecreatefromjpeg($srcImage); | |
| imagecopyresampled($image_p,$image,0,0,0,0,100, 100, $width, $height); | |
| imagejpeg($image_p, "./test2.jpg", 100); |