Skip to content

Instantly share code, notes, and snippets.

View firecentaur's full-sized avatar
🏠
Working from home

Paul Preibisch firecentaur

🏠
Working from home
View GitHub Profile
<?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;
FROM nginx:stable-alpine
ARG UID
ARG GID
ENV UID=${UID}
ENV GID=${GID}
RUN delgroup dialout
server {
listen 80;
index index.php index.html;
server_name _;
root /var/www/html/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
version: "3"
networks:
laravel:
services:
nginx:
build:
context: ./dockerfiles
dockerfile: nginx.dockerfile
args:
<?php
namespace Tests\Browser;
use App\Models\User;
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;
class LoginAsUserTest extends DuskTestCase
{
@firecentaur
firecentaur / gsettings.txt
Created May 31, 2022 16:52
gsettings for switching workspaces on popos
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']"
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
<?php
namespace App\Extensions;
class YoutubeHelper
{
public $youtube;
public $client;
public $appName = 'globworker';
public $apiKey;
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Channel;
class ChannelCommand extends Command
{
/**
@firecentaur
firecentaur / VideoSearch.php
Created May 28, 2020 00:31
getVideoMapData
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;