Skip to content

Instantly share code, notes, and snippets.

View MadeOfMagicAndWires's full-sized avatar
🗑️
Making a mess of things

Joost Bremmer MadeOfMagicAndWires

🗑️
Making a mess of things
  • Amsterdam
View GitHub Profile
@MadeOfMagicAndWires
MadeOfMagicAndWires / toggl_import.py
Last active June 1, 2020 05:00 — forked from khaeru/toggl_import.py
Toggl → Timewarrior import extension
#!/usr/bin/env python3
"""Toggl → Timewarrior import extension
© 2016 Paul Natsuo Kishimoto <mail@paul.kishimoto.name>
Licensed under the GNU GPL v3 or later.
Implements a Timewarrior extension (see
https://taskwarrior.org/docs/timewarrior/index.html) to import data from Toggl
(http://toggl.com).

List of Extra Changes

Besides making the PKGBUILD work for golang I added some small extra changes that aren't strictly necessary but nice:

  • Changed old maintainers to Contributors as per AUR submission rules
  • added conflict/provide 'cheat' in case someone wants to make a PKGBUILD for stable releases
  • added example configuration to package for reference

How to apply patch

@MadeOfMagicAndWires
MadeOfMagicAndWires / 0001-Add-tty-font-and-example-config-to-package.patch
Created October 17, 2019 15:48
add tty font and example config file to package
From 4f707c28d21817e72304ab03f635df361ef341d6 Mon Sep 17 00:00:00 2001
From: Joost Bremmer <contact@madeofmagicandwires.online>
Date: Thu, 17 Oct 2019 17:19:58 +0200
Subject: [PATCH] Add tty font and example config to package
---
.SRCINFO | 2 +-
PKGBUILD | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
@MadeOfMagicAndWires
MadeOfMagicAndWires / pomodoro-taskd
Created June 1, 2017 16:28
Setuptools entry point example
#!/usr/bin/python2
# EASY-INSTALL-ENTRY-SCRIPT: 'pomodorotasks==0.4','gui_scripts','pomodoro-taskd'
__requires__ = 'pomodorotasks==0.4'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
@MadeOfMagicAndWires
MadeOfMagicAndWires / timew.shutdown
Last active March 27, 2017 20:36
timew stop on shutdown
#!/bin/sh
#
# /usr/lib/systemd/system-shutdown/timew.shutdown
# Script to stop timew timers when the machine shuts down.
timew stop > /dev/null 2>&1
if [[ $? == 0 ]]; then
echo "Stopped timers."
fi
@MadeOfMagicAndWires
MadeOfMagicAndWires / PKGBUILD
Created January 27, 2017 19:59
python-discogs-client 2.2.1 PKGBUILD
# Maintainer: Guillaume Hayot <ghayot@postblue.info>
# Contributor: Arvedui <arvedui@posteo.de>
# Contributor: Marc Plano-Lesay <marc.planolesay@gmail.com>
pkgname=python-discogs-client
pkgver=2.2.0
pkgrel=2
pkgdesc="This is the official Discogs API client for Python. You can use it to query the Discogs music database for metadata on artists, releases, and more."
depends=('python' "python-requests" "python-oauthlib")
makedepends=('python-setuptools')
@MadeOfMagicAndWires
MadeOfMagicAndWires / Player.log
Created June 6, 2016 19:26
Squarecells Player.log using proprietary catalyst drivers.
Selecting FBConfig
GLX_FBCONFIG_ID=39
GLX_BUFFER_SIZE=32
GLX_DOUBLEBUFFER=1
GLX_RED_SIZE=8
GLX_GREEN_SIZE=8
GLX_BLUE_SIZE=8
GLX_ALPHA_SIZE=8
GLX_DEPTH_SIZE=24
From 1e5452bed9a0a6daf1c88532cceb59cca9d23655 Mon Sep 17 00:00:00 2001
From: Joost Bremmer <toost.b@gmail.com>
Date: Fri, 21 Aug 2015 03:26:41 +0200
Subject: [PATCH] Merge libtiff3 and libtiff4
Move relevant code from libtiff4 PKGBUILD to libtiff3 to avoid
messy and conflicting packages and dependency circles
Signed-off-by: Joost Bremmer <toost.b@gmail.com>
---
# Maintainer: Carlos Rivas <carl (d o t) rivas (a t) gmail (do t) com>
# Contributor: Joost Bremmer <toost dot b at gmail dot com>
pkgname=id3ed
pkgver=1.10.4
pkgrel=2
pkgdesc="Interactive command line ID3-Tag editor"
arch=('i686' 'x86_64' 'arm')
url="http://code.fluffytapeworm.com/projects/id3ed"
license=('GPL')
Desperately needs a package() function.
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Andrea Scarpino <bash.lnx@gmail.com>
# Contributor: Joost Bremmer <toost dot b at gmail dot com>
pkgname='id3tool'
pkgver='1.2a'
pkgrel='4'
pkgdesc='A command line editor for ID3 tags in MP3 files'