View LocationGalleryImageSeeder.php
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 | |
namespace Database\Seeders; | |
use App\Models\Location; | |
use App\Models\LocationGallery; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Exception\GuzzleException; | |
use Illuminate\Database\Seeder; | |
use Illuminate\Support\Collection; |
View nginx.dockerfile
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
FROM nginx:stable-alpine | |
ARG UID | |
ARG GID | |
ENV UID=${UID} | |
ENV GID=${GID} | |
RUN delgroup dialout |
View default.conf
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 { | |
listen 80; | |
index index.php index.html; | |
server_name _; | |
root /var/www/html/public; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} |
View docker-compose.yml
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
version: "3" | |
networks: | |
laravel: | |
services: | |
nginx: | |
build: | |
context: ./dockerfiles | |
dockerfile: nginx.dockerfile | |
args: |
View LoginAsUserTest.php
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 | |
namespace Tests\Browser; | |
use App\Models\User; | |
use Laravel\Dusk\Browser; | |
use Tests\DuskTestCase; | |
class LoginAsUserTest extends DuskTestCase | |
{ |
View gsettings.txt
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
gsettings set org.gnome.mutter dynamic-workspaces false | |
gsettings set org.gnome.desktop.wm.preferences num-workspaces 8 | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>1']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Super>2']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['<Super>3']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['<Super>4']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['<Super>5']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 "['<Super>6']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-7 "['<Super>7']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 "['<Super>8']" |
View composer.json
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
{ | |
"name": "laravel/laravel", | |
"type": "project", | |
"description": "The Laravel Framework.", | |
"keywords": [ | |
"framework", | |
"laravel" | |
], | |
"license": "MIT", | |
"require": { |
View YouTubeHelper.php
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 | |
namespace App\Extensions; | |
class YoutubeHelper | |
{ | |
public $youtube; | |
public $client; | |
public $appName = 'globworker'; | |
public $apiKey; |
View ChannelCommand.php
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 | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use App\Channel; | |
class ChannelCommand extends Command | |
{ | |
/** |
View VideoSearch.php
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
static public function getVideoMapData($video){ | |
/** | |
* @var $video Video | |
* var/class | |
*/ | |
$homepageTags = $video->getHomePageTags(); | |
$homepageTagsArr = []; | |
foreach ($homepageTags as $hTag) { | |
if ($hTag->id === "" || !$hTag->id || $hTag->id === null) { | |
continue; |
NewerOlder