Skip to content

Instantly share code, notes, and snippets.

View hiyali's full-sized avatar
🌎
Focusing

Salam Hiyali hiyali

🌎
Focusing
View GitHub Profile
# 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
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,
},
sudo apt install i3 i3status dmenu i3lock xbacklight feh conky compton rofi
(and i3 gaps?)
i3-gaps # window border
feh # wall paper
rofi # like os X win+l (could open any application)
compton # for conky alpha
conky # manual configuration desktop
i3 # window manager
i3-status # i3 status bar
" 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
#####################################
::: 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
@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
@hiyali
hiyali / php7-laravel-installation
Last active February 23, 2017 06:25
install php7 and laravel
### install php 7 ###
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y
### install laravel ###
composer global require "laravel/installer"
### install requirements ###
sudo apt install php-gd php-zip phpunit php-mbstring
### new project ###
@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 / A-lumen-route-resource-example.md
Last active January 1, 2021 02:50
lumen-route-resource

Files

Route

./routes/Resource.php # get model resource
./routes/web.php # include and define resource

Controller

./app/Http/Controllers/RestfulControllerTrait.php # restful trait
./app/Http/Controllers/Controller.php # use restful trait
@hiyali
hiyali / capslock-instead-to-ctrl.md
Last active March 19, 2019 11:21
capslock-instead-to-ctrl

debian, ubuntu etc...

Open the following for editing

sudo nvim /etc/default/keyboard

And edit

XKBOPTIONS="ctrl:swapcaps"

Then, reconfigure: