Skip to content

Instantly share code, notes, and snippets.

package main
// Seconds Bytes
// Source 0.62s 50,331,648
// JSON 1.40s 146,725,206
// XML 9.14s 549,378,383
// GOB 0.33s 75,349,526
// Custom 0.17s 50,331,658
import (
@gholt
gholt / gist:10765466
Created April 15, 2014 19:51
keybase.md
### Keybase proof
I hereby claim:
* I am gholt on github.
* I am gholt (https://keybase.io/gholt) on keybase.
* I have a public key whose fingerprint is 9AFE B917 1E8C 3842 E510 CBAB 6F38 F656 22DA 4F27
To claim this, I am signing this object:
"""
Script to find any old-style full urls x-container-sync-to settings.
Run as the user that Swift runs as and give the script one or more
container directories to scan, such as:
python find_old_style_container_sync_settings.py /srv/node/*/containers
It will output a line per find: account/container x-container-sync-to-value
@gholt
gholt / rexpire.py
Last active December 30, 2015 04:39
"""
Re-expires objects based on previous expirer log output.
For example, to fix all the objects that expired during the time this bug
https://bugs.launchpad.net/swift/+bug/1257330 was deployed.
"""
CONF_PATH = '/some/path/rexpire.conf' # Just a copy of object-expirer.conf
REQUEST_TRIES = 3
EXPIRING_OBJECTS_ACCOUNT = '.expiring_objects'
SERVICE_NAME = 'object-expirer'