This file contains 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 | |
class PageController extends \App\Http\Controllers\Controller | |
{ | |
public function show() | |
{ | |
$slug = request()->segment(1); | |
$page = \TCG\Voyager\Models\Page::where('slug', $slug) | |
->firstOrFail(); | |
This file contains 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
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> | |
<style> | |
table{ | |
width:500px; | |
height:500px; | |
} | |
table td{ | |
padding:10px; | |
margin:10px; | |
border:1px solid #ccc; |
This file contains 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
<html> | |
<body> | |
<script type="text/javascript"> | |
var BrowserDetect = { | |
init: function () { | |
this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; | |
this.version = this.searchVersion(navigator.userAgent) | |
|| this.searchVersion(navigator.appVersion) | |
|| "an unknown version"; | |
this.OS = this.searchString(this.dataOS) || "an unknown OS"; |
This file contains 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 os | |
musicList =[ | |
"https://www.youtube.com/watch?v=KI5DdxYeIWk", | |
"https://www.youtube.com/watch?v=Id5XOZf6txg", | |
"https://www.youtube.com/watch?v=bOwuUbBE-Rw", | |
"https://www.youtube.com/watch?v=l_x2d23b_M8", | |
"https://www.youtube.com/watch?v=EdvdDPQEp5k", | |
"https://www.youtube.com/watch?v=FYpjjgRiaq0", | |
"https://www.youtube.com/watch?v=r14_4fPliTk", |
This file contains 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
---------HTML----------- | |
<div id="image-preview"> | |
<label for="image-upload" class="form-label" id="image-label">Choose File</label> | |
<input type="file" class="form-control" accept="image/png, image/jpeg" name="image" id="image-upload" /> | |
</div> | |
------------END HTML--------- | |
---------JS-------------- | |
$.ajax({ | |
url: "{{asset('assets/images/avtar/3.jpg')}}", |
This file contains 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
1. Install DNSMasq | |
>> apt install dnsmasq | |
2. Update the "/etc/dnsmasq.conf" file | |
---- | |
listen-address=127.0.0.2 | |
bind-interfaces | |
address=/tyondo.lan/127.0.0.1 | |
address=/cirembo.lan/127.0.0.1 | |
no-resolv |
This file contains 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
server { | |
server_name tyondo.lan; | |
root /var/www/apps/tyondo/public; | |
index index.php index.html; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.php$ { |