Skip to content

Instantly share code, notes, and snippets.

View sarkrui's full-sized avatar
🚀
Kicking off

Sark sarkrui

🚀
Kicking off
View GitHub Profile
@sarkrui
sarkrui / WeChat_backup.sh
Last active February 23, 2023 09:48
备份微信聊天记录
#!/bin/bash
#change working directory to Desktop
cd ~/Desktop
# remove any previously existing compressed files
rm -f WeChat_history*
# generate the new updated
tar -vczf ~/Desktop/WeChat_history$(date +%F_%R).tgz ~/Library/Containers/com.tencent.xinWeChat/Data/Library/Application\ Support/com.tencent.xinWeChat
@sarkrui
sarkrui / removeMacOSUpdateAlert.sh
Last active August 4, 2020 14:17
Snippets to remove macOS updates alert
#! /bin/bash
sudo softwareupdate --ignore "macOS Catalina"
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0
killall Dock
echo "Done!"
@sarkrui
sarkrui / com.rclone.plist
Created March 1, 2020 11:34
Auto mount Rclone on macOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>rclone</string>
<key>ProgramArguments</key>
<array>