[Gluster-infra] Steps for nuking Gitorious spam

Michael Scherer mscherer at redhat.com
Tue Mar 3 12:21:46 UTC 2015


Le lundi 02 mars 2015 à 22:28 +0000, Justin Clift a écrit :
> For anyone interested, these are the steps needed for nuking spam
> comments in our present Gitorious based Gluster Forge:
> 
>   $ ssh -l root forge.gluster.org
>   # cd /var/www/gitorious/repositories/
>   Loading production environment (Rails 2.x.x)
>   >> User.find_by_login("spammerusername").comments.map(&:destroy)
>   [output here]
>   >> User.find_by_login("spammerusername").events.select { |e| e.action == 12 }.map(&:destroy)
>   [output here]
>   >> User.find_by_login("senlldy").destroy
>   [output here]
> 
> That should remove the spam, and remove the user.

Is a instruction missing, or is cd a alias for something else than
change directory ?

-- 
Michael Scherer
Open Source and Standards, Sysadmin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.gluster.org/pipermail/gluster-infra/attachments/20150303/300612c5/attachment.sig>


More information about the Gluster-infra mailing list