1 2 3 cd /media/root/parrotcp -R -P /media/root/help1/pyjom .
because of the qqChatBot task, pyjom on kali may be syncing too often. need to check the watchdog logs.
turned out it is the __pycache__
dirs to be blamed
disable all sync related services on macos for debug:
main issue happens after local vscode launched.
the issue is such that the proxy setting not right.
to debug the service:
1 2 sudo launchctl debug gui/501/pyjom_local_syncdog --stdout --stderr
1 2 3 4 5 6 launchctl list | grep syncdog | awk '{print $1}' | xargs -I abc kill -s TERM abc
we need to add some code for it. consider adding something alike to that to kali?
1 2 3 os.environ["http_proxy" ]="http://localhost:7930" os.environ["https_proxy" ]="http://localhost:7930"
1 2 3 4 5 6 7 8 9 10 11 launchctl stop gui/501/pyjom_local_watchdog; launchctl kill TERM gui/501/pyjom_local_watchdog; launchctl unload gui/501/pyjom_local_watchdog; launchctl disable gui/501/pyjom_local_watchdog; launchctl remove gui/501/pyjom_local_watchdog; launchctl stop gui/501/pyjom_local_syncdog; launchctl kill TERM gui/501/pyjom_local_syncdog; launchctl unload gui/501/pyjom_local_syncdog; launchctl disable gui/501/pyjom_local_syncdog; launchctl remove gui/501/pyjom_local_syncdog
install macos pyjom watchdog (local):
1 2 easyd -l pyjom_local_watchdog -w /Users/jamesbrown/Desktop/works/sync_git_repos -- /usr/bin/python3 /Users/jamesbrown/Desktop/works/sync_git_repos/watchdog_macos.py
install macos pyjom syncdog (local):
1 2 easyd -l pyjom_local_syncdog -w /Users/jamesbrown/Desktop/works/sync_git_repos -- /usr/bin/python3 /Users/jamesbrown/Desktop/works/sync_git_repos/syncdog_macos.py
Read More
macos mount ntfs read-only by default.
code from mounty.app
mounty is somehow not working so manual remount is needed.
one needs to click the remount button to mount it again under /Users/jamesbrown/.mounty/Toshiba3000
1 2 3 sudo umount /Volumes/Toshiba3000 sudo mkdir /Volumes/Toshiba3000; sudo mount -t ntfs -o rw,auto,nobrowse /dev/<diskIdentifier> /Volumes/Toshiba3000
Read More
use rclone to periodically commit files to NAS (incremental only, do not delete things), or use rclone to copy files to external SSD
buy airport extreme as wireless router and backup device
when in doubt, delete files under GUI instead of terminal
check out commands for moving files into trash bin instead of direct removal on different OSes
my data under ~/works
is lost. fuck.
buy me some ssd 512GB at least to do time machine backup.
buy m.2 ssd to reduce the size.
use usb-c cables to prevent inconvenience.
the filesystem will be formatted as APFS.
need a dedicated usb storage for it.
do not know if it is incremental backup.
Read More
use cmd-click to operate the inactive window without activating it.
linux/windows not having this feature. might need custom hot key for this.
Read More