{"id":169,"date":"2013-01-04T07:46:50","date_gmt":"2013-01-04T06:46:50","guid":{"rendered":"http:\/\/www.dereckson.be\/blog\/?p=169"},"modified":"2015-03-27T10:24:01","modified_gmt":"2015-03-27T09:24:01","slug":"get-the-wikimedia-configuration-on-irc","status":"publish","type":"post","link":"https:\/\/www.dereckson.be\/blog\/2013\/01\/04\/get-the-wikimedia-configuration-on-irc\/","title":{"rendered":"Get the Wikimedia configuration on IRC"},"content":{"rendered":"<p>If you&#8217;re on Freenode #wikimedia-tech or #mediawiki, you can query the Wikimedia site configuration. This is an alternative <a title=\"InitialiseSettings.php\" href=\"http:\/\/noc.wikimedia.org\/conf\/highlight.php?file=InitialiseSettings.php\">to browse this 12 227 lines file<\/a>.<\/p>\n<p><strong>Usage: <\/strong>.config &lt;configuration variable&gt; &lt;local project&gt; [key&#8230;]<\/p>\n<blockquote><p>06:36:48 &lt; Dereckson&gt; .config wmgEnableLandingCheck<br \/>\n06:36:49 &lt;Daeghrefn&gt; false<\/p><\/blockquote>\n<p>If the configuration value is an array, you can dump it:<\/p>\n<blockquote><p>06:28:47 &lt;+Dereckson&gt; .config wgExtraNamespaces frwiki<br \/>\n06:28:48 &lt;Daeghrefn&gt; 100 =&gt; Portail \/ 101 =&gt; Discussion_Portail \/ 102 =&gt; Projet \/ 103 =&gt; Discussion_Projet \/ 104 =&gt; R\u00e9f\u00e9rence \/ 105 =&gt; Discussion_R\u00e9f\u00e9rence<\/p><\/blockquote>\n<p>Or you can append the key you want to fetch (as many subkeys as you want):<\/p>\n<blockquote><p>07:39:34 &lt;+Dereckson&gt; .config wgExtraNamespaces frwiki 104<br \/>\n07:39:36 &lt;Daeghrefn&gt; R\u00e9f\u00e9rence<\/p><\/blockquote>\n<p><strong>Source code:<\/strong> <a title=\"Nasqueron\/Wikimedia.tcl\" href=\"http:\/\/hg.dereckson.be\/viperserv\/src\/tip\/Nasqueron\/Wikimedia.tcl\">Wikimedia.tcl<\/a><\/p>\n<p><strong>Note:<\/strong> D\u00e6ghrefn has currently some bits of code allowing it to communicate with Gerrit and identi.ca. Bugzilla support is imminent. If you have any need of an IRC command to interact with these services, drop the idea and I will code you that.<\/p>\n<p><strong>I18n:<\/strong> TCL is a language full Unicode since April 1999 (version 8.1). Internally, it treats characters as UTF-16. From an user perspective, it reads and write UTF-8 by default. On the other hand, D\u00e6ghrefn is <a title=\"Eggdrop homepage\" href=\"http:\/\/www.eggheads.org\/\">an eggdrop<\/a>. The eggdrop performs an UTF-8 to ISO-8859-1 conversion of the partyline and the message queues. So we lost non ASCII chars. I recompiled it <a href=\"http:\/\/eggwiki.org\/Bugs\/Utf-8\">with an UTF-8 encoding instead<\/a>, but <a href=\"http:\/\/uptime.eggheads.org\/\">it&#8217;s a stable product<\/a>, so deployment will wait the server\/eggdrop crash.<\/p>\n<p><i>Update edit:\u00a0<\/i>the eggdrop name is now\u00a0D\u00e6ghrefn (2015-03-27).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re on Freenode #wikimedia-tech or #mediawiki, you can query the Wikimedia site configuration. This is an alternative to browse this 12 227 lines file. Usage: .config &lt;configuration variable&gt; &lt;local project&gt; [key&#8230;] 06:36:48 &lt; Dereckson&gt; .config wmgEnableLandingCheck 06:36:49 &lt;Daeghrefn&gt; false If the configuration value is an array, you can dump it: 06:28:47 &lt;+Dereckson&gt; .config wgExtraNamespaces [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[260,67,66,20,274],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-wikimedia","tag-daeghrefn","tag-eggdrop","tag-irc","tag-tcl","tag-wikimedia"],"_links":{"self":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":4,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":489,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/169\/revisions\/489"}],"wp:attachment":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}