with mysql pgsql intl support
$ brew install php --with-apache --with-mysql --with-pgsql --with-intl
date.timezone = Europe/Vienna
First of all, you need uapache2-utils tools. | |
sudo apt-get install apache2-utils | |
Then you add this in your virtualhost in your <Directory> tag : | |
#Require all granted | |
# you need to comment this line above to require a valid-user | |
AuthName "This website is not ready to go public !" | |
AuthType Basic |
# In the root directory of a project, the Git working copy must be clean: | |
echo "a" | react-native upgrade # Generate the current version template and overwrite all files | |
git add . | |
git commit -m "Old version" # The current version template is added to the index | |
npm i react-native@latest --save # Install the new version of React Native | |
echo "a" | react-native upgrade # Generate the new version template and overwrite all files |
run.config: | |
cache_dirs: | |
- vendor | |
- node_modules | |
engine: php | |
engine.config: | |
runtime: php-7.1 | |
extensions: | |
- pdo_pgsql | |
- bcmath |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get -y install git zsh tig curl vim htop vlc tlp tlp-rdw build-essential automake | |
# Battery management | |
sudo tlp start | |
# install node js | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt-get install -y nodejs |
# This file means nothing. It's just here to give the Gist a name I can understand. | |
# This configuration requires the KNP Snappy Bundle [https://github.com/KnpLabs/KnpSnappyBundle] |
<?php | |
/** | |
* User: bekco (Behçet Mutlu) | |
* Date: 17/11/16 | |
* Time: 17:52 | |
*/ | |
namespace Acme\Oauth2Bundle\Oauth\Extension; |
<?php | |
<<<CONFIG | |
packages: | |
- "kriswallsmith/buzz: ^0.15.0" | |
- "symfony/console: ^3.2@dev" | |
CONFIG; | |
// Find you token on https://api.slack.com/docs/oauth-test-tokens | |
use Buzz\Message\Response; |
const log = new Proxy({}, { | |
get: (_, colour) => function() { | |
console.log(`%c ${[].slice.call(arguments).join(' ')}`, `color: ${colour}`) | |
} | |
}) | |
// example | |
log.tomato('I am tomato') | |
log.chocolate('I am chocolate') | |
log.cornflowerblue('I am cornflowerblue') |