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

[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
#EXTM3U url-tvg="http://gg.gg/Iichphatsongiptv" tvg-shift=0 m3uautoload=1
#EXTINF:-1 group-title="KÊNH ĐỊA PHƯƠNG" tvg-logo="https://i.ibb.co/ZYCZxNn/qrfbvovanloc.jpg", QR Facebook Ad
#EXTVLCOPT:http-user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) (byiptv247T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"
https://i.ibb.co/ZYCZxNn/qrfbvovanloc.jpg
#EXTINF:-1 group-title="KÊNH ĐỊA PHƯƠNG" tvg-logo="https://i.ibb.co/R0tqK7Y/angiangtvlogobyvovanloc.png", An Giang
#EXTVLCOPT:http-user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) (byiptv247T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"
http://livecdn.fptplay.net/sda/angiang_2000.stream/playlist.m3u8
#EXTINF:-1 group-title="KÊNH ĐỊA PHƯƠNG" tvg-logo="https://i.ibb.co/gZw9XQG/brvttvlogobyvovanloc.png", Bà Rịa Vũng Tàu HD
#EXTVLCOPT:http-user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) (byiptv247T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"
<?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'