"ide-helper": [
"@php artisan ide-helper:models -N",
"@php artisan ide-helper:generate",
"@php artisan ide-helper:eloquent",
"@php artisan ide-helper:meta",
]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Diskutil list | |
sudo mkdir /Volumes/disk2s1 | |
sudo mount -t ntfs -o rw,auto,nobrowse /dev/disk2s1 /Volumes/disk2s1 | |
Diskutil list will return something similar to this: | |
``` | |
/dev/disk0 (internal, physical): | |
#: TYPE NAME SIZE IDENTIFIER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* In this example, we're binding the `$this` value of the closure to the object. | |
*/ | |
class Foo { | |
private $secret = 'foo'; | |
} |
From this page: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
Execute in the terminal:
docker run --rm -ti -v ./html:/app php:8.0 bash
Then:
find /app -name '*.php' | xargs -n1 /usr/local/bin/php -l > /app/reportphp8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ---------------------------------- | |
# DEFINED - Global variables | |
# ---------------------------------- | |
# defined temporary folder | |
DBBACKUP="dbbackup" | |
# database configure |
See "Updating Drupal core via Composer" on Drupal's website.
# List available Drupal updates
composer outdated "drupal/*"
# Verify we are using "drupal/core-recommended"`
composer show drupal/core-recommended
# Update the core with its dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install ImageMagick on OSX: | |
brew update && brew install imagemagick | |
Then run the command line: | |
mogrify -format jpg *.HEIC |
Activate Facetime webcam on Ubuntu
- sudo apt-get install git
- sudo apt-get install curl xzcat cpio
- git clone https://github.com/patjak/facetimehd-firmware.git
- cd facetimehd-firmware
- make
- sudo make install
- cd ..
- sudo apt-get install kmod libssl-dev checkinstall
OlderNewer