Skip to content

Instantly share code, notes, and snippets.

View sooluh's full-sized avatar
🇵🇸
stand with palestine!

Torch sooluh

🇵🇸
stand with palestine!
View GitHub Profile
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
abstract class Controller extends BaseController
{
@sooluh
sooluh / README.md
Created March 10, 2025 22:25 — forked from YoSoyPhil/README.md
Install Canon EOS Utility 2 full version

How to install Canon EOS Utility 2 full version

EOS Utility 2.14.20a full version install

Go to Canon and select your camera model under software downloads. At the time this guide was written, the link was https://www.canon-europe.com/support/consumer_products/software/eos-utility.html

Select your camera and download "EOS Utility 2.14.20a Updater for Windows" (yes, we will do full install with this file).

Before we can run the installer we need to add a key to our registry.

@sooluh
sooluh / README.md
Created February 1, 2024 09:02
Fix NativePHP in Windows
@sooluh
sooluh / .curlrc
Created December 30, 2022 07:12
Add newline at end of curl response body
-w "\n"
@sooluh
sooluh / ExampleController.ts
Last active October 22, 2025 07:09
Server-side datatable with AdonisJS
import Users from 'App/Models/Users'
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
export default class ExampleController {
public async datatable({ request }: HttpContextContract) {
const users = Users.query()
const query = request.qs()
if (typeof query.draw === 'undefined') {
return {
@sooluh
sooluh / http-header.php
Last active May 28, 2024 04:58
Securing HTTP headers in the PHP language.
<?php
/**
* Securing HTTP headers in the PHP language.
* Written by Abu Masyail <suluhs@aol.com>
* Use as you like, hopefully useful.
*/
/**
* X-Frame-Options allows content publishers
@sooluh
sooluh / google-login.ts
Last active June 20, 2023 03:25 — forked from Brandawg93/google_login.ts
Login to Google Account via Puppeteer
import puppeteer from 'puppeteer-extra';
import pluginStealth from 'puppeteer-extra-plugin-stealth'; // Use v2.4.5 instead of latest
import * as readline from 'readline';
puppeteer.use(pluginStealth());
// Use '-h' arg for headful login.
const headless = !process.argv.includes('-h');
// Prompt user for email and password.
@sooluh
sooluh / reoder-ai.sql
Last active December 30, 2022 07:17 — forked from carloscarcamo/reorderAutoIncrementIDs.sql
Reorder auto increment IDs on MySQL
SET @count = 0;
UPDATE table_name SET table_name.id = @count:= @count + 1;
ALTER TABLE table_name AUTO_INCREMENT = 1;

Keybase proof

I hereby claim:

  • I am sooluh on github.
  • I am sooluh (https://keybase.io/sooluh) on keybase.
  • I have a public key ASA-uvhJ41DdFmSo0kKEy5PIk_a5o75I3O5I4f8zDNk9NQo

To claim this, I am signing this object:

@sooluh
sooluh / tmux.sh
Last active December 30, 2022 07:18
Create a new tmux session and run the command
#!/bin/bash
# Change the value of the PATH variable (optional)
PATH="/root/.nvm/versions/node/v14.15.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
tmux new-session -d -s session_name -n window_name
tmux send-keys -t session_name:window_name "cd /to/your/path" Enter
tmux send-keys -t session_name:window_name "run command here" Enter