Skip to content

Instantly share code, notes, and snippets.

View hiyali's full-sized avatar
🌎
Focusing

Salam Hiyali hiyali

🌎
Focusing
View GitHub Profile
@hiyali
hiyali / xdebug-install-php7
Created October 9, 2016 11:52 — forked from kamilZ/xdebug-install-php7
Install xdebug from sources php7.0
sudo apt-get install php7.0-dev
wget http://xdebug.org/files/xdebug-2.4.0rc2.tgz
tar -xzf xdebug-2.4.0rc2.tgz
cd xdebug-2.4.0RC2/
phpize
./configure --enable-xdebug
make
sudo cp modules/xdebug.so /usr/lib/.
#FOR FPM
sudo echo 'zend_extension="/usr/lib/xdebug.so"' > /etc/php/7.0/fpm/conf.d/20-xdebug.ini
@hiyali
hiyali / grav-installation-requirements-php-composer-and-another
Last active August 29, 2016 08:30
grav-installation-requirements-php-composer-and-another
### install php
sudo add-apt-repository ppa:ondrej/php
### install requirements
sudo apt install php5.6-gd php5.6-xml php5.6-mbstring php5.6-curl php5.6-zip
### install grav
git clone -b master https://github.com/getgrav/grav.git
#####################################
::: gradle :::
[prod-path]/platforms/android/cordova/lib/builders/GradleBuilder.js
var distributionUrl = 'distributionUrl=http\\://services.gradle.org/distributions/gradle-2.2.1-all.zip';
And replace it with your own file's location:
var distributionUrl = 'distributionUrl=../gradle-2.2.1-all.zip';
####################################
::: android target :::
[prod-path]/platforms/android/project.properties
" folding settings
set foldmethod=indent "fold based on indent
set foldnestmax=10 "deepest fold is 10 levels
set nofoldenable "dont fold by default
set foldlevel=1 "this is just what i use"
""" za zm zr zM zR
" vim bootstrap +
" file
1. size analys
npm i -g webpack-bundle-size-analyzer
webpack --json | webpack-bundle-size-analyzer
2. webpack.config.js for minimize
new webpack.optimize.UglifyJsPlugin({
minimize: true,
compress: {
warnings: false,
},
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages