Skip to content

Instantly share code, notes, and snippets.

View klytron's full-sized avatar

Michael Laweh klytron

View GitHub Profile
@davidgrzyb
davidgrzyb / UsersTable.php
Last active November 6, 2023 18:29
Livewire Infinite Scroll Example
<?php
namespace App\Http\Livewire;
use App\Models\User;
use Livewire\Component;
class UsersTable extends Component
{
public $totalRecords;
@chaodonghu
chaodonghu / unfollow-everyone-instagram.js
Last active September 19, 2026 17:10
Google Chrome script that allows user to mass unfollow instagram users on user's profile
// Run GOOGLE CHROME - WORKING AS OF SEPTEMBER 19 2026
// Please @ me in the comments if this stops working, I will try to get it working again within the week/month
//
// INSTRUCTIONS
// 1. Open Instagram in Chrome
// 2. Click on "FOLLOWING" on your Instagram profile
// 3. Right click the page, click "INSPECT", open the "Console" tab
// 4. Paste this script and press enter
// 5. Keep the tab focused. Chrome throttles timers in background tabs.
// Open it in its own window and leave it on screen.
@mikepruett3
mikepruett3 / shell-setup.ps1
Last active July 12, 2026 17:28
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
@seven1m
seven1m / open_source_church_software.md
Last active April 14, 2026 10:52
List of Open Source Church Software (NO LONGER MAINTAINED)
@BenSampo
BenSampo / deploy.sh
Last active July 20, 2026 14:50
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active October 22, 2026 09:16
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@kauhat
kauhat / copyBetweenDisks.php
Created December 14, 2017 12:44
Upload & copy files between disks in Laravel 5
<?php
use Illuminate\Http\File;
use Storage;
/**
* Load contents of file into memory and copy. Slower, but can copy from
* remote disks.
*
* @return void
@yesnik
yesnik / active_record.md
Last active November 1, 2024 14:49
Yii 1 Framework Cookbook

CActiveRecord methods

findAll()

Sort records

// Ascending order
Partner::model()->findAll(array('order' => 'company'));
@sergomet
sergomet / GoogleDriveServiceProvider.php
Created April 1, 2017 07:01 — forked from ivanvermeyen/!NOTE.md
Setup a Laravel Storage driver with Google Drive API
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class GoogleDriveServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.