[Gluster-infra] Steps for nuking Gitorious spam

Justin Clift justin at gluster.org
Tue Mar 3 16:19:11 UTC 2015


On 3 Mar 2015, at 12:21, Michael Scherer <mscherer at redhat.com> wrote:
> 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 ?

Oops, yeah.  Should have this after the cd:

  # gitorious_console

I'll chuck this on the wiki page in a sec. :)

+ Justin

--
GlusterFS - http://www.gluster.org

An open source, distributed file system scaling to several
petabytes, and handling thousands of clients.

My personal twitter: twitter.com/realjustinclift



More information about the Gluster-infra mailing list