Start docker swarm
$ docker swarm init --advertise-addr lo # {network}| <?php | |
| require __DIR__. '/../app/Mage.php'; | |
| Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
| $count = 0; | |
| $file = fopen('customers.csv', 'r'); | |
| $indices; |
| import sys | |
| num = input() | |
| num = int(num) | |
| n = 0 | |
| for i in range(1000): | |
| sys.stdout.write("N[%d] = %d\n" % (i, n)) | |
| n += 1 | |
| if n >= num: | |
| n = 0 |
| set shell=bash\ --login | |
| set shellcmdflag=-c | |
| set encoding=utf-8 | |
| set t_Co=256 | |
| set t_ut= | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set expandtab | |
| set lazyredraw |
| source /usr/share/tmux/powerline.conf | |
| set-option -g default-terminal "screen-256color" | |
| set-window-option -g automatic-rename off | |
| set-option -g allow-rename off | |
| # main command | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix |
| # http://unix.stackexchange.com/a/204613 | |
| sudo mount -o remount,rw /lib/live/mount/medium |
| # lsusb to get bus and id | |
| # https://weluse.de/blog/test-your-bootable-usb-drive-with-qemu.html | |
| sudo qemu-system-x86_64 -m 512 -enable-kvm -usb -device usb-host,hostbus=1,hostaddr=8 |
A collection of resources to learn object-oriented programming and related concepts for PHP developers. Original Please see CONTRIBUTING for details and contribute. ;)
| #!/bin/sh | |
| path_project="$1" | |
| DISTRO="unknown" | |
| if [[ -z $path_project ]]; then | |
| echo "Please add the path of project" | |
| exit 1 | |
| fi |