Skip to content

Instantly share code, notes, and snippets.

View baskerville's full-sized avatar

Bastien Dejean baskerville

View GitHub Profile
@baskerville
baskerville / triad_gen.py
Created November 21, 2011 14:13
Triadic Color Scheme Generation
#! /usr/bin/python
import sys
from grapefruit import Color
BRIGHT_LUM = 80
DARK_LUM = 60
def main():
args = sys.argv[1:]
@baskerville
baskerville / zagrc5.diff
Created January 29, 2012 10:25
zathura girara aur pkgbuild patch
47a48
> install -D -m664 zathurarc.5.rst "$pkgdir/usr/share/doc/$pkgname/zathurarc.5.rst"
@baskerville
baskerville / zatgir_rst2man.diff
Created February 2, 2012 13:13
zathura-girara-git python-docutils optional dependency support patch
--- PKGBUILD 2012-01-29 12:14:48.000000000 +0100
+++ PKGBUILD_20120202_164637 2012-02-02 16:49:36.620003579 +0100
@@ -1,7 +1,7 @@
#Contributor: karnath <karnathtorjian@gmail.com>
pkgname=zathura-girara-git
pkgver=20111211
-pkgrel=3
+pkgrel=4
pkgdesc="Vim like document viewer"
arch=('i686' 'x86_64')
@baskerville
baskerville / dwb_hg_pkgbuild.diff
Created February 7, 2012 11:40
dwb-hg PKGBUILD Cleanup Patch
--- PKGBUILD 2012-02-06 12:48:15.000000000 +0100
+++ PKGBUILD_OK 2012-02-07 12:30:48.804453842 +0100
@@ -17,19 +17,20 @@
build() {
cd "$srcdir"
- if [ -d "${hgrepo}" ]; then
- cd $hgrepo
+ if [ -d "$hgrepo" ]; then
+ cd "$hgrepo"
@baskerville
baskerville / compton-git_manpath.diff
Created February 27, 2012 17:58
compton man page path change fix
--- PKGBUILD 2011-12-28 21:08:00.000000000 +0100
+++ PKGBUILD_20120227_185228 2012-02-27 18:52:28.779269953 +0100
@@ -1,7 +1,7 @@
# Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
pkgname=compton-git
-pkgver=20111228
+pkgver=20120227
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana)"
@baskerville
baskerville / tint2_notdock_wintype.diff
Created March 21, 2012 19:47
Tint2 Patch to Avoid the Dock Window Type Being Applied to the Panel
--- panel.c 2012-03-21 20:40:41.646064585 +0100
+++ panel_nodock.c 2012-03-21 20:41:29.623473226 +0100
@@ -426,11 +426,11 @@
}
// Dock
- long val = server.atom._NET_WM_WINDOW_TYPE_DOCK;
- XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_WINDOW_TYPE, XA_ATOM, 32, PropModeReplace, (unsigned char *) &val, 1);
+ /* long val = server.atom._NET_WM_WINDOW_TYPE_DOCK; */
+ /* XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_WINDOW_TYPE, XA_ATOM, 32, PropModeReplace, (unsigned char *) &val, 1); */
@baskerville
baskerville / PKGBUILD
Created April 21, 2012 13:03
gngeo 0.8 bare PKGBUILD
# Maintainer: baskerville <baskerville a lavabit o com>
pkgname=gngeo-bare
_pkgname=gngeo
pkgver=0.8
pkgrel=1
pkgdesc="A CLI Neo Geo Emulator"
url="http://gngeo.googlecode.com"
license="custom"
depends=('zlib' 'sdl')
@baskerville
baskerville / stderred-git-pkgbuild-patch.diff
Created May 9, 2012 11:37
stderred-git PKGBUILD patch
--- PKGBUILD 2011-12-19 15:54:48.000000000 +0100
+++ PKGBUILD_20120509_133348 2012-05-09 13:33:48.860573954 +0200
@@ -1,6 +1,6 @@
# Maintainer: AJ Ashton <aj.ashton@gmail.com>
pkgname=stderred-git
-pkgver=20111219
+pkgver=20120509
pkgrel=1
pkgdesc="Library to make STDERR output red."
arch=('i686' 'x86_64')
@baskerville
baskerville / typo_fix-urxvt_perls.diff
Created September 15, 2012 09:45
Fix urxvt-perls Missing Parenthesis
diff -ru a/clipboard b/clipboard
--- a/clipboard 2012-09-15 11:43:37.469335127 +0200
+++ b/clipboard 2012-09-15 11:43:40.972722481 +0200
@@ -34,7 +34,7 @@
$self->{copy_cmd} = $self->x_resource('clipboard.copycmd') || 'xsel -ib';
$self->{paste_cmd} = $self->x_resource('clipboard.pastecmd') || 'xsel -ob';
- if ($self->x_resource('clipboard.autocopy' eq 'true') {
+ if ($self->x_resource('clipboard.autocopy' eq 'true')) {
$self->enable(sel_grab => \&sel_grab);
@baskerville
baskerville / PKGBUILD
Created April 14, 2013 19:48
libicns
# Maintainer: Andy Kluger <gmail: evilgnome>
# Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Bastien Dejean <baskerville@lavabit.com>
pkgname=libicns
pkgver=0.8.1
pkgrel=2
pkgdesc='Library for manipulating Mac OS X icon files'