This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awful.key({ modkey }, "g", | |
function () | |
awful.prompt.run({ prompt = "Go to Nth: " }, | |
promptbox[mouse.screen].widget, | |
function (n) | |
local c = awful.tag.selected():clients()[tonumber(n)] | |
client.focus = c | |
c:raise() | |
end) | |
end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adopted from Han Boetes. | |
set -g visual-bell on | |
set -g default-command zsh | |
set -g status-right "#(uptime|awk '{print $11}') #(date)" | |
# Statusbar properties. | |
set -g display-time 3000 | |
set -g status-bg black |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interactive("readable", "Readable bookmarklet", | |
"find-alternate-url", | |
$browser_object = "javascript:(function(){_readableOptions={'text_font':'Verdana,%20Geneva,%20sans-serif','text_font_monospace':'quote(Courier%20New),%20Courier,%20monospace','text_font_header':'quote(Times%20New%20Roman),%20Times,%20serif','text_size':'16px','text_line_height':'1.5','box_width':'80%','color_text':'#282828','color_background':'#F5F5F5','color_links':'#0000FF','text_align':'normal','base':'blueprint','custom_css':''};if(document.getElementsByTagName('body').length>0);else{return;}if(window.$readable){if(window.$readable.bookmarkletTimer){return;}}else{window.$readable={};}window.$readable.bookmarkletTimer=true;window.$readable.options=_readableOptions;if(window.$readable.bookmarkletClicked){window.$readable.bookmarkletClicked();return;}_readableScript=document.createElement('script');_readableScript.setAttribute('src','http://readable-static.tastefulwords.com/target.js?rand='+encodeURIComponent(Math.r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>Teh Default Layout</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<meta name="generator" content="GNU Emacs 23.0.60.1"> | |
<style type="text/css"> | |
/* reset.css */ | |
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, im |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 134523 2011-08-05 07:55:30Z juergen $ | |
# Maintainer: Juergen Hoetzel <[email protected]> | |
# Contributor: Renchi Raju <[email protected]> | |
pkgname=emacs-athena | |
pkgver=23.3a | |
pkgrel=1 | |
pkgdesc="The Emacs Editor, with Athena widget toolkit" | |
arch=(i686 x86_64) | |
url="http://www.gnu.org/software/emacs/emacs.html" | |
license=('GPL') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
. /etc/rc.conf | |
. /etc/rc.d/functions | |
#change this. too bad emacs daemon can't really work in mutli-user mode. for now. | |
USERNAME=volh | |
DESC="Run the emacs daemon." | |
NAME=emacs | |
#change this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SessionManager < Sinatra::Base | |
use Rack::Session::Memcache, | |
:key => 'customsessionkey', | |
:memcache_server => 'a.b.c.d:11211', | |
:cookie_only => false, | |
:secure => true, | |
:secret => 'secretpassphrase' | |
get '/cookies/set' do | |
# Newly set cookie points to the same session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# GENERAL OPTIONS | |
# | |
[options] | |
HoldPkg = pacman glibc | |
SyncFirst = pacman | |
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u | |
#XferCommand = /usr/bin/curl %u > %o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CAMLprim value mlzmq_version(value unit) | |
{ | |
CAMLparam1(unit); | |
int major, minor, patch; | |
zmq_version(&major, &minor, &patch); | |
CAMLlocal1( result ); | |
result = caml_alloc(3, 0); | |
Store_field( result, 0, Val_int major ); |