Skip to content

Instantly share code, notes, and snippets.

@PiRXlv
PiRXlv / eParaksts liberator.user.js
Created June 6, 2023 14:12
Tampermonkey script to liberate eParaksts password field
// ==UserScript==
// @name eParaksts liberator
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove stupid fieldChanged script which doesn't allow pasting password
// @author PiRXlv
// @match https://eidas.eparaksts.lv/trustedx-authserver/eparaksts-idp/signatureConsent.xhtml*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant none
// ==/UserScript==
@PiRXlv
PiRXlv / git-checkout-pr
Created January 30, 2017 13:31 — forked from mandrizzle/git-checkout-pr
Easily checkout pull requests locally from Atlassian Bitbucket Server (Stash)
#!/bin/sh
# Usage: `git checkout-pr <pull-request-id>`
#
# Make this file executable and place in a $PATH directory
# The name of the file is important. It has to be named `git-checkout-pr` for the usage to be `git checkout-pr`
# Every pull request on stash has 2 branches. One is called `merge` which is a branch that is merged with its destination.
# The other is `from` which is the unmodified revision that was pushed. This script checks out the merge branch.
# If you want to checkout the pr that is not pre-merged with it's destination, change all occurances of `merge` to `from`