Skip to content

Instantly share code, notes, and snippets.

Katie Filbert filbertkm

  • NYC
Block or report user

Report or block filbertkm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View enwiki.json
{"enwiki_content_first":{"mappings":{"page":{"dynamic":"false","_all":{"enabled":false},"properties":{"all":{"type":"string","term_vector":"with_positions_offsets","similarity":"default","fields":{"plain":{"type":"string","term_vector":"with_positions_offsets","similarity":"default","analyzer":"plain","search_analyzer":"plain_search","position_increment_gap":10}},"analyzer":"text","search_analyzer":"text_search","position_increment_gap":10},"all_near_match":{"type":"string","norms":{"enabled":false},"index_options":"freqs","similarity":"default","fields":{"asciifolding":{"type":"string","norms":{"enabled":false},"index_options":"freqs","similarity":"default","analyzer":"near_match_asciifolding","position_increment_gap":10}},"analyzer":"near_match","position_increment_gap":10},"auxiliary_text":{"type":"string","term_vector":"with_positions_offsets","similarity":"default","fields":{"plain":{"type":"string","term_vector":"with_positions_offsets","similarity":"default","analyzer":"plain","search_analyzer":"plain_
View gist:22d98b6df5c245ee99f8a2e0110eeff1
{"enwiki_content_first":{"mappings":{"page":{"dynamic":"false","_all":{"enabled":false},"properties":{"all":{"type":"string","term_vector":"with_positions_offsets","similarity":"default","fields":{"plain":{"type":"string","term_vector":"with_positions_offsets","similarity":"default","analyzer":"plain","search_analyzer":"plain_search","position_increment_gap":10}},"analyzer":"text","search_analyzer":"text_search","position_increment_gap":10},"all_near_match":{"type":"string","norms":{"enabled":false},"index_options":"freqs","similarity":"default","fields":{"asciifolding":{"type":"string","norms":{"enabled":false},"index_options":"freqs","similarity":"default","analyzer":"near_match_asciifolding","position_increment_gap":10}},"analyzer":"near_match","position_increment_gap":10},"auxiliary_text":{"type":"string","term_vector":"with_positions_offsets","similarity":"default","fields":{"plain":{"type":"string","term_vector":"with_positions_offsets","similarity":"default","analyzer":"plain","search_analyzer":"plain_
View gist:a99355fb91e3e099b28a
Uncaught TypeError: Cannot read property 'id' of undefined
(anonymous function) @ airlock.bundle-0ec4ca10a970193d94dbfd1ab560bdad.js:formatted:3094
e @ airlock.bundle-0ec4ca10a970193d94dbfd1ab560bdad.js:formatted:3093
e @ airlock.bundle-0ec4ca10a970193d94dbfd1ab560bdad.js:formatted:3084
e @ airlock.bundle-0ec4ca10a970193d94dbfd1ab560bdad.js:formatted:3201
e @ airlock.bundle-0ec4ca10a970193d94dbfd1ab560bdad.js:formatted:3170
e @ airlock.bundle-0ec4ca10a970193d94dbfd1ab560bdad.js:formatted:3071
(anonymous function) @ airlock.bundle-0ec4ca10a970193d94dbfd1ab560bdad.js:formatted:4905
(anonymous function) @ airlock.bundle-0ec4ca10a970193d94dbfd1ab560bdad.js:formatted:4904
p @ airlock.bundle-0ec4ca10a970193d94dbfd1ab560bdad.js:formatted:4880
View points.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@filbertkm
filbertkm / gist:3fef89d16f4ae384af1e
Last active Feb 11, 2016
number of museums per country
View gist:3fef89d16f4ae384af1e
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?isoCode (count(*) as ?count) WHERE {
?place wdt:P31/wdt:P279* wd:Q33506 .
?place wdt:P17 ?country .
?country wdt:P297 ?isoCode
}
View gist:3f850865afbd2777a2cf
MariaDB [enwiki_p]> select * from wbc_entity_usage where eu_page_id = 6046882;
+-----------+--------------+-----------+------------+----------------+
| eu_row_id | eu_entity_id | eu_aspect | eu_page_id | eu_touched |
+-----------+--------------+-----------+------------+----------------+
| 9113895 | Q6467890 | T | 6046882 | 20160123103100 |
| 11826516 | Q6467890 | X | 6046882 | 20160123103100 |
+-----------+--------------+-----------+------------+----------------+
@filbertkm
filbertkm / gist:364e52f028e65b314d86
Created Jan 23, 2016
leduc county - no sidebar links
View gist:364e52f028e65b314d86
<!--
NewPP limit report
Parsed by mw1236
Cached time: 20160123045939
Cache expiry: 2592000
Dynamic content: false
CPU time usage: 0.452 seconds
Real time usage: 0.568 seconds
Preprocessor visited node count: 4439/1000000
Preprocessor generated node count: 0/1500000
View gist:c1e14a3fbda62fd5db88
post login
* action=login
* lgname=Bot
* lgpassword=Password
array (
'login' =>
array (
'result' => 'NeedToken',
View gist:bde651ed1e3f71402035
2016-01-20 18:09:16 cirrusSearchElasticaWrite Q14475 clientSideTimeout= method=sendData arguments=array(3) cluster=default createdAt=1452822217 errorCount=1 retryCount=0 (id=139253,timestamp=20160115014337) t=593 good
Notice: Unable to unserialize: [a:7:{s:17:"clientSideTimeout";N;s:6:"method";s:8:"sendData";s:9:"arguments";a:3:{i:0;s:7:"content";i:1;a:10:{i:0;O:15:"Elastica\Script":5:{s:24:"]. Unexpected end of buffer during unserialization. in /var/www/wiki/w/includes/jobqueue/JobQueueDB.php on line 803
Fatal error: Invalid operand type was used: cannot perform this operation with arrays in /var/www/wiki/w/extensions/CirrusSearch/includes/Job/ElasticaWrite.php on line 45
View life2.json
{
"description": "full_text search for 'life'",
"path": "wikidatawiki_content\/page\/_search",
"params": {
"timeout": "20s"
},
"query": {
"_source": [
"id",
"title",
You can’t perform that action at this time.