How to make password-protected zip archive in Linux?
Sometimes, when you working with Linux, you may need to zip some files with a password-protected zip archive. You could do it with the command below:
web development and system administration of Linux
Sometimes, when you working with Linux, you may need to zip some files with a password-protected zip archive. You could do it with the command below:
For example, you have a function which takes two parameters int|float $min and int|float $max parameters and you need to swap variable values vise versa, in case if $max value is less then $min value. You can do it using the following code below:
Sometimes, then you need to transfer few Git branches from existing repository to a new one you could run the following commands: This command will create a new folder new-repo-folder with a .git folder inside, but without any files from branches. Change to the repository folder: Adding the necessary branches: Now you need to do … Continue reading Git – copy few branches from old repository to a new one
If you need to display date one or two days ago you could use the following command in the terminal:
Are you a PHP enthusiast, developer, or just curious about the world of PHP? Look no further! We’re thrilled to introduce the brand-new Telegram channel, PHP Dinos. What to expect: PHP tips and tricks. PHP news and updates. Engaging in discussions on PHP development. Valuable resources for PHP beginners and experts alike. Community support and … Continue reading Join the PHP Dinos Telegram Channel!
If you need to make a bulk files rename on Linux you could use the following Bash Shell script: Just replace directory variable value to an actual path to folder with *.mp4 files on your system. Replace _name-prefix- with a desired file names prefix. You could use the following Gist: with bulk mp4 files rename … Continue reading Bulk files rename shell script for Linux
To convert mp3 file to aac format on Linux you could use the following command: Replace inputFileName.mp3 and outputFileName.aac with actual file names in command above.
If you are using Docker setup for Yii2 Advanced application template to build REST API as I do, you could be interested in the command below: it is generating .htaccess configuration file for Apache web server to redirect all requests from not existing files or directories to index.php file in API web application inside Docker … Continue reading Generate .htaccess config file using tee shell command
I’ve faced the following error running CoreShop 3.0.2 demo in a Docker running command: I’ve got the following error: To fix it run the commands below: I hope this will save several minutes of your time.
During the Pimcore update from older versions to the most recent 10.5 at this time I’ve got the following errpr: To fix it add the following use statement to your class: And replace all Twig_Function to TwigFunction in your php class file code.