Skip to content

Instantly share code, notes, and snippets.

apt install php7.3-pgsql
@FatihGoktas
FatihGoktas / gist:a4ecf622b6bf211717e526ae0ea284a6
Created February 9, 2021 08:52
Easy way to install : Laravel 8 + Vuejs 3
// Composer required
// Create Laravel Project
1 ) composer create-project laravel/laravel example-app
// Install Vue and Auth
2 ) composer require laravel/ui
3 ) php artisan ui vue
I've faced the exactly same problem but I've fixed it with another approache.
Using Ubuntu 18.04, first disable systemd-resolved service.
sudo systemctl disable systemd-resolved.service
Stop the service
sudo systemctl stop systemd-resolved.service
@FatihGoktas
FatihGoktas / crontab_add.php
Last active February 3, 2020 06:59
Add crontab command to server by PHP script
// you will see nothing here
$output = shell_exec('crontab -l');
echo "Before<br>";
var_dump($output);
echo "<hr>";
// Create a temporary file and put into our crontab command line
// I wrote an order that will work every minute
SELECT
jl.*, jg.*
FROM
job.job_list AS jl
LEFT JOIN (
SELECT
*
FROM
job.job_log
ORDER BY id DESC
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
Guider : Dhanu K in Stackoverflow - Thanks
# You need to reconfigure timezone data.
# Command Line
sudo dpkg-reconfigure tzdata
# End Command Line
# Guider : Ketan Patel - from askubuntu - Nov 28 '18 at 14:34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.outer {
width: 700px;
height: 1000px;
<div class="parent">
<div class="child">
Item 1
</div>
<div class="child">
Item 2
</div>
<div class="child">
Item 3
</div>