Skip to content

Instantly share code, notes, and snippets.

function jj-latest-description --description "Get latest non-empty commit description and bookmarks"
jj log -r 'latest(ancestors(@, 10) ~ (empty()~merges()))' \
--quiet --no-pager --no-graph --ignore-working-copy --color always \
-T "surround('(', ')', separate(' ', \
self.local_bookmarks(), \
coalesce(self.description().first_line(), '...'), \
self.change_id().shortest(5)\
))" 2>/dev/null
end
@tonyfinn
tonyfinn / PKGBUILD
Created January 8, 2020 23:03
mopidy-mpris
pkgname=mopidy-mpris
pkgver=3.0.1
pkgrel=1
pkgdesc="Mopidy extension for controlling Mopidy through the MPRIS D-Bus interface"
arch=('any')
url="http://www.mopidy.com"
license=('APACHE')
depends=(
'mopidy>=3.0'
'python-pykka>=2.0'
@tonyfinn
tonyfinn / PKGBUILD
Created December 29, 2019 23:03
mopidy-podcast
# Maintainer: Marcin (CTRL) Wieczorek <marcin@marcin.co>
# Contributor: bjo@nord-west.org
pkgname=mopidy-podcast
_pypiname=Mopidy-Podcast
pkgver=3.0.0
pkgrel=1
pkgdesc="Mopidy extension for searching and browsing podcasts."
arch=('any')
url="https://github.com/tkem/mopidy-podcast"
@tonyfinn
tonyfinn / PKGBUILD
Created December 29, 2019 23:01
mopidy-podcast-itunes PKGBUILD
# Maintainer: Tony Finn <aur at tonyfinn dot com>
# Contributor: scsnow54@gmail.co
pkgname=mopidy-podcast-itunes
_pypiname=Mopidy-Podcast-iTunes
pkgver=3.0.0
pkgrel=1
pkgdesc="Mopidy-Podcast extension for searching and browsing podcasts on the iTunes Store"
arch=('any')
url="https://github.com/tkem/mopidy-podcast-itunes"
@tonyfinn
tonyfinn / Cargo.toml
Last active June 18, 2018 22:46
Piston Mouse Issues on Intel HD 630
[package]
name = "mouseonly"
version = "0.1.0"
authors = ["Tony"]
[[bin]]
name = "mouseonly"
[dependencies]
rand = "0.4.2"
@tonyfinn
tonyfinn / main.rs
Created January 9, 2018 19:48
Lazy Loaded prevented by unexpectedly long lifetime
use std::collections::HashMap;
struct MyResult {
data: u32
}
impl MyResult {
fn new(input: &String) -> MyResult {
let mut sum = 0u32;
// Assume this was an expensive calculation
@tonyfinn
tonyfinn / .vimrc
Created November 30, 2011 15:08
My vimrc
" Add filetype dependent plugins
filetype plugin on
filetype plugin indent on
" Easier to type
let mapleader=","
" General junk
set modelines=0
set encoding=utf-8