sudo freebsd-update fetch install
sudo pkg install nginx
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Support\Str; | |
use Illuminate\Console\GeneratorCommand; | |
use Symfony\Component\Console\Input\InputOption; | |
class ModelMakeCommand extends GeneratorCommand | |
{ |
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ | |
/* Document | |
========================================================================== */ | |
/** | |
* 1. Correct the line height in all browsers. | |
* 2. Prevent adjustments of font size after orientation changes in | |
* IE on Windows Phone and in iOS. | |
*/ |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\GeneratorCommand; | |
use Symfony\Component\Console\Input\InputOption; | |
class ControllerMakeCommand extends GeneratorCommand | |
{ | |
/** |
MultipartBody.Builder builder = new MultipartBody.Builder(); | |
MediaType MEDIA_TYPE_PNG = MediaType.parse("image/png"); | |
int i = 0; | |
for (Image imageData : listImage) { | |
builder.addFormDataPart("uploaded_file" + "["+ i +"]", imageData.getName(), RequestBody.create(MEDIA_TYPE_PNG, new File(imageData.getPath()))); | |
i++ | |
} |
// Java | |
recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { | |
@Override | |
public void onScrolled(RecyclerView recyclerView, int dx, int dy) { | |
super.onScrolled(recyclerView, dx, dy); | |
if (dy > 0 && fab.getVisibility() == View.VISIBLE) { | |
fab.hide(); | |
} else if (dy < 0 && fab.getVisibility() != View.VISIBLE) { | |
fab.show(); |
private void checkUpdate() { | |
FirebaseRemoteConfig mFirebaseRemoteConfig = FirebaseRemoteConfig.getInstance(); | |
FirebaseRemoteConfigSettings configSettings = new FirebaseRemoteConfigSettings.Builder() | |
.setDeveloperModeEnabled(BuildConfig.DEBUG) | |
.build(); | |
mFirebaseRemoteConfig.setConfigSettings(configSettings); | |
long cacheExpiration = 3600; |
as found on StackOverflow
And this command to restart my php-fpm:
brew services restart php71
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install nginx php7.1-fpm php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-phpdbg php7.1-mbstring php7.1-gd php7.1-imap php7.1-ldap php7.1-pgsql php7.1-pspell php7.1-recode php7.1-soap php7.1-tidy php7.1-dev php7.1-intl php7.1-gd php7.1-curl php7.1-zip php7.1-xml php7.1-xdebug
sudo apt-get install mysql-server