Skip to content

Instantly share code, notes, and snippets.

View xupefei's full-sized avatar
🏠
Definitely working from home

Paddy Xu xupefei

🏠
Definitely working from home
View GitHub Profile
@ahknight
ahknight / fix_timemachine_backup.sh
Last active August 9, 2023 20:25
When Time Machine asks you to delete your backups and start over, ignore it. Run this and then start a backup again.
#!/bin/bash -x
# Generally based on ideas found at:
# http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-based-backup-errors.html
#
# Reduced the ideas there down to their essentials.
# 1. Unlock the image.
# 2. Reset the saved failure in the backup metadata.
# 3. Verify/fix the filesystem.
@quietlynn
quietlynn / gplus.quick_mention.user.js
Created July 1, 2012 13:10
Google+ Quick Mention => Mention G+ users quickly.
/*
Google+ Quick Mention => Mention G+ users quickly.
Copyright (C) 2012 Jingqin Lynn
Includes jQuery
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Includes Sizzle.js
@quietlynn
quietlynn / dependency_loader.user.js
Created May 9, 2012 15:51
dependency_loader.user.js => Load everything needed in userscripts.
/*
dependency_loader.user.js => Load everything needed in userscripts.
Copyright (C) 2012 Jingqin Lynn
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,