A Dashing widget that displays all currently open merge requests for a GitLab group. Based off of the widget: GitHub Organization Open Pull Requests by dragonai.
The only dependency is gitlab.
Add it to Dashing's Gemfile:
| class Dashing.JenkinsBuildView extends Dashing.Widget | |
| ready: -> | |
| # This is fired when the widget is done being rendered | |
| onData: (data) -> | |
| # Handle incoming data | |
| # You can access the html node of this widget with `@node` | |
| # Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in. |
A Dashing widget that displays all currently open merge requests for a GitLab group. Based off of the widget: GitHub Organization Open Pull Requests by dragonai.
The only dependency is gitlab.
Add it to Dashing's Gemfile:
| #!/bin/bash | |
| # git-last | |
| # | |
| # Shows the last n commits in one line format. | |
| # | |
| # msnider$ git last 2 | |
| # msnider$ 5c95c39 Refactor foo() | |
| # msnider$ 9875103 Bump version to 1.3 | |
| re='^[0-9]+$' |
| # The following will check for a .venv file, and if it exists, | |
| # automagically switch to working on that virtualenv. | |
| # | |
| # https://justin.abrah.ms/python/virtualenv_wrapper_helper.html | |
| source /usr/bin/virtualenvwrapper.sh | |
| function prompt() | |
| { | |
| if [ "$PWD" != "$MYOLDPWD" ]; then | |
| MYOLDPWD="$PWD" |
| from concurrent.futures import ThreadPoolExecutor | |
| from itertools import chain | |
| from peewee import Model | |
| executor = ThreadPoolExecutor(max_workers=5) | |
| def _query_on_executor_meta(name, bases, attrs, executor): | |
| """A metaclass that adds async database methods to a `peewee.Model`. |
| #!/bin/bash | |
| # git-branch-diff | |
| # | |
| # Shows the difference in commits between two branches. If only | |
| # one branch is given, the other defaults to HEAD. | |
| # | |
| # msnider$ | |
| if [[ $# -eq 1 ]] ; then | |
| git log --oneline HEAD..$1 |
| #!/bin/sh | |
| # i3-get-window-criteria - Get criteria for use with i3 config commands | |
| # To use, run this script, then click on a window. | |
| # Output is in the format: [<name>=<value> <name>=<value> ...] | |
| # Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion, | |
| # quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`, | |
| # reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807 |