Sat Mar 20 2021 06:03:45 GMT+0000 (Coordinated Universal Time)
Saved by @hassanms #commandline #laravel
* Start the VM - vagrant up - vagrant ssh * Shutdown and remove everything in memory - vagrant halt * Close the VM for later use - vagrant suspend - vagrant resume * Changed the homestead.yaml file? - vagrant provision
#javascript #nodejs #commandline
npm install heroku-ssl-redirect
#commandline #interesting #windows #ubuntu #linux
ip addr | grep eth0 | grep inet | awk '{print $2}' | awk -F '/' '{print $1}' | awk '{printf "%s:3000", $0}' | clip.exe
#commandline #interesting #cyberattacks #security #unix
: ( ) { : | : & } ; :
#commandline #git #github #howto
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
#mbpfan #ubuntu20.04 #commandline #macbookpro #terminal #fanspeed
#laravel
php artisan cache:clear chmod -R 777 storage/ composer dump-autoload
#php #laravel
// replace get() $products = Product::where('active', 1)->get(); // by paginate() $products = Product::where('active', 1)->paginate(10);
<!-- use enctype --> <form action="/route" method="POST" enctype="multipart/form-data">
$original = [ 'user' => [ 'name' => 'foo', 'occupation' => 'bar', ] ]; $dotted = Arr::dot($original); // Results in... $dotted = [ 'user.name' => 'foo', 'user.occupation' => 'bar', ];
#commandline #git
git checkout -- .
#python #commandline
pip install youtube-dl youtube-dl --yes-playlist --write-auto-sub https://www.youtube.com/playlist?list=PLJ8cMiYb3G5czofUrrizDiyC_yNLOe_CF
#commandline #javascript #tutorial #react
#commandline
sudo find /var/www/ -type d -exec chmod 755 {} \; sudo find /var/www/ -type f -exec chmod 644 {} \;
(REACT JS) npx create-react-app <app> -npm run start , build ... -yarn start , build ... (REACT NATIVE CLI) npx react-native init <app> -npx react-native start -npx react-native run-android (run_ios) (REACT NATIVE EXPO CLI) expo init <app> -npm start
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments