Skip to content

Instantly share code, notes, and snippets.

Test gist - can I update this with a PUT to the Gist URL?
(defun sane-beginning-of-line ()
"Moves to beginning-of-line, skipping indent"
(interactive)
(move-beginning-of-line 1)
(skip-chars-forward " \t"))
#! /bin/zsh -f
zstyle ':completion:*' completer _expand _complete _ignored _match _correct _approximate _prefix
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' file-sort name
zstyle ':completion:*' group-name ''
zstyle ':completion:*' ignore-parents parent pwd
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}' '+m:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+r:|[._-]=** r:|=**' '+l:|=* r:|=*'
zstyle ':completion:*' max-errors 1
(defun ido-goto-symbol ()
"Will update the imenu index and then use ido to select a symbol to navigate to"
(interactive)
(imenu--make-index-alist)
(let ((name-and-pos '())
(symbol-names '()))
(flet ((addsymbols (symbol-list)
(when (listp symbol-list)
(dolist (symbol symbol-list)
(let ((name nil) (position nil))
[ 57%] Built target iris_kopete_automoc
[ 57%] Building CXX object kopete/protocols/jabber/libiris/CMakeFiles/iris_kopete.dir/iris_kopete_automoc.o
In file included from /home/bkudria/tmp/kdenetwork/kopete/protocols/jabber/libiris/iris/xmpp/xmpp-core/xmpp.h:35,
from /home/bkudria/tmp/kdenetwork-build/kopete/protocols/jabber/libiris/../../../../../kdenetwork/kopete/protocols/jabber/libiris/iris/xmpp/xmpp-im/im.h:28,
from /home/bkudria/tmp/kdenetwork-build/kopete/protocols/jabber/libiris/../../../../../kdenetwork/kopete/protocols/jabber/libiris/iris/xmpp/xmpp-im/xmpp_ibb.h:29,
from /home/bkudria/tmp/kdenetwork-build/kopete/protocols/jabber/libiris/moc_xmpp_ibb.cpp:10,
from /home/bkudria/tmp/kdenetwork-build/kopete/protocols/jabber/libiris/iris_kopete_automoc.cpp:4:
/home/bkudria/tmp/kdenetwork/kopete/protocols/jabber/libiris/iris/xmpp/xmpp-core/xmpp_clientstream.h:23:20: error: QtCrypto: No such file or directory
In file included from /home/bku
version 5
server_torrent_ports="tcp/6881:6999 udp/4444"
client_torrent_ports="default"
server_torrentdht_ports="udp/6881"
client_torrentdht_ports="default"
# Accept all client traffic on any interface
interface "eth0 wlan0 wlan1" world
if (!function_exists('get_called_class')) {
function get_called_class() {
$bt = debug_backtrace();
$lines = file($bt[1]['file']);
preg_match(
'/([a-zA-Z0-9\_]+)::'.$bt[1]['function'].'/',
$lines[$bt[1]['line']-1],
$matches
);
return $matches[1];
public static function makeIdentifier($string, $entity=null) {
$base_identifier = Model::sanitizeName($string);
if ($entity) {
$new_increment =
Kohana_ORM::factory($entity)
->select(new Kohana_Database_Expression('substring(identifier, -1) + 1 as new_increment'))
->regex('identifier', $base_identifier.'[1-9][0-9]*')
->orderby('new_increment', 'desc')
->limit(1)
->find();
(( ${+functions[vcs_info]} )) && vcs_info
autoload -Uz vcs_info
(( ${+functions[vcs_info]} )) && vcs_info
<?php
mb_internal_encoding("UTF-8");
mb_http_output("UTF-8");
iconv_set_encoding('input_encoding', 'UTF-8');
iconv_set_encoding('output_encoding', 'UTF-8');
iconv_set_encoding('internal_encoding', 'UTF-8');
$Database = mysql_connect('localhost', 'user', 'pass', true);