Skip to content

Instantly share code, notes, and snippets.

{
"permissions": {
"profile_edit": {
"first_name": true,
"last_name": true,
"photo": true,
"birthday": true,
"email": true,
"email_public": true,
"contact_instructions": true,

Keybase proof

I hereby claim:

  • I am e1senh0rn on github.
  • I am eisenhorn (https://keybase.io/eisenhorn) on keybase.
  • I have a public key ASASgggMdVpkTuYx3riW5MtGS2j5sztr48fLu8aBuPu3Dwo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am e1senh0rn on github.
* I am eisenhorn (https://keybase.io/eisenhorn) on keybase.
* I have a public key whose fingerprint is EF8E 740A 1E98 00F7 CD86 E9B9 A10C 30B4 6DD6 8058
To claim this, I am signing this object:
~/Projects/tmp/cool-old-term git:(osx*) (ruby-2.1.2)» make
cd konsole-qml-plugin/ && ( test -e Makefile || /usr/local/opt/qt5/bin/qmake /Users/eisenhorn/Projects/tmp/cool-old-term/konsole-qml-plugin/konsole-qml-plugin.pro -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Cellar/qt5/5.3.1/mkspecs/macx-clang -I. -I/usr/local/Cellar/qt5/5.3.1/lib/QtQuick.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.1/lib/QtQml.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.1/lib/Q
@e1senh0rn
e1senh0rn / gist:fc3bb3a3277bb6b29cc2
Last active August 29, 2015 14:04
cool-old-term compilation
cd konsole-qml-plugin/ && ( test -e Makefile || /usr/local/opt/qt5/bin/qmake /Users/eisenhorn/Projects/tmp/cool-old-term/konsole-qml-plugin/konsole-qml-plugin.pro -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Cellar/qt5/5.3.1/mkspecs/macx-clang -I. -I/usr/local/Cellar/qt5/5.3.1/lib/QtQuick.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.1/lib/QtQml.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.1/lib/QtWidgets.framework/Versions/5/Headers -I/usr/local/Cellar/q
# percona-agent
description "Percona Agent"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
respawn
the_12_month_raw_target
http://monosnap.com/image/6l1P0z7gMa89iVdUEpIXkWVKTthtK5

I'm using static documentation with swagger-ui.

Having dist folder from swagger-ui, I have added folder "/docs" and changed in index.html url: "/docs/index.json".

I'm running it via python -m SimpleHTTPServer on port 8000 by default.

Without specifying 'basePath' as full url in resource listing swagger tries to load http://localhost/docs/mobile/version.json without respecting port. Setting basePath to http://localhost:8000/docs helps, but API documentation could be running on any port.

Because of this setting relative paths is much more preferred solution.

Link somewhere in text: FAQ

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod