Skip to main content

Posts

Showing posts from 2021

300 stars and 100 forks 🎉

  It only takes eight months  😅

A faster Docker for Mac experience

Docker for Mac is freaking slow, this is known issue for years. I'm switching to docker-machine running within Parallels for now... Image from unsplash.com Install the tools I use brew to quickly install these: brew install docker-machine brew install docker-machine-parallels Create the virtual machine The --driver param and vm name is required. The others are all optional, the default values are quite low so I bumped the specs a bit. docker-machine create --driver=parallels \   --parallels-cpu-count=2 \   --parallels-disk-size=100000 \   --parallels-memory=4096 \   parallels Usage Set up the shell environment: eval $(docker-machine env parallels) Then use the cli as normal: docker ls docker-compose up -d To get the vm IP address: docker-machine ip parallels

Setting up a new laptop

This is mostly a self note for the next time I'm doing a fresh install of my laptop. Which I do about once a year to catch up with the latest macOS version. I feel like a new install has better performance then an in place upgrade. System Preferences The first thing that I do on any laptop is to make sure tap to click is enabled 🤣 Also related to the trackpad, three finger drag is also needed... macOS has tons of Apple icons in the default Dock. I get rid of most of them and also make it a bit smaller, align left, disable magnification / minimizing / animation. Some what related to the animations, I often reduce motion / increase contrast these days. It feels easier on the eyes. While I'm still in there, I also disable autocorrect and most of Spotlight indeces. Applications App Store I usually pre-download the installation packages before installing to save time but there are a few apps that need to be downloaded from the store. Xcode is the most important one, and it is huge.

GME? WSB? Short squeeze là cái quái gì vậy?

Trong khi các nhà đầu tư trên Facebook đau khổ vì VN-Index giảm điểm thì bên Mẽo dồn dập những cái tên như GameStop, WallStreetBets rồi các khái niệm short squeeze, options, etc. Sau khi đọc tá lả các nguồn thì mình tổng hợp lại cho các bạn đọc giải trí (đổi khẩu vị đi chứ nhiều tin bệnh dịch quá). Các nguồn tham khảo để ở cuối nhé. 1 GameStop là công ty chuyên bán băng đĩa, máy chơi game thành lập từ 1984 và lên sàn New York năm 2002 với mã GME. Ngày trước ăn nên làm ra, được mua đi bán lại nhiều lần nhưng gần đây thì bết bát do gamer mua online cho nhanh, cả năm vừa rồi cũng giãn cách nên không ai đi trung tâm thương mại / tiệm game làm gì… GME đã rẻ bèo rồi lại còn bị đánh giá là sẽ còn giảm nữa nên bị các nhà đầu cơ bán khống 71.2m cổ phiếu trong khi chỉ có 69.7m cổ phiếu lưu hành. 2 Bán khống ( short ) cổ phiếu thường sẽ làm như thế này: nhà đầu tư A dự đoán cố phiếu X có giá $10 và sẽ còn giảm nên quyết định cọc tiền (collateral) để mượn cổ phiếu bán ra thị trường, chờ X tụt giá

200 stars!

Yay! flutter_widget_from_html .