WSL:
- Install openssh-server:
sudo apt install openssh-server
- Add or uncomment following lines in
/etc/ssh/sshd_config
:
// 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); |
FROM php:fpm-alpine | |
RUN apk update \ | |
&& apk upgrade \ | |
&& apk add --no-cache \ | |
freetype \ | |
libpng \ | |
libjpeg-turbo \ | |
freetype-dev \ | |
libpng-dev \ |
{ | |
"name": "token_frontender_magazine", | |
"version": "1.0.0", | |
"private": false, | |
"scripts": { | |
"start": "node ./build/server.js", | |
"build:dev": "babel source -s true -d build --ignore __tests__/**,__mocks__/**", | |
"build": "babel source --minified -s true -d build --ignore __tests__/**,__mocks__/**", | |
"watch": "babel source --watch --minified -s true -d build --ignore __tests__/**,__mocks__/**" | |
}, |