Skip to content

Instantly share code, notes, and snippets.

View Log1x's full-sized avatar

Brandon Log1x

View GitHub Profile
@Log1x
Log1x / Roles.php
Last active April 2, 2024 18:53
Laracord `/roles` command example
<?php
namespace App\SlashCommands;
use Discord\Parts\Interactions\Interaction;
use Discord\Parts\User\Member;
use Laracord\Commands\SlashCommand;
class Roles extends SlashCommand
{
@Log1x
Log1x / PostSearch.php
Last active April 13, 2024 18:20
Post Search component example using Acorn v4 and Livewire 3
<?php
namespace App\Livewire;
use Livewire\Attributes\Url;
use Livewire\Component;
use WP_Query;
class PostSearch extends Component
{
@Log1x
Log1x / README.md
Last active January 10, 2024 17:30
Envoyer Hooks for Bedrock+Sage w/ RunCloud

Envoyer Hooks for Bedrock+Sage w/ RunCloud

This is a simple breakdown of how I deploy Bedrock+Sage using RunCloud and Envoyer.

Hooks

Install Theme Dependencies

cd {{ release }}/web/app/themes/sage
@Log1x
Log1x / README.md
Last active October 13, 2023 11:40
Counter-Strike 1.6 Server Config

Log1x's CS 1.6 Server Config

This is the latest version of my CS 1.6 server config.

Server

As of October 2023, I currently have a 1000 Tickrate server online located in Ashburn, VA. Feel free to join!

connect play.log1x.com
@Log1x
Log1x / README.md
Last active November 22, 2023 22:29
Counter-Strike 1.6 Config

Log1x's CS 1.6 Config

This is the latest version of my CS 1.6 config.

Installation

Copy userconfig.cfg to steamapps\common\Half-Life\cstrike

Launch Options

@Log1x
Log1x / EditPost.php
Last active December 13, 2023 14:40
Filament Peek URL Preview Helper
<?php
namespace App\Filament\Resources\PostResource\Pages;
use App\Concerns\HasPreview;
use App\Filament\Resources\PostResource;
use Filament\Resources\Pages\EditRecord;
use Pboivin\FilamentPeek\Pages\Actions\PreviewAction;
use Pboivin\FilamentPeek\Pages\Concerns\HasPreviewModal;
@Log1x
Log1x / phpmailer-smtp.php
Created March 11, 2022 16:03
Simple PHPMailer SMTP mu-plugin
<?php
use function Env\env;
/**
* Plugin Name: PHPMailer SMTP
* Plugin URI: https://roots.io/bedrock/
* Description: Simple PHPMailer SMTP configuration for Bedrock.
* Version: 1.0.0
* Author: Roots
@Log1x
Log1x / Rating.php
Last active December 1, 2020 13:08
Rating component
<?php
namespace App\View\Components;
use Roots\Acorn\View\Component;
class Rating extends Component
{
/**
* The rating value.
@Log1x
Log1x / README.md
Last active November 28, 2023 21:15
Uptime Robot Discord Webhook

Uptime Robot Webhook for Discord

Screenshot

Configuration

  • Alert Contact Type: Web-Hook
  • URL to Notify: https://discordapp.com/api/webhooks/CHANGEME/CHANGEME?
    • Must end with ?
@Log1x
Log1x / Slack.sh
Created April 16, 2020 08:24
Discord Notification Webhook for unRAID
#!/bin/bash
# Replace Slack.sh in /boot/config/plugins/dynamix/notifications/agents
# Set to your Discord webhook token.
WEBHOOK="https://discordapp.com/api/webhooks/ID/TOKEN"
curl "$WEBHOOK" \
-X "POST" \
-H 'Content-Type: application/json' \
--data @<(cat <<EOF