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
<?xml version="1.0" encoding="utf-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>huffduff</title> | |
<dateCreated>Thu, 12 Sep 2003 23:35:52 GMT</dateCreated> | |
<dateModified>Fri, 12 Sep 2003 23:45:37 GMT</dateModified> | |
</head> | |
<body> | |
<outline text="Podasts"> | |
<outline text="Huffduffer" type="link" url="http://huffduffer.com/lbjay/rss" dateCreated="Thu, 12 Sep 2003 23:35:52 GMT"/> |
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
[email protected]:~> 15:19:36 1644 $ mtr --report api.stackexchange.com | |
HOST: reallywow.com Loss% Snt Last Avg Best Wrst StDev | |
1. router1-dal.linode.com 0.0% 10 0.4 4.9 0.4 20.5 7.4 | |
2. xe-2-0-0.car03.dllstx2.netwo 0.0% 10 0.2 6.8 0.2 66.0 20.8 | |
3. po101.dsr01.dllstx2.networkl 0.0% 10 0.5 0.4 0.4 0.6 0.1 | |
4. po21.dsr01.dllstx3.networkla 0.0% 10 0.6 0.7 0.6 1.0 0.1 | |
5. ae16.bbr02.eq01.dal03.networ 0.0% 10 0.5 0.5 0.5 0.5 0.0 | |
6. dls-bb1-link.telia.net 0.0% 10 0.5 0.5 0.5 0.7 0.0 | |
7. nyk-bb1-link.telia.net 0.0% 10 61.5 51.9 45.6 86.1 13.0 | |
8. nyk-b6-link.telia.net 0.0% 10 47.6 47.6 47.5 47.6 0.0 |
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
INFO 2013-03-11T10:56:11 supybot tea called by "mistym!~mistym@pdpc/sup | |
porter/active/mistym". | |
ERROR 2013-03-11T10:56:11 supybot Uncaught exception in ['tea']. | |
Traceback (most recent call last): | |
File "/usr/lib/pymodules/python2.6/supybot/callbacks.py", line 1180, | |
in _callCommand | |
self.callCommand(command, irc, msg, *args, **kwargs) | |
File "/usr/lib/pymodules/python2.6/supybot/utils/python.py", line 86, | |
in g | |
f(self, *args, **kwargs) |
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
def test_user_logged_in_cookie_1(self): | |
"""test that if the user is logged in and the cookies are not right, some new cookies are sent back""" | |
print "between here" | |
with self.app.test_client() as c: | |
with c.session_transaction() as sess: | |
sess['user_id'] = u'4d2203d39f' | |
sess['_fresh'] = True | |
resp = c.get('/') | |
#print resp.headers |
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
from invenio.search_engine import perform_request_search, get_record, print_record | |
# ... get the bibcodes somehow | |
bibs = ['2012PhRvA..86e3813B', ...] | |
for bib in bibs: | |
for rec_id in perform_request_search(p="970:%" % bib, cc="ADS metadata repository"): | |
# 'rec' is a list/tuple structure that is structured according to the MARC | |
# format. Field #653 is where any "free" keywords are stored; field #695 is for |
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
from adsabs.app import create_app | |
if __name__ == '__main__': | |
app = create_app() | |
app.run() |
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
filter { | |
metrics { | |
meter => [ "http.%{response}" ] | |
add_tag => "metric" | |
} | |
} | |
output { | |
graphite { | |
tags => ["metric"] | |
debug => true |
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
multiline { | |
tags => ["solr"] | |
pattern => "^\s+" | |
negate => false | |
what => "previous" |
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
@contextmanager | |
def socket_send_wrapper(send_args): | |
def fake_send(*args, **kwargs): | |
send_args.append(args, kwargs) | |
mocked_send = patch("socket.send", fake_send) | |
mocked_send.start() | |
yield | |
mocked_send.stop() | |
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
bash-4.1$ less logs_pipeline/pipeline_2013_10_16.log | |
2013-10-16 11:47:14,541: Pipeline - WARNING - Pipeline started | |
2013-10-16 11:47:15,741: Pipeline - WARNING - Last extraction was not fine: recovering | |
2013-10-16 11:47:16,847: Pipeline - WARNING - Process-1 (Manager) Starting all the workers | |
2013-10-16 11:47:16,854: Pipeline - WARNING - Process-1:1 (done bibcodes worker) Process started | |
2013-10-16 11:47:16,856: Pipeline - WARNING - Process-1:2 (probl. bibcodes worker) Process started | |
2013-10-16 11:47:16,859: Pipeline - WARNING - Process-1:3 (upload worker) Process started | |
2013-10-16 11:47:16,861: Pipeline - WARNING - Process-1:4 (upload worker) Process started | |
2013-10-16 11:47:16,864: Pipeline - WARNING - Process-1:5 (upload worker) Process started | |
2013-10-16 11:47:16,867: Pipeline - WARNING - Process-1:6 (upload worker) Process started |