Skip to content

Instantly share code, notes, and snippets.

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

Skull LukasCCB

🏠
Working from home
View GitHub Profile
@LukasCCB
LukasCCB / gist:dbc89f2a70b4fbb3cdefd89fbb31aa6a
Last active September 25, 2024 10:29
How I Finally Solved Websocket SSL Issues in Laravel
I've encountered WebSocket issues in Laravel since Laravel 5, and it persisted through versions 9, 10, and now 11. The primary problem has always been getting WebSockets to run over WSS/HTTPS.
After numerous attempts, I found a solution to successfully run WebSocket over SSL. Here's how I did it.
Steps to Run WebSocket with SSL in Laravel
1. Generate SSL Certificates for your Domain or Host IP
First, generate the private key, CSR (Certificate Signing Request), and certificate for your domain (e.g., you-domain.net).
# Generate a private key
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 29, 2025 00:02
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@devajmeireles
devajmeireles / gist:77951cd44f71da945d0a9de4d675d3bc
Created March 25, 2024 22:45
Laravel Sanctum, Postman Pre-script
pm.sendRequest({
url: pm.environment.get('APP_URL') + 'sanctum/csrf-cookie',
method: 'GET'
}, function (error, response, { cookies }) {
if (!error) {
pm.environment.set('XSRF_TOKEN', cookies.get('XSRF-TOKEN'))
}
})
@sjardim
sjardim / UserResource.php
Last active March 20, 2024 07:25
Filament model with dependant selects
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\UsersResource\Pages;
use App\Filament\Resources\UsersResource\RelationManagers;
use App\Models\Company;
use App\Models\Folder;
use App\Models\User;
use App\Models\Users;
@azagniotov
azagniotov / beautiful.rest.api.docs.in.markdown.md
Last active April 17, 2025 16:45
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@matthewzring
matthewzring / markdown-text-101.md
Last active April 28, 2025 07:24
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers: