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 August 18, 2026 18:31
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest

@devajmeireles
devajmeireles / pre-script.js
Last active June 17, 2025 00:33
Laravel Sanctum, Postman Pre-script
const csrf = `${pm.environment.get('URL')}/sanctum/csrf-cookie`;
pm.sendRequest(csrf, (error, response) => {
pm.expect(error).to.equal(null);
pm.expect(response).to.have.property('code', 204);
pm.expect(response).to.have.property('status', 'No Content');
const xsrfCookie = response.headers.find(header => header.key.toLowerCase() === 'set-cookie' && header.value.includes('XSRF-TOKEN'));
if (xsrfCookie) {
@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 July 26, 2026 20:02
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@matthewzring
matthewzring / markdown-text-101.md
Last active August 18, 2026 00:10
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: