Required packages :
- openssh-server
- xserver-xephyr
Fire the new Xserver window
Xephyr -ac -screen 800x600 -br -reset -terminate 2> /dev/null :1
Required packages :
Fire the new Xserver window
Xephyr -ac -screen 800x600 -br -reset -terminate 2> /dev/null :1
<?xml version="1.0"?> | |
<ruleset name="Laravel Standards"> | |
<!-- | |
The name attribute of the ruleset tag is displayed | |
when running PHP_CodeSniffer with the -v command line | |
argument. The description tag below is not displayed anywhere | |
except in this file, so it can contain information for | |
developers who may change this file in the future. | |
--> |
dependencies: | |
pre: | |
# Android SDK Platform 24 | |
- if [ ! -d "/usr/local/android-sdk-linux/platforms/android-24" ]; then echo y | android update sdk --no-ui --all --filter "android-24"; fi | |
# Android SDK Build-tools, revision 25.0.1 | |
- if [ ! -d "/usr/local/android-sdk-linux/build-tools/25.0.1" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-25.0.1"; fi | |
# Android Support Repository, revision 40 / Local Maven repository for Support Libraries | |
- if [ ! -d "/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/support-v4/25.0.1" ]; then echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"; fi | |
# Google Support Repository, revision 40 / Local Maven repository for Support Libraries | |
- if [ ! -d "/usr/local/android-sdk-linux/extras/google/m2repository/com/google/firebase/firebase-core/10.0.1" ]; then echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"; fi |
In the case that you don't want development errors making their way to Sentry for error tracking, you can use the code below to ensure that Sentry will only record exceptions when in production.
First, instead of loading the SentryLaravelServiceProvider
in the config/app.php
providers
array, we will load it in our App/Providers/AppServiceProvider.php
. This allows us to check the environment before loading the appropriate service providers.
Seconly, in our App/Exceptions/Handler.php
we again check for the production
environment before trying to capture the exception using Sentry. This second step prevents Sentry from trying to catch an exception when it isn't bound in the container.
private static class FirebaseTree extends Timber.Tree { | |
@Override | |
protected void log(int priority, String tag, String message, Throwable t) { | |
if (priority == Log.VERBOSE || priority == Log.DEBUG) { | |
return; | |
} | |
FirebaseCrash.log(message); | |
if (t != null) { |
$('.summer').summernote({ | |
height: "200px", | |
callbacks: { | |
onImageUpload: function(files) { | |
url = $(this).data('upload'); //path is defined as data attribute for textarea | |
sendFile(files[0], url, $(this)); | |
} | |
} | |
}); |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
#build.gradle | |
# | |
# compile 'io.reactivex:rxandroid:1.0.1' | |
# compile 'io.reactivex:rxjava:1.0.14' | |
# compile 'io.reactivex:rxjava-math:1.0.0' | |
# compile 'com.jakewharton.rxbinding:rxbinding:0.2.0' | |
# rxjava | |
-keep class rx.schedulers.Schedulers { | |
public static <methods>; |
# install latest postgresql | |
sudo yum install postgresql-server postgresql-contrib | |
# start postgresql | |
sudo systemctl start postgresql | |
# change postgres user password | |
sudo passwd postgres | |
# create a database and create a new user |
Mysql Secure Installation (Unattended)
NB : MyPass
is your current mysql password
echo -e "MyPass\nn\nY\nY\nY\nY\n" | mysql_secure_installation 2>/dev/null
Result:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB