banner 728x90

Cannot git push origin master -f (force)

Cannot git push origin master -f (force)
Recently I just amend my code on branch master an then try to push the code to the Gitlab but unfortunately the branch master is protected for that particular action. ╭─yusuf@yusuf-berkarya ~/htdocs/xxxxxx-web ‹master› ╰─➤ git push origin master -f 1 ↵ Counting objects: 27, done. Delta compression using up to 4 threads. Compressing objects: 100% (26/26), done. Writing objects: 100% (27/27), 3.95 KiB | 673.00 KiB/s, done. Total 27 (delta 17), reused 0 (delta 0) remote: GitLab: You are
banner 728x90

When you judge another, you do not define them, you define yourself – Wayne Dyer

When you judge another, you do not define them, you define yourself – Wayne Dyer
Beautifully Zen Lets face it, judging others is a natural human trait.   I try my hardest not to make assumptions about others, I really do,  but sometimes despite my best efforts I will find myself exploring feelings of negativity towards someone else or even making judgements about them.  On the flip side, I sometimes find myself on the receiving end of such perceptions and thoughts. One thing I strongly believe is this,  every person we encounter in our

Bake a model for users table

Bake a model for users table
Setup Database Connection Edit config/app.php Bake Contoh root@b75c5d942521:/var/www# ./bin/cake bake model Choose a model to bake from the following: - Users root@b75c5d942521:/var/www# ./bin/cake bake model Users One moment while associations are detected. Baking table class for Users... Creating file /var/www/src/Contoh/Table/UsersTable.php Wrote `/var/www/src/Contoh/Table/UsersTable.php` Deleted `/var/www/src/Contoh/Table/empty` Baking entity class for User... Creating file /var/www/src/Contoh/Entity/User.php Wrote `/var/www/src/Contoh/Entity/User.php` Deleted `/var/www/src/Contoh/Entity/empty` Baking test fixture for Users... Creating file /var/www/tests/Fixture/UsersFixture.php Wrote `/var/www/tests/Fixture/UsersFixture.php` Deleted `/var/www/tests/Fixture/empty` Bake is detecting possible fixtures... Baking test case for AppModelTableUsersTable ... Creating

CakePHP 3.6.12 Migration (Phinx)

CakePHP 3.6.12 Migration (Phinx)
Phinx Phinx is a standalone command line tool for managing database Migrations. The official Migrations plugin for CakePHP is based on this tool. Composer Install Phinx (Mine is in the Docker Container) root@b75c5d942521:/var/www# composer require robmorgan/phinx Do not run Composer as root/super user! See https://getcomposer.org/root for details Using version ^0.10.6 for robmorgan/phinx ./composer.json has been updated 1/1: http://packagist.org/p/provider-latest$1c25e7d4b2021ab02c5f787753a04479e835647834fff24e816493dcb3b64a52.json Finished: success: 1, skipped: 0, failure: 0, total: 1 Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to

CakePhp 3.6 Installation on Ubuntu 18

CakePhp 3.6 Installation on Ubuntu 18
My Laptop Environment ╭─yusuf@yusuf-berkarya ~/htdocs/mycake1 ╰─➤ php -v PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS ) Hak cipta (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Hak cipta (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Hak cipta (c) 1999-2018, by Zend Technologies ╭─yusuf@yusuf-berkarya ~/htdocs/mycake1 ╰─➤ lsb_release --a LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic CakePHP 3.6 Instalation ╭─yusuf@yusuf-berkarya ~/htdocs ╰─➤ composer create-project --prefer-dist cakephp/app mycake1 127 ↵ Installing