Skip to content

Instantly share code, notes, and snippets.

D:\larkon>php -v
PHP 8.2.12 (cli) (built: Oct 24 2023 21:15:15) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.12, Copyright (c) Zend Technologies
D:\larkon>npm i
npm warn deprecated [email protected]: this package has been deprecated for breaking semver major
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
@Scampi-ml
Scampi-ml / Users.php
Created June 29, 2025 13:28
app\Controllers\Admin\Users.php
<?php
namespace App\Controllers\Admin;
use App\Controllers\BaseController;
use CodeIgniter\Shield\Entities\User;
use CodeIgniter\Shield\Models\UserModel;
use CodeIgniter\Shield\Models\GroupModel;
class Users extends BaseController
@Scampi-ml
Scampi-ml / twitch_oauth_token_generator
Last active July 16, 2024 11:12
Get a twitch oauth token using client id & client secret
<?php
class TwitchTokenGenerator
{
public $tw_auth_url;
public $tw_client_id;
public $tw_client_secret;
public function getTwitchAccessToken()
{
$ch = curl_init();