Skip to content

Instantly share code, notes, and snippets.

View pszucs's full-sized avatar

Peter Szucs pszucs

View GitHub Profile
@pszucs
pszucs / subl-handler
Last active December 12, 2019 17:11
Adding subl// handlers Ignition error page links to Sublime Text 3
Based on
- https://github.com/toch/subl-handler
- https://askubuntu.com/questions/250847/sublime-text-url-handler-for-ubuntu
A link to a file on an Ignition error page looks like this:
subl://open?url=file://%2Fvar%2Fwww%2Fprojects%2Froutes%2Fweb.php&line=439
Create the following installer somewhere in your home folder (this script uses $HOME/bin), then make it executable and run it:
/usr/lib/python3/dist-packages/ulauncher/main.py:8: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
2019-07-11 11:20:44,252 | INFO | ulauncher: main() | Ulauncher version 5.3.0~beta1
2019-07-11 11:20:44,252 | INFO | ulauncher: main() | Extension API version 2.0.0
2019-07-11 11:20:44,253 | INFO | ulauncher: main() | GTK+ 3.22.30
2019-07-11 11:20:44,253 | INFO | ulauncher: main() | Is Wayland: False
2019-07-11 11:20:44,253 | INFO | ulauncher: main() | Wayland compatibility: off
2019-07-11 11:20:44,270 | DEBUG | ulauncher.ui.windows.Builder: __init__() | consider using a pythonic name instead of design name 'input-box'
2019-07-11 11:20:44,272 | DEBUG | ulauncher.ui.windows.Builder: do_connect() | connect builder by name 'ulauncher_window','destroy', 'on_destroy'
2019-07-11 11:20:44,272 | DEBUG | ulauncher.ui.windows.Builder: do_connect() | connect builder by name 'ula
@pszucs
pszucs / PayByStripeCept.php
Created February 1, 2017 12:35
Testing Stripe payment (checkout) using Codeception
<?php
/**
* Codeception acceptance test for testing Stripe payments (Checkout)
*
* NB: I'm using lowercase variable for the Actor object ($i) instead of $I
*/
// replace these values
$initialPage = '';