Skip to content

Instantly share code, notes, and snippets.

View Log1x's full-sized avatar

Brandon Log1x

View GitHub Profile
@Log1x
Log1x / debloatNox.md
Last active May 3, 2024 22:03
Debloating & Optimizing Nox

Debloating Nox

Nox, despite being the most feature-filled Android emulator, has a lot of negativity surrounding it due to their antics when it comes to making income off of their program. It is known for running repeated advertisments in the background, calling home and passing along system information (outside of your Android instance) as well as a vast amount of potentially sensitive data in an encrypted payload back to their multitude of servers. With the following preventitive measures, we can stop a majority of this happening as well as greatly improve the overall performance.

  1. Download and Install a fresh copy of Nox. The latest version is fine (for now). If you already have it installed, that is fine too. No need to reinstall.

  2. Enable Root Mode on Nox by clicking the gear icon and then checking the Root Startup box.

  3. Install a new Launcher from the Play Store. ANYTHING but Nox's default. I suggest [Nova Launcher](https://play.google.com/s

@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 / 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 / Win10.preset
Created February 8, 2020 21:54
Recommended Windows 10 Performance Preset
# See: https://github.com/Disassembler0/Win10-Initial-Setup-Script
### Require administrator privileges ###
RequireAdmin
### Privacy Tweaks ###
DisableTelemetry # EnableTelemetry
DisableWiFiSense # EnableWiFiSense
DisableSmartScreen # EnableSmartScreen
DisableWebSearch # EnableWebSearch
@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 / 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 / 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 / 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 / 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 / countdown.js
Created January 22, 2019 01:27
Vanilla JS Countdown Timer
/**
* Countdown
*/
function init() {
const second = 1000,
minute = second * 60,
hour = minute * 60,
day = hour * 24;
const date = document.querySelector('[data-date]').dataset.date;