Skip to content

Instantly share code, notes, and snippets.

<?php
declare(strict_types=1);
namespace App\Command;
use Spatie\ArrayToXml\ArrayToXml;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@StalkAlex
StalkAlex / zsh for BOW.md
Last active April 18, 2017 16:08
Pretty looking BashOnWindows ZSH

Windows

  1. Install Conemu
  2. Select <Solarized (Luke Maciak)> theme
  3. Use bash as startup script path
  4. https://github.com/powerline/fonts clone and run ps script to install all fonts

Ubuntu

  1. sudo apt-get install python-pip
  2. sudo pip install powerline-status
@StalkAlex
StalkAlex / dmstr_migration.php
Last active January 22, 2016 12:10
yii2-pages module migration. This is working version for postgres.
<?php
use yii\db\Schema;
use yii\db\Migration;
class m151103_064902_create_tree_manager_table extends Migration
{
public function up()
{
$this->execute("CREATE SEQUENCE dmstr_page_seq;");
Vagrant.configure(2) do |config|
config.vm.provider :virtualbox do |v|
v.name = "my_name"
v.customize [
"modifyvm", :id,
"--name", "my_name",
"--memory", 1024,
"--cpus", 1,
]
end