- Issue the following commands from the command line in your Yii application directory:
chmod +x psyii
mkdir extensions/yiishell
wget -O extensions/yiishell/psysh psysh.org/psysh
chmod +x extensions/yiishell/psysh
- Copy the file
init.php
below topsysh/init.php
and update any paths to work with your application configuration - Copy the file
config.php
below topsysh/config.php
. Change or add to the config array with the options you'd like to use (available options) - Now you can start PsySH with the command
./psyii psysh/init.php --config psysh/config.php
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
(define (average x) (/ x 2)) | |
(define (square x) (* x x)) | |
(define (abs x) (if (< x 0) (- 0 x) x)) | |
; (define (good-enough? guess x) | |
; (if (< (abs (- (square guess) x)) 0.00000000001) | |
; #t | |
; #f)) | |
(define (good-enough? guess x) |
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
<?php | |
/* | |
* # installation | |
* | |
* $ cat composer.json | |
* { | |
* "require": { | |
* "pimple/pimple": "~3.0" | |
* } |
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
<?php | |
namespace common\components; | |
class ColumnSchemaBuilder extends \yii\db\ColumnSchemaBuilder | |
{ | |
protected $comment; | |
/** | |
* @inheritdoc |
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
<?php | |
namespace common\components; | |
class ColumnSchemaBuilder extends \yii\db\ColumnSchemaBuilder | |
{ | |
protected $comment; | |
/** | |
* @inheritdoc |
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
diff --git a/ColumnSchemaBuilder.php b/ColumnSchemaBuilder.php | |
index bfa26bd..45ca8f5 100644 | |
--- a/ColumnSchemaBuilder.php | |
+++ b/ColumnSchemaBuilder.php | |
@@ -51,6 +51,7 @@ class ColumnSchemaBuilder extends Object | |
* @since 2.0.7 | |
*/ | |
protected $isUnsigned = false; | |
+ protected $comment; |
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 su - | |
# Kernels older than 3.10 lack some of the features required to run Docker containers. | |
uname -r | |
3.11.0-15-generic | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list |
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
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
Calculate MD5 checksum: | |
md5 /tmp/1.iso | |
Calculate SHA-1 checksum: | |
shasum -a 1 /tmp/1.iso | |
Calculate SHA-256 checksum: | |
shasum -a 256 /tmp/1.iso |
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
export XDEBUG_CONFIG="idekey=PHPSTORM remote_enable=1 remote_host=192.168.99.1 remote_port=9001 profiler_enable=1" |