Skip to content

Instantly share code, notes, and snippets.

View sigma's full-sized avatar
🏠
Working from Home

Yann Hodique sigma

🏠
Working from Home
View GitHub Profile
@sigma
sigma / _gnus.el
Created April 9, 2012 18:30
#emacs #gnus rename "noname" #gpg signature to "signature.asc"
(defadvice mml2015-sign (after mml2015-sign-rename (cont) act)
(save-excursion
(search-backward "Content-Type: application/pgp-signature")
(goto-char (point-at-eol))
(insert "; name=\"signature.asc\"")))
@sigma
sigma / *scratch*.el
Created April 8, 2012 19:55
#emacs remove top-level #gnus topic
(defadvice gnus-topic-insert-topic-line
(around gnus-hide-top-topic (name visiblep shownp level entries &optional unread) act)
(unless (string= name "Gnus")
(let ((level (1- level)))
ad-do-it)))
@sigma
sigma / tee_exec.sh
Created April 8, 2012 19:27
tee_exec.sh
#!/bin/zsh
tempdir=$(mktemp -d) || exit
in_pipe="$tempdir/in_pipe"
out_pipe="$tempdir/out_pipe"
pipe="$1"
shift
function cleanUp() {
rm -rf -- "$tempdir"
@sigma
sigma / pcsc_md.h
Created April 3, 2012 14:08
pcsc_md.h (emacs bug)
/*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
@sigma
sigma / scratch.el
Created February 22, 2012 11:02
package install for emacs23
(let ((buffer (url-retrieve-synchronously
"https://gist.github.com/sigma/1884092/raw/9014a209f2fc5c8d31762d13ec495d9e92a412de/package-install.el")))
(save-excursion
(set-buffer buffer)
(goto-char (point-min))
(re-search-forward "^$" nil 'move)
(let ((user-init-file (expand-file-name "~/.emacs")))
(eval-region (point) (point-max)))
(kill-buffer (current-buffer))))
@sigma
sigma / package-install.el
Created February 22, 2012 10:42
marmalade package-install
;;; package-install.el --- auto-installer for package.el
;; Copyright (C) 2007, 2008 Tom Tromey <[email protected]>
;; Copyright (C) 2007, 2012 Yann Hodique <[email protected]>
;; This file is not (yet) part of GNU Emacs.
;; However, it is distributed under the same license.
;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@sigma
sigma / package.el
Created February 22, 2012 10:23
emacs23 package bootstraping code
;;; package.el --- Simple package system for Emacs
;; Copyright (C) 2007-2011 Free Software Foundation, Inc.
;; Author: Tom Tromey <[email protected]>
;; Created: 10 Mar 2007
;; Version: 0.9
;; Keywords: tools
;; This file is part of GNU Emacs.
@sigma
sigma / .local.sh
Created December 8, 2011 18:03
.local.hashes
#!/usr/bin/zsh
# I organize my projects by vcs / project
# e.g. Projects/git/magit or Projects/hg/marmalade
# every project gets its named directory: ~magit or ~marmalade
for proj in ~/Projects/*/*(-/); do
hash -d ${proj##*/}=${proj};
done
@sigma
sigma / _Xdefaults.txt
Created November 29, 2011 19:00
.Xdefaults excerpt (xft stuff)
Xft.dpi: 96
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.antialias: true
Xft.rgba: rgb
Xft.lcdfilter: lcddefault
@sigma
sigma / vbulletintags.user.js
Created October 10, 2011 18:00
vBulletinTags greasemonkey script
// ==UserScript==
// @name vBulletinTags
// @namespace http://www.hodique.info/gmscripts
// @include http://www.denofangels.com/forums/showthread.php?*
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js
// @require https://raw.github.com/gist/1273800/1a880db0bc3abceb2c0e2841b72babceefa0fa17/jquerytagsinput.js
// @require https://raw.github.com/gist/1275791/1972165bbe3bbffc16025483f3ea850d1a780f56/jquery.purr.js
// @resource tagImg https://developer.mozilla.org/skins/mdn/Transitional/img/icons/tag-tiny.png
// ==/UserScript==