This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
def test(mod): | |
t= time.time() | |
d = {} | |
c = 0 | |
while c < 10000: | |
d[c+1] = c | |
f= mod.dumps(d) | |
mod.loads(f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Copyright (C) 2013 Legoktm | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the "Software"), | |
to deal in the Software without restriction, including without limitation | |
the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
and/or sell copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
regex=re.compile('<em>(\d*?) members total,') | |
with open('dalpass') as f: | |
adminpass = f.read() | |
s = requests.Session() | |
d = {'adminpw': adminpass, 'admlogin': 'Let me in...'} | |
s.post('https://lists.wikimedia.org/mailman/admin/daily-article-l/', data=d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Authors: Legoktm, Betacommand | |
# License: MIT License | |
import datetime | |
import functools | |
import logging | |
import mwparserfromhell | |
import pywikibot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Public domain | |
import wikitools | |
username = 'Legoktm' | |
password = 'hunter2' | |
messages = ['Signupstart', 'Signupend'] | |
reason = '...' | |
def matrix(wiki): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pywikibot | |
import sys | |
template = """{{catmore|Wikipedia:Authority control}} | |
{{Wikipedia category}} | |
""" | |
main_cat = """[[Category:Pages with authority control information|{0}]]""" | |
hidden = """{{catmore|Wikipedia:Authority control}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat ~/.config/beets/config.yaml | |
# Automatically migrated from legacy .beetsconfig. | |
directory: ~/Music | |
plugins: lyrics embedart fetchart ftInTitle mbcollection web | |
import: | |
move: true | |
acoustid: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# SUL audit thingy | |
# GPL v2 / MIT License | |
import calendar | |
import datetime | |
from collections import defaultdict, OrderedDict | |
import os | |
import time | |
import MySQLdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# CentralAuth broken accounts detector script | |
# Released under GPL v2 / MIT License | |
# | |
# By Legoktm, with contributions from Roan Kattouw, wctaiwan and Earwig | |
# | |
# Detects "broken" accounts. See | |
# <https://bugzilla.wikimedia.org/show_bug.cgi?id=61876> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/manifests/role/extdist.pp b/manifests/role/extdist.pp | |
new file mode 100644 | |
index 0000000..30956f4 | |
--- /dev/null | |
+++ b/manifests/role/extdist.pp | |
@@ -0,0 +1,27 @@ | |
+# = Class: role::extdist | |
+# | |
+# This class sets up the Extension Distributor tarball generator | |
+# |