This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi guys. Recently I had a situation when a certain directory had a few more sub-directories, and | |
I needed to perform an identical list of actions for each of those sub-directories and doing that | |
manually by changing the current directory and repeatedly executing same commands was quite annoying | |
so I decided to spend half an hour and create a bash script for that purpose. | |
A particular example of the situation I had was having several virtual machines located accordingly | |
in ~/Boxes/serverOne ~/Boxes/serverTwo ~/Boxes/serverThree (I was testing ansible and was recreating and destroying vms). | |
This script asks for the confirmation as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Promise = require('bluebird') | |
var A = function() { | |
return new Promise(function(resolve, reject) { | |
var result = 'A is done' | |
console.log(result) | |
resolve(result); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
## SETUP | |
$isPhpCsPass = false; | |
$isPhpMdPass = false; | |
$isPhpUnitPass = false; | |
## PHPCS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xml xmlns="http://www.w3.org/1999/xhtml" collection="true"> | |
<block type="procedures_defreturn" id="Hfg.=dQz#4Of#xazXz^="> | |
<mutation> | |
<arg name="__input_list"></arg> | |
</mutation> | |
<field name="NAME">getOddEvenStats</field> | |
<comment pinned="false" h="80" w="160">Describe this function...</comment> | |
<statement name="STACK"> | |
<block type="variables_set" id="|wA=5Q0c;Co3:F/VO;1u"> | |
<field name="VAR">__f__list</field> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
************************ | |
* Global variables * | |
************************ | |
*/ | |
/** | |
* Authentication token | |
* | |
* @type {string} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install mint-meta-mate | |
switch to it | |
Install google chrome | |
sudo apt-get install git mc vim php openssh-server nfs-kernel-server | |
sudo apt-get install php php7.0-mcrypt php7.0-xml php-all-dev php7.0-curl php7.0-gd php7.0-intl php7.0-mbstring php7.0-zip php7.0-mysql | |
add to sources |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Taken from https://www.howtoforge.com/tutorial/how-to-install-magento-with-nginx-on-ubuntu/ | |
How to Install Magento with Nginx on Ubuntu 16.04 | |
Prerequisites: | |
Ubuntu 16.04 - 64 bit. | |
Root Privileges. | |
Step 1 - Install Nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Setting permissions 777 to ./var" | |
sudo find ./var/ -type d -exec chmod -R 777 {} \; | |
php bin/magento cache:clean; | |
php bin/magento setup:upgrade; | |
php bin/magento setup:di:compile; | |
php bin/magento indexer:reindex; | |
echo "Setting permissions 777 to ./pub" | |
sudo find ./pub/ -type d -exec chmod -R 777 {} \; | |
#echo "Setting permissions 755 to ./.htaccess" | |
#sudo find ./.htaccess -type f -exec chmod -R 755 {} \; |