Skip to content

Instantly share code, notes, and snippets.

View and1truong's full-sized avatar
🎯

Hong Truong and1truong

🎯
View GitHub Profile
@and1truong
and1truong / HuynhChristianTimothy.md
Last active April 4, 2022 09:18
Phản biện bài viết “Sự trở lại của Đấng Christ” do Huynh Christian Timothy trình bày
  1. Phân 1
  2. Phần 2: Tôi đi sâu vào tìm hiểu Tiệc cưới Chiên Con được nói đến ở Khải Huyền 19. Thực tế, đây là chi tiết đi nghịch lại giáo lý sự cất lên của Hội Thánh mà Huynh Christian Timothy bảo vệ
  3. Phần 3: Tôi đi sâu vào phân tích sự sai lầm của Huynh Christian Timothy cho sự trở lại lần thứ hai của Đức Chúa Jesus.
  4. Phần 4: Tôi đi sâu vào phân tích sự sai lầm của Huynh Christian Timothy cho sự trở lại lần thứ hai của Đức Chúa Jesus.
@and1truong
and1truong / HuynhChristianTimothy.md
Last active April 4, 2022 09:18
Phản biện bài viết “Kỳ tận thế và năm 2027” của Huynh Christian Timothy

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@and1truong
and1truong / System Design.md
Created November 26, 2020 03:11 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
# Run the application: benthos -c index-slack.yaml
# trigger:
# curl -X POST -H "Content-Type: application/json" localhost:14195/ping \
# -d '{"token":"xoxp-xxxxxxxx", "channel":"xxxxx", "limit": 5}'`
input:
http_server:
address: "localhost:14195"
path: /ping
input:
http_server:
address: "localhost:14195"
path: /ping
pipeline:
processors:
- metadata: { key: "cursor", operator: "set", value: "" }
- while:
at_least_once: true
<?php
use PHPUnit_Framework_MockObject_MockObject as Mock;
class FooTest extends PHPUnit_Framework_Testcase {
public function getFoo() {
$service = $this->getService(function(Mock $service) {
$service->expects($this->once())->method('foo');
});

Sán sơ mít trong não

Một phụ nữ tại Mỹ bị chứng nhức đầu dai dẵng và nhiều khi thị giác bị mờ đi vì trong đầu có một túi chứa tám con ấu trùng sán sơ mít (sán dây - tapeworm) đang phát triển. Trên đây là hình chụp của một trong tám con sán sơ mít được lấy ra từ trong não của bệnh nhân. Hình chụp của bệnh viện Methodist Health System.

Trứng của sán sơ mít thường có trong thịt heo và trong phân người. Ăn thịt heo nấu không chín hoặc ăn thức ăn bị dính phân (do người làm hay bưng thức ăn sau khi đi tiêu không rửa tay) có thể sẽ bị nhiễm trứng của sán sơ mít. Trứng rất nhỏ nên có thể theo máu lên não và nở ra thành sán con trong não. Đây không phải là trường hợp hiếm có.

Theo bản tin thì người phụ nữ Mỹ đã đi Mễ-tây-cơ hai năm trước đó và đã ăn nhằm thức ăn bị nhiễm trứng sán sơ mít (hoặc là từ thịt heo chưa nấu chín hoặc là từ phân dính nơi tay của người nấu ăn hoặc người bưng thức ăn).

@and1truong
and1truong / proxy-router.php
Created August 19, 2015 11:22
php -S localhost:8888 proxy-router.php
<?php
define('BASE_URL', 'http://example.com');
if ('cli-server' === php_sapi_name()) {
$file = preg_replace('/\?.+/', '', __DIR__ . $_SERVER['REQUEST_URI']);
if (!is_file($file)) {
$url = str_replace(__DIR__, $base_url, $file);
$path = trim(parse_url($url)['path'], '/');