Saturday, January 27, 2024

Step by Step DevOps Guides

DevOps is a methodology/culture for continuous integration and continuous deliver (CI/CD). To apply DevOps in project management, we need to understand the full cycle of DevOps.

Before diving into DevOps, we need to prepare and setup the playground so that we could hands on the tutorial.

  • Pre-requisition
  • Setup CI Jenkins
    • Configure GitHub credential
    • How to resolve git repo connection
      • https://www.blazemeter.com/blog/how-to-integrate-your-github-repository-to-your-jenkins-project
      • https://docs.joyent.com/public-cloud/getting-started/ssh-keys/generating-an-ssh-key-manually/manually-generating-your-ssh-key-in-mac-os-x
    • How to solve build image issue
      • https://stackoverflow.com/questions/41215997/jenkins-docker-pipeline-error
  • Overview of what is DevOps
  • Setup Kubernetes with DevOps
  • Setup Kubernetes on Azure


Love how it explain business proposition

 

 

https://www.cio.com/article/228470/5-ways-to-achieve-business-outcomes-instead-of-building-software-systems.html

 

https://www.madesimplegroup.com/blog/what-is-your-business-proposition/

Docker Useful Tutorial

 

References: 


http://containertutorials.com


https://linuxhint.com/lamp_server_docker/


https://www.makeuseof.com/run-ubuntu-as-docker-container/

Reinstall MyQL

 


sudo apt-get purge mysql*

sudo apt-get autoremove

sudo apt-get autoclean

sudo apt-get distracted-upgrade

Window Abandoned Application

Great link allowed you to find the old abandoned application by window:  https://winworldpc.com/

Thursday, March 16, 2023

MySQL Reset Root Password

1. first sudo mysql

sudo mysql -u root


2. check present db

select user, host from mysql.user


3. delete current 'root'@'localhost'

drop user 'root'@'localhost';


4. recreate root

create user 'root'@'localhost' identified by '';


5 Give permission

grant all privileges on *.* to 'root'@'localhost' with grant option;

flush privileges;

Thursday, April 5, 2018

[Laravel] Multiple Checkbox and Enable Checkbox



Controller

public getAccessories($request) {

$accessories = array(0=>'Charger',1=>'Battery',2=>'USB Cable',3=>'Others');

// retrieve accessories from db and convert to array
$save_accessories = unserialize($repair->accessories);

// Pass accessories to view page
 return view('view', compact('$accessories', '$save_accessories'));

}


view.blade 

@foreach($accessories as $i=>$accessory)
{!! Form::checkbox('accessories[]', $accessory,
in_array($accessories[$i],$save_accessories)) !!}
{!! Form::label($accessory, $accessory) !!}
<br/>
@endforeach