Skip to content

Instantly share code, notes, and snippets.

View sebastianw's full-sized avatar

Sebastian Wiesinger sebastianw

View GitHub Profile
@dcreager
dcreager / version.py
Created February 10, 2010 20:30
Extract a setuptools version from the git repository
# -*- coding: utf-8 -*-
# Author: Douglas Creager <dcreager@dcreager.net>
# This file is placed into the public domain.
# Calculates the current version number. If possible, this is the
# output of “git describe”, modified to conform to the versioning
# scheme that setuptools uses. If “git describe” returns an error
# (most likely because we're in an unpacked copy of a release tarball,
# rather than in a git working copy), then we fall back on reading the
# contents of the RELEASE-VERSION file.
@rfc1459
rfc1459 / gnome-keyring-daemon
Created September 9, 2014 10:19
Stupid wrapper for gnome-keyring-daemon on MATE 1.8 and XFCE4
#!/usr/bin/env python
# Stupid workaround for a stupid problem: both MATE 1.8 and XFCE4 start
# gnome-keyring-daemon with *ALL* components enabled because gkd sets env
# vars through a GNOME-only DBus interface (org.gnome.SettingsDaemon.Setenv)
# This script wraps gkd and upon detection of the hardcoded command line
# replaces it with a saner one.
# Drop the script as "gnome-keyring-daemon" somewhere higher up in your PATH
# (possibly ~/bin or ~/.local/bin, depending on your profile)
@llimllib
llimllib / install.sh
Last active April 11, 2024 21:07
The script I use to set up a new mac just the way I like it
#!/usr/bin/env bash
# many settings from https://raw.githubusercontent.com/mathiasbynens/dotfiles/master/.macos
# many settings from https://raw.githubusercontent.com/thoughtbot/laptop/master/mac
# instructions on finding the default you've changed: https://pawelgrzybek.com/change-macos-user-preferences-via-command-line/
# previous install notes at:
# https://gist.github.com/llimllib/ee591266e05bd880629a4e7511a61bb3
# https://gist.github.com/llimllib/e864a92da94ceb1ef0da2e06fd1f8d70
# https://gist.github.com/llimllib/3fc4fefcfc0152dad8c58201246d8802
#
# this script's URL is: https://gist.github.com/llimllib/c4dd0a98a426022b0365d4c0a9090460