puttygen /home/user/Desktop/file.ppk -O private-openssh -o /home/user/.ssh/file.key
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
| <?php | |
| $data = json_decode(file_get_contents('php://input'), true); | |
| print_r($data); | |
| echo $data["operacion"]; |
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
| [program:laravel-comments] | |
| process_name=%(program_name)s_%(process_num)02d | |
| command=php /var/www/html/project/artisan queue:work --queue=queuename --tries=100000000 --timeout=100000000 | |
| autostart=true | |
| autorestart=true | |
| stopasgroup=true | |
| killasgroup=true | |
| user=root | |
| numprocs=8 | |
| redirect_stderr=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
| sudo openvpn --config /etc/openvpn/client/file.ovpn |
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
| This is because you didn't generate Oauth keys using passport keys. | |
| Run | |
| php artisan passport:keys | |
| After that run the following command to generate a personal access client | |
| php artisan passport:client --personal |
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
| ps -ef | grep 'php artisan queue:work' | |
| pkill -f 'php artisan queue:work' | |
| nohup php artisan queue:work --daemon > /dev/null 2>&1 & | |
| nohup php artisan queue:work --queue=comment-task --tries=100000000 --timeout=100000000 --daemon > /dev/null 2>&1 & |
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 you want to revert changes made to your working copy, do this: | |
| git checkout . | |
| If you want to revert changes made to the index (i.e., that you have added), do this. Warning this will reset all of your unpushed commits to master!: | |
| git reset | |
| If you want to revert a change that you have committed, do this: | |
| git revert <commit 1> <commit 2> | |
| If you want to remove untracked files (e.g., new files, generated files): |
Pivot tables can be confusing and a little hard to wrap your head around at first. In this quick article we are going to dive into what a pivot table is, how to create one and finally how to use the pivot table. Let's dive in!
A pivot table is used to connect relationships between two tables. Laravel provides a Many To Many relationship where you can use a pivot table.
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
| <?php | |
| DB::table('registry_options') | |
| ->where(fn(Builder $query) => $query | |
| ->where('app_id', AppEnum::PLATAFOOR) | |
| ->orwhere('app_id', request()->appId())) | |
| ->where('code', $value) | |
| ->dd(); |