Skip to content

Instantly share code, notes, and snippets.

View danyill's full-sized avatar
🎯
Every day, I strive to make a modest improvement to the world

danyill

🎯
Every day, I strive to make a modest improvement to the world
  • 19:47 (UTC +12:00)
View GitHub Profile
@danyill
danyill / stacktrace.txt
Created March 11, 2019 08:23
Asciidoctor 2.0.0.rc1
21:21 $ asciidoctor -q --trace Setting_Guide.adoc
Traceback (most recent call last):
71: from /usr/local/bin/asciidoctor:23:in `<main>'
70: from /usr/local/bin/asciidoctor:23:in `load'
69: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/bin/asciidoctor:15:in `<top (required)>'
68: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor/cli/invoker.rb:109:in `invoke!'
67: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor/cli/invoker.rb:109:in `each'
66: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor/cli/invoker.rb:126:in `block in invoke!'
65: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor.rb:1530:in `convert_file'
64: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor.rb:1530:in `open'
@danyill
danyill / Antora-tests.adoc
Created December 18, 2018 06:52
Antora tests 1
885 passing (1m)
8 failing
1) cli
     should generate site to fs destination when playbook file is passed to generate command:
   Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/antora/packages/cli/test/cli-test.js)
2) cli
     cache directory
@danyill
danyill / notes.adoc
Created December 18, 2018 06:51
contributing.adoc issue with Antora

Testing contributing.adoc for Antora:

docker run -it ubuntu:cosmic bash

Within the container:

apt update && apt install -y wget git && wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
@danyill
danyill / batch-api.txt
Created November 20, 2018 21:15
Batch API
https://kokako.cc/w/api.php?action=parsoid-batch&batch=[{"action":"imageinfo","filename":"Script_step2b.png","page":"Modelling_GXP_Parallels_in_PowerFactory","txopts":{"width":1200}}]
{
"parsoid-batch": [
{
"width": 1804,
"height": 770,
"size": 268694,
"mediatype": "BITMAP",
"mime": "image/png",
@danyill
danyill / debug-mediawiki.log
Created November 20, 2018 21:09
partial log from root@b18bd4c9d8a9:/var/log/mediawiki#
-0', true)
#20 /var/www/html/w/includes/Message.php(1290): MessageCache->get('editnotice-0', true, Object(LanguageEn))
#21 /var/www/html/w/includes/Message.php(982): Message->fetchMessage()
#22 /var/www/html/w/includes/Title.php(5052): Message->exists()
#23 /var/www/html/w/extensions/VisualEditor/includes/ApiVisualEditor.php(382): Title->getEditNotices()
#24 /var/www/html/w/includes/api/ApiMain.php(1579): ApiVisualEditor->execute()
#25 /var/www/html/w/includes/api/ApiMain.php(535): ApiMain->executeAction()
#26 /var/www/html/w/includes/api/ApiMain.php(506): ApiMain->executeActionWithErrorHandling()
#27 /var/www/html/w/api.php(94): ApiMain->execute()
#28 {main}
@danyill
danyill / log.txt
Created November 20, 2018 20:57
web server log for request
web_1 | 166.65.189.100 - - [21/Nov/2018:09:56:34 +1300] "GET /w/api.php?action=visualeditor&format=json&paction=metadata&page=Modelling_GXP_Parallels_in_PowerFactory&uselang=en&oldid=26916 HTTP/1.1" 200 1462 "https://kokako.cc/wiki/Modelling_GXP_Parallels_in_PowerFactory?veaction=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36"
@danyill
danyill / gist:13cee7020cf9eaab07140a0b12ec486d
Last active November 20, 2018 20:15
api query with width
https://kokako.cc/w/api.php?action=query&titles=File:Script_step2b.png&prop=imageinfo&iiprop=url&iiurlwidth=1200
{
"batchcomplete": "",
"query": {
"normalized": [
{
"from": "File:Script_step2b.png",
"to": "File:Script step2b.png"
}
@danyill
danyill / parsoid_request_log.txt
Created November 20, 2018 20:09
parsoid request with correct domain
in/parse.js --config ./config.yaml --domain web --trace apirequest|1200px]]' | bi
[ApiRequest] | #1 Starting HTTP request: {"method":"GET","followRedirect":true,"uri":"http://web/w/api.php","qs":{"format":"json","action":"query","meta":"siteinfo","siprop":"namespaces|namespacealiases|magicwords|functionhooks|extensiontags|general|interwikimap|languages|languagevariants|protocols|specialpagealiases|defaultoptions|variables","rawcontinue":1},"timeout":40000,"agent":{"_events":{},"_eventsCount":1,"defaultPort":80,"protocol":"http:","options":{"maxSockets":15,"connectTimeout":5000,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":15,"maxFreeSockets":256},"headers":{"X-Request-ID":null,"User-Agent":"Parsoid/0.9.0","Connection":"close"},"strictSSL":true}
[ApiRequest] | #1 Received HTTP 200, 71547 bytes
Error in ParsoidLogger._defaultTracerBackend: TypeError: Converting circular structure to JSON
[ApiRequest] | #2 Received HTTP 200, 6896 bytes
[Api
@danyill
danyill / api_query.txt
Created November 20, 2018 20:07
api query
{
"batchcomplete": "",
"query": {
"normalized": [
{
"from": "File:Script_step2b.png",
"to": "File:Script step2b.png"
}
],
"pages": {
@danyill
danyill / config.yaml
Created November 20, 2018 20:04
parsoid configuration
root@9f85ddc6532d:/var/lib/parsoid# cat config.yaml
# Number of worker processes to spawn.
# Set to 0 to run everything in a single process without clustering.
# Use 'ncpu' to run as many workers as there are CPU units
num_workers: 0
worker_heartbeat_timeout: 300000
logging:
level: info