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
#EXTM3U
#EXTINF:-1,VTV1
http://113.189.21.251:4022/rtp/232.84.1.27:8136
#EXTINF:-1,VTV1 HD
http://113.189.21.251:4022/rtp/232.84.1.117:10254
#EXTINF:-1,VTV2
http://113.189.21.251:4022/rtp/232.84.1.39:8208
#EXTINF:-1,VTV3
http://113.189.21.251:4022/rtp/232.84.1.28:8142
#EXTINF:-1,VTV3 HD
@hprobotic
hprobotic / clean_my_mac_x_guide.md
Last active July 23, 2026 23:12
CleanMyMac X tutorial
  • 1. Install the trial from https://macpaw.com/cleanmymac
  • 2. Open CleanMyMac then click Action then Authenticate
  • 3. Install the CleanMyMac installer from here, click replace 
  • 4. I didn’t try to open the app. 
  • 5. Run: sudo xattr -r -d com.apple.quarantine /Applications/CleanMyMac\ X.app
  • 6. Run codesign -f -s – –deep /Applications/CleanMyMac\ X.app/ (Check note)
  • 7. Open CleanMyMac

Notes:

[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
@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ệ
#!/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
@hprobotic
hprobotic / psql.md
Created January 10, 2018 04:01
Fix Postgres `connections on Unix domain socket "/tmp/.s.PGSQL.5432"?`

run rm /usr/local/var/postgres/postmaster.pid