Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View shiroamada's full-sized avatar
🎯
Focusing

Shiro Amada shiroamada

🎯
Focusing
  • Kuala Lumpur, Malaysia
View GitHub Profile
@nasirkhan
nasirkhan / laravel-controller-method-commands.php
Last active March 31, 2023 04:11
Call Laravel Controller methods via command line
<?php
php artisan tinker
$controller = app()->make('App\Http\Controllers\MyController');
app()->call([$controller, 'myMethodName'], []);
//the last [] in the app()->call() can hold arguments such as [user_id] => 10 etc'
@ibnux
ibnux / video_convert_recursive.php
Last active December 20, 2021 03:26
This script for converting all videos on your NAS, i use this script for converting video on my Synology NAS, This will recursively convert all your video
<?php
/*
Created by @ibnux January 2015
Use with your own risk
This script for converting all videos on your NAS
i use this script for converting video on my Synology NAS
This will recursively convert all your video
put this in your home folder
@gubatron
gubatron / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md
Last active March 12, 2024 07:34
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

Let's say alice is a github.com user, with 2 or more private repositories repoN. For this example we'll work with just two repositories named repo1 and repo2

https://github.com/alice/repo1

https://github.com/alice/repo2

You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.