Skip to content

Instantly share code, notes, and snippets.

@cboulanger
cboulanger / err.log
Last active October 17, 2018 19:19
/var/log/onlyoffice/documentserver/docservice/err.log
[2018-10-17 19:08:42.174] [ERROR] nodeJS - postData error: docId = a102f950f78e4e8b6d61;url = http://hub.rechtswirklichkeit.de/onlydocuments/backend/track?key=a102f950f78e4e8b6d61;data = {"key":"a102f950f78e4e8b6d61","status":4,"actions":[{"type":0,"userid":"0fd2a470-8652-4612-a977-246787f385c0"}]}
Error: Error response: statusCode:301 ;body:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://hub.rechtswirklichkeit.de/onlydocuments/backend/track?key=a102f950f78e4e8b6d61">here</a>.</p>
<hr>
<address>Apache/2.4.10 (Debian) Server at hub.rechtswirklichkeit.de Port 80</address>
@cboulanger
cboulanger / humhub+onlyoffice.conf
Created October 17, 2018 22:31
Humhub/OnlyOffice configuration
ServerName hub.rechtswirklichkeit.de
ServerAdmin [email protected]
ProxyPreserveHost On
SetEnvIf Host "^(.*)$" THE_HOST=$1
RequestHeader setifempty X-Forwarded-Proto https
RequestHeader setifempty X-Forwarded-Host %{THE_HOST}e
ProxyAddHeaders Off
SSLProxyEngine on
@cboulanger
cboulanger / eventrecorder_tooltips.eventrecorder
Last active March 13, 2019 07:24
An simple qooxdoo eventrecorder script that demos how to use the recorder
# This is an evenrecorder script that scripts the recorder itself
config-set-mode presentation
assert-match-uri eventrecorder
info "Welcome to a simple demo of the event recorder. To start, please press on the red 'record' button."
await-event eventrecorder/record execute
widget-info button1 "Now press this button."
await-event button1 execute
widget-info button1/window/button2 "Please press this button now."
@cboulanger
cboulanger / macros-variables.widgetbrowser_recorder.eventrecorder
Last active March 13, 2019 07:47
Eventrecorder script demonstrating the use of macros and variables
assert-match-uri widgetbrowser_recorder
config-set-mode presentation
info "This demostrates the use of macros.."
wait 2000
FORM=Composite/Scroll/TabView/TabPage/Form/FormItems/GroupBox/Composite/Single
define fill-form
set-value $FORM/TextField $1
# website to test
assert-match-uri eventrecorder_tooltips
# player mode (test|presentation)
config-set-mode presentation
execute button1
assert-appeared button1/window
delay 859
execute button1/window/button2
delay 1
@cboulanger
cboulanger / empty.eventrecorder
Created March 13, 2019 07:36
An empty eventrecorder script for use in demos
# Write your first eventrecorder script
# type "set", "await", "execute" or "assert" to see commands
@cboulanger
cboulanger / gist:0c26a57d574408da177f7d945bd9f405
Created July 25, 2019 21:52
Unresolved use of <symbol> in qooxdoo packages with demo
cboulanger.eventrecorder.Recorder: [93,21] Unexpected termination when testing for unresolved symbols, node type ForOfStatement
cboulanger.eventrecorder.player.Abstract: [686,23] Unexpected termination when testing for unresolved symbols, node type ForOfStatement
qx.Promise: [6306,36] Unresolved use of symbol self ***
qx.bom.client.Runtime: [47,17] Unresolved use of symbol Packages ***
qx.bom.element.AnimationJs: [182,30] Unresolved use of symbol getComputedStyle ***
qx.dev.unit.Sinon: [3261,20] Unresolved use of symbol exception ***
qx.dev.unit.Sinon: [4900,93] Unresolved use of symbol self ***
qx.event.message.Bus: [265,20] Unexpected termination when testing for unresolved symbols, node type DoWhileStatement **
qx.ui.mobile.container.Carousel: [667,30] Unresolved use of symbol getComputedStyle **
qx.util.Base64: [223,17] Unresolved use of symbol atob **
@cboulanger
cboulanger / greeter_macro.eventrecorder
Last active August 15, 2019 15:48
A test import for the event recorder
define greet "Greet politely"
info "Hello $1, nice to meet you"
end
@cboulanger
cboulanger / use_import.eventrecorder
Last active August 15, 2019 15:55
A script that imports another event recorder script
# testing imports
config-set-mode presentation
# this clears the import cache and imports https://gist.github.com/cboulanger/dee7efecbb9a2e4268c15395849e30e5
# which contains the "greet" macro
clear-imports
import gist:dee7efecbb9a2e4268c15395849e30e5
greet "Qooxdoo-User"
wait 2000
@cboulanger
cboulanger / gist:4f5865c23e390d066a0582fbae5065ff
Created July 8, 2020 12:46
Convert all ssh private key files in a directory to PuTTY (Windows SSH client) format
find .ssh -type f -exec grep -l 'BEGIN OPENSSH PRIVATE KEY' {} \; | xargs -I {} puttygen {} -o {}.ppk