Posts

Showing posts from January, 2020

High Impact Team Leadership

Things to stop Stop main game Stop bangun lewat Stop makan banyak. Stop tido lewat Stop solat lambat Stop tak share apa yg aku buat dalam grup programming Stop tak call mak selang sehari ----------- todo - - - - - - - - Jaga mama papa next year Setelkan hutang rumah -------- todo - - - - - - Winning heart by using life timeline and asking to learn from him/her How to welcome New staff. Kena ada system. Ada guide how to welcome New staff What makes. People want to follow a leader 1. Leader yang clear objektif nya. 2. Leader yang boleh guide team member 3. Leader yang beriman 4. Leader yang bertanggungjawab. 5. Tunjukkan potensi bisnes. Horizon. 6. Efektif communication. 7. Apa ciri leader yg org xnak follow 1. Leader yg cakap dia uHuuHu Hu u x buat 2. Leader yg cakap benda yg dia tak mahir. Staff dia lagi mahir. 3. Leader yang fake. Bila kita tahu apa yang team kita nak. Dia boleh jadi bahan untuk kita cucuh api semarak kan nya. Be a leader Who care Ke...

Mongo create auth user

use tenderdb db.createUser( {   user: "userName",   pwd: "password",   roles: [     "readWrite",   ] } )

Cordova CORS-CORB over laravel api server

Weird thing happens to me when Postman seem to be working fine but cordova browser says CORS. Tried using dd() just weird why Postman is working fine when the app isn't. dd() did not write proper response header (access-control-allow-origin not showing). What i learn is that Chrome require header response with  Access-Control-Allow-Origin  but Postman did not. This findings really took me a lot of hours to realize what is going on. I came to realize when i start to inspect the response header. Earlier I thought that the app is broken, but when I put other url on the same code, it's working just fine. lesson learned Chrome really hates Cross-Origin-Resource-Sharing (also tested with other web browser)

NUH2020

--- Kolam Jiwa Sentiasa rendahkan kolam jiwa dan besarkan kolam jiwa kita Tak mingkin kita miskin kalau kita bertuhankan tuhan yang maha kaya Kejayaan jiwa. Inner wealth Suka tgk org lain suka. Suka org lain berjaya. Kekayaan kesihatan - bina kesihatan Kekayaan kekeluargan - silaturrahim Craft / hasil kerja - legacy Kaya money and wealth Circle of genius Wealth of adventure, pengalaman Kekayaan sumbangan Ketenangan Day 2 Kolam jiwa kotor , kalau tak mengalir kekayaan tu Ilmu adalah rezeki Upgrade cara berfikir , emosi upgrade..naikkan nilai diri Kena sanggup buat benda xpernah buat untuk capai benda benda xpernah capai Action creates result Thought + feeling > action > result Kolam n hujan. Kita besarkan tadahan Kena besar n rendah Emosi mempengaruhi energy ——-mesti Mentor Elmu - emosi , ilmu S - strategy T - tindakan I - insya Allah, intention , impian Tangguhkan nikmat Cukai buat orang kaya Cakap dengan diri sendiri Courage or comfort —- bljr dr titan Kena ada ilmu.. ...

How to have external service as your local port

ssh -fNg -L <local port>:127.0.0.1:<remote port> <user>@<ip/host> eg: ssh -fNg -L 3307:127.0.0.1:3306 root@11.11.11.11 #linux #sshTunnel

MongoDB how to query group by and sort

db.tenders.aggregate([     {"$group" : {_id:"$agency_name", count:{$sum:1}}}, {$sort:{"count":1}} ])

How to ssh without password by adding local key to server (ssh-copy-id)

first make sure you generate you public key by typing: ssh-keygen -t rsa then type ssh-copy-id -i ~/.ssh/id_rsa.pub <user>@<server> #linux #ubuntu