Skip to content

Instantly share code, notes, and snippets.

View hprobotic's full-sized avatar
:dependabot:
On Break

John Pham hprobotic

:dependabot:
On Break
View GitHub Profile
@hprobotic
hprobotic / MEOCAPTOCO B2 - Tong Hop.md
Last active October 30, 2025 04:33
Mẹo Thi Sát Hạch GPLX B2 (600 Câu) – Bí Kíp Đạt Điểm Cao Phần Lý Thuyết & Sa Hình

📚 Mẹo Thi Sát Hạch GPLX B2 (600 Câu) – Bí Kíp Đạt Điểm Cao Phần Lý Thuyết & Sa Hình

(Nội dung này tổng hợp các mẹo giải nhanh cho 600 câu hỏi lý thuyết, được trích lọc từ tài liệu ôn thi GPLX B2.)


1. Mẹo Phần Lý Thuyết Chữ (Câu hỏi Chữ)

Nội dung câu hỏi Mẹo và Đáp án Đúng Ngoại lệ

[FIX]: For Universal Clipboard copy/paste not working

I, like many people, have found that Universal Clipboard copy/paste stops working for no reason. I have a iPhone 12 Pro and an M1 MacBook Air.

All Handoff features work (e.g apps from phone showed up in dock) except copy/paste. I'd tried:

  • Turning BT and Wireless on and off again
  • Turning off/on Handoff on Mac/iPhone
  • Turning everything off on both devices, restarting, turning back on again
#!/bin/sh
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 << "EOF"
# install_certifi.py
#
# sample script to install or update a set of default Root Certificates
# for the ssl module. Uses the certificates provided by the certifi package:
# https://pypi.org/project/certifi/
@hprobotic
hprobotic / fix_pandas_pipenv_m1.md
Created December 16, 2022 02:06
Workaround on setup pandas on Apple silicon chip. Using pipenv

Initial Setup

MacOS Big Sur version 11.0.1
Python 3.9.2 installed using brew
pip 21.0.1
Pipenv to manage environment

Installing Pandas in Pipenv

Activate pipenv shell on the project folder (mine is called “pipenv-project”)

import pandas as pd
selected_columns = ["Amount", "Date", "Where"]
def find_diff_only(origin_df, target_df, identity="DBS"):
shared_with_origin = pd.merge_asof(
origin_df,
target_df,
on="Date",

Dev:

  1. Remove all pip packages: pip freeze | grep -v "^-e" | xargs pip uninstall -y

  2. Remove all brew packages: brew remove --force $(brew list --formula)

@hprobotic
hprobotic / wg.conf
Last active July 26, 2021 05:19
JTW41K35-eI6C1x25-m24lJ18D
[Interface]
PrivateKey = qIlPpcDo6YmFd7vgE6xwjrKcqjzxMERNzd6sJrDyy1U=
Address = 172.16.0.2/32
Address = fd01:5ca1:ab1e:8048:2daa:4e28:6a87:3e37/128
DNS = 1.1.1.1
MTU = 1280
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0
<?php
/* ------------------------------ NOTICE ----------------------------------
If you're seeing this text when browsing to the installer, it means your
web server is not set up properly.
Please contact your host and ask them to enable "PHP" processing on your
account.
----------------------------- NOTICE ---------------------------------*/

Hi

Here is your today report

  1. All Terminals belonging to the merchants are inactive for 10 <= x >= 2 days <List: machant, terminal_id, tid, name, last_transaction date... /> Danh sách các terminal không có transaction trong 2 ngày tính từ ngày có transaction cuối cùng.
30 <= current_date >= last_transaction_date + 2 => true else false
" plugins
call plug#begin('~/.config/nvim/plugged')
"colorschemes
Plug 'arcticicestudio/nord-vim'
Plug 'chriskempson/base16-vim'
Plug 'joshdick/onedark.vim'
"airline
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'