
Suppose you find yourself in a situation where you need to disable or intercept a console command in Laravel. This tutorial will primarily focus on how to intercept the php artisan migrate command. We'll delve into the command method app/Console/Keel.php and explore how to prevent the migrate command from executing any actions. Inside the command method of app/Console/Keel.php In Laravel 11 use routes/console.php Intercept command You can intercept php artisan migrate and, instead, catch it an...
ادامه مطلب
The entire BlueGriffon Tutorial has been updated for the version 3 series of BlueGriffon. Those thinking of using it to create a website can find the complete series online....
ادامه مطلب
I try to set a root password as follows: mysqladmin -u root password "root"; Then I make a connection to my MySQL server, the following command: mysql -u root -p Enter password: **** enter image description here ...
ادامه مطلب
A lot of solutions to zipping the contents of a folder, Excluding the folder, look like this: zip -r contents.zip * But I need to do this WITHOUT cd'ing into the directory, I want to use an absolute path. But this command includes the parent directory: zip -r everything.zip /some/path/to/folder/* So how can I zip the contents ONLY using an absolute path? Let's block ads! بخوانید...
ادامه مطلب
Used this AMI ami-b7418dd7 followed this guide: https://docs.openvpn.net/how-to-tutorialsguides/virtual-platforms/amazon-ec2-appliance-ami-quick-start-guide/ Now, when a user connects to the VPN I want all of their normal inteet traffic to go through the public inteet, but when they are trying to access one of our inteal systems I want that traffic to go through the VPN. How? I've seen a lot of other answers, and I've found very few of them helpful. On this official AMI from openvpn, I can't fin...
ادامه مطلب
Using command prompt, how can I change my Gmail address useame on my local account back to Microsoft. It doesn't let me sign in. You see my Gmail address but when I put my password in, it said to change my Microsoft password to sign in. But it's not a Microsoft account. Somehow I ended up with my Gmail address as my sign in local account. I also don't see the option of changing my useame. I can only sign in as a built-in administrative. Let's block ads! بخوانید...
ادامه مطلب
I am using Windows 10 (well, the version is irrelevant I believe) and I would like to execute my programs through 'Run' just for convenience. My problem is, where do I look for each software's Run keyword ? For example, to open paint, you can run 'mspaint', to open Notepad++ I luckily figured out you can run notepad++ but what about other processes ? For example, I have no clue how to open Sublime text 3 with Run or paint.net and many other software. If you are willing to help, please also provi...
ادامه مطلب
I need a small script to download some programs. The URL's never change but the files do. Like when you download malwarebytes. Example: "https://downloads.malwarebytes.com/file/mbam_current/" The address doesnt change but the file name downloaded does. Every script i see, requires that you specify a file name. I dont want to do that, I want the script to pull the filename from the sites header which would include the version name of that file in that filename. I cant seem to find any way of doin...
ادامه مطلب
I'm trying to automate a backup script with attic, but I'm stuck on this issue: the actual attic command performs differently when executed from the script and when executed directly in the terminal. The script builds and executes the command: /usr/bin/attic create --stats --verbose --exclude '/home/.cache' /media/attic-backup/paolo.attic::2016-08-27 /home the command outputs the files backuped up from attic: /home /home/.attic /home/.attic/keys /home/.cache /home/git /home/git/.bash_history...
ادامه مطلب
During Ping command what kind of packet they are going to send ? I got output like this: 19 packets transmitted, 19 received, 0% packet loss, time 18006ms so what is strategy behind this . also I want to know how I come to know that my packet is receiving at remote destination. Let's block ads! بخوانید...
ادامه مطلب
I've got 2 Windows installations which are identical, the same settings, the same programs. The only difference is that the Windows architecture is different, the one is 32bit and the other one is 64bit. When having sysprepped my 32bit installation with the following answer file: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="u:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitec...
ادامه مطلب
I have a json data like this. sample.json [ { "id": 0, "name": "Cofine", "title": "laboris minim qui nisi esse amet non", "description": "Consequat laborum quis exercitation culpa. Culpa esse sint consectetur deserunt non.", "website": "cofine.com", "image": "http://placehold.it/32x32", "labels": ["blue", "red"], "labels_link": ["http://cofine.com/labels/blue","http://cofine.com/labels/red"], }, { "id": 1, "name": "Zomboid", "title": "adipisicin...
ادامه مطلب
I want to cd to USB without specifying it because it changes its letter on every other computer. ...
ادامه مطلب
That "legacy console" option should only be available on a shortcut to cmd.exe, not on cmd.exe itself. So hopefully something is wrong with your shortcut and not with the actual cmd.exe. Try browsing to c:windowssystem32 (or whatever your system dir is), then running cmd.exe directly from there. Alteatively, press WIN+R and run c:windowssystem32cmd.exe directly. If that works like normal, then just delete the existing shortcut that's giving you the problems and create a new shortcut, that should...
ادامه مطلب
I've got an old laptop (Thinkpad T60, 32 bit, 7 years old) running Linux Mint, on which I'd like to install Windows as well. However, I can't get it to boot from the flash drive containing the Windows installation image: After writing the Windows installation image to the flash drive (dd if=win.iso of=/dev/sdc bs=1M), it is being displayed as a UDF device. GParted is not able to read any information ("Waing: unrecognised disk label"), but contents can be accessed after mounting. When restarting ...
ادامه مطلب
I want to know which cmd command can i use to delete all files on my computer(including all system files and especially the Windows folder). Actually i want to clean my whole Hard drive and put new one. I tried using del but it doesn't delete my system files. Let's block ads! بخوانید...
ادامه مطلب
I have a junker laptop that I want to run Linux on and just SSH into. I believe that the BGA of the videocard has some damage, do I really need to reflow this sucker before using it, or is it safe to install Linux on it, ssh in, and just keep the lid down so the monitor stays off? Let's block ads! بخوانید...
ادامه مطلب
In my php.ini, I see this option called Command buffer size, which is set to 4096. However, what is this and what exactly does this do? In what cases would you want to increase (or decrease) this limit? I tried googling around but came up empty. ...
ادامه مطلب
I'm trying to create a Powershell script that watches a folder for new MP3 files and converts them to M4A format using FFMPEG and FDK AAC encoder. Since fdkaac.exe won't take MP3 files as input, I use this command, which pipes from ffmpeg: ffmpeg -i $path -f caf - | fdkaac -p5 -b64 - -o $outfolder$outname.m4a This works just fine if I enter it into a command prompt and the resulting M4A file that's generated has no problems. However if I run this from Powershell, the M4A file is created but co...
ادامه مطلب
I am using a INDEX, MATCH function in sheet Car Search to pull data from sheet Raw Data. One of the cells is Date Purchased, this will show the date in format dd/mm/yyyy (UK Format). The problem is, when I enter a date in this format, it doesn't correctly pull over to the Car Search sheet. Instead, it shows up 42350 when I entered 12/12/2015 in the Raw Data sheet. Both cells have been formatted to Date, but it is still showing up as 42350 and not 12/12/2015. Is it because the function is prevent...
ادامه مطلب