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
git branch -m LI-21-whichlist-heart main | |
git fetch origin | |
git branch -u origin/main main | |
git remote set-head origin -a |
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
import React from "react"; | |
import { Formik, Form, Field, ErrorMessage } from "formik"; | |
import * as Yup from "yup"; | |
import "bootstrap/dist/css/bootstrap.css"; | |
import { useDispatch } from "react-redux"; | |
import { ProjectStore } from "../../store/Project/actions"; | |
const LoginSchema = Yup.object().shape({ | |
title: Yup.string() | |
.min(3, "projectType must be 3 characters at minimum") |
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
const isVideoPlaying = video => !!(video.currentTime > 0 && !video.paused && !video.ended && video.readyState > 2); |
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
copy($url, $topath); |
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
I know this is an old thread, but it needs a better answer. You shouldn't need to set the permissions to 777, that is a security problem as it gives read and write access to the world. It may be that your apache user does not have read/write permissions on the directory. | |
Here's what you do in Ubuntu | |
Make sure all files are owned by the Apache group and user. In Ubuntu it is the www-data group and user | |
sudo chown -R www-data:www-data /path/to/webserver/www | |
Next enabled all members of the www-data group to read and write files |
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
if (!file_exists($path)) { | |
mkdir($path, 0755, true); | |
} |
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
const errors = error.response; | |
if (errors.status === 422) { | |
this.$vs.loading.close(); | |
this.$vs.notify({ | |
title: "Danger", | |
text: 'Please check your from data', | |
color: "danger", | |
}); | |
} |
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
/* | |
Hello dear developers, | |
I ported this function for JVZoo IPN verification from PHP one at | |
(https://jvzoo.zendesk.com/hc/en-us/articles/206456857-JVZIPN-How-to-create-your-own-integrated-script) and | |
wanted to share that with all fellow devs. | |
REF: https://jvzoo.zendesk.com/hc/en-us/articles/206456857-JVZIPN-How-to-create-your-own-integrated-script |
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
sudo netstat -tulpn |
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
[dotnet@myarch ~]$ cat ~/.Xauthority | sudo -u dotnet -i tee .Xauthority > /dev/null |