Must Have Global CLI Tools & Brew packages on macOS
NPM
alex
cash-cli
fkill-cli
tldr
tree-cli
alex
cash-cli
fkill-cli
tldr
tree-cli
Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.
To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.
<?php | |
namespace App\Services; | |
use ReflectionClass; | |
use Illuminate\Support\Facades\File; | |
class ArrayToShapeConverter | |
{ | |
public function __construct(private string $basePath, private readonly string $namespace) |
cloudflared
brew install cloudflare/cloudflare/cloudflared
wget -qO wo wops.cc && sudo bash wo | |
# Auto completion | |
source /etc/bash_completion.d/wo_auto.rc | |
echo -e "alias wo='sudo -E wo'" >> $HOME/.bashrc | |
source $HOME/.bashrc | |
# Install stack | |
wo stack install |
If you're on macOS and suddenly composer has started throwing this weird error and you're wondering where the problem is, well, here's the solution and how to debug.
Error when you run composer global update
or any other similar commands.
In Process.php line 441:
<?php | |
/** | |
* Retrieve the IP address of the visitor. | |
* | |
* @return string | |
*/ | |
function getIPAddress() | |
{ | |
foreach (['HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR'] as $key) { |
// Usage | |
class Kernel extends HttpKernel | |
{ | |
// ..... | |
// ..... | |
// ..... | |
protected $routeMiddleware = [ | |
// ..... |
On trying to start mysql.server start
./usr/local/bin/mysql.server: line 264: kill: (12262) - No such process ERROR!
<!-- | |
- Info: https://csswizardry.com/2020/05/the-fastest-google-fonts/ | |
- | |
- 1. Preemptively warm up the fonts’ origin. | |
- | |
- 2. Initiate a high-priority, asynchronous fetch for the CSS file. Works in | |
- most modern browsers. | |
- | |
- 3. Initiate a low-priority, asynchronous fetch that gets applied to the page | |
- only after it’s arrived. Works in all browsers with JavaScript enabled. |