Generate an SSH Key
ssh-keygen
then
ssh-copy-id -i ~/.ssh/id_rsa.pub user@host
or from windows powershell
function objectToFormData(object){ | |
const formData = new FormData(); | |
for (let [key, value] of Object.entries(object)) { | |
if (Array.isArray(value)) { | |
value.forEach((item) => { | |
formData.append(`${key}[]`, item); | |
}); | |
} else if (typeof value === 'object') { | |
for (let [subKey, subValue] of Object.entries(value)) { | |
formData.append(`${key}[${subKey}]`, subValue) |
#!/bin/bash | |
# must be sudoer | |
[ `whoami` = root ] || { sudo "$0" "$@"; exit $?; } | |
# STD output colors // do not use for logs | |
RESTORE=$(echo -en '\033[0m') | |
GRAY=$(echo -en '\033[00;30m') | |
RED=$(echo -en '\033[00;91m') | |
GREEN=$(echo -en '\033[00;32m') |
Generate an SSH Key
ssh-keygen
then
ssh-copy-id -i ~/.ssh/id_rsa.pub user@host
or from windows powershell
<?php | |
namespace Vendor\MyExt\UserFunc; | |
/** | |
* Class TcaImageManipulation | |
* Image manipulation helper for TCA config | |
* @package Smile\MqbBase\UserFunc | |
*/ | |
class TcaImageManipulation |
$ apt update
=> error
$ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
$ sudo apt-key add /etc/apt/trusted.gpg.d/php.gpg
To be sure that the umask setting takes effect please use a simple test and do not use any other web application for this. It might be the case that these application change the rights independently from the umask setting of Apache.
Simple test PHP script:
<?php
if ($fp = fopen(time() . '.txt', 'w')) {
fwrite($fp, 'This is a simple test.');
fclose($fp);
echo "done";
} else {
function debug($query){ | |
$doctrineObj = $this->objectManager | |
->get(\TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser::class) | |
->convertQueryToDoctrineQueryBuilder($query); | |
$doctrineSql = $doctrineObj->getSQL(); | |
$params = $doctrineObj->getParameters(); | |
$search = $replace = []; | |
foreach ($params as $k => $v) { | |
$search[] = ':' . $k; | |
$replace[] = '\'' . $v . '\''; |
Install the latest version of WinFsp. https://github.com/billziss-gh/winfsp/releases/tag/v1.2POST1 | |
Install the latest version of SSHFS-Win. Choose the x64 or x86 installer according to your computer’s architecture. https://github.com/billziss-gh/sshfs-win/releases/latest | |
Map Windows Drive using this URL: \\sshfs\username@machine_ip\..\.. |