Skip to content

Instantly share code, notes, and snippets.

@cp16net
cp16net / homer.pl
Last active January 3, 2016 06:58
Irssi script to send a random Homer quote to the active channel or query window you have.
# Homer random quote script for IRSSI
#
# This just sends a random Homer quote to the active channel or query window.
#
# Usage:
# /homer
#
# That is all.
use strict;
@cp16net
cp16net / bender.pl
Created January 14, 2014 21:01
Irssi script to send a random bender quote to the active channel or query window you have.
# Bender random quote script for IRSSI
#
# This just sends a random bender quote to the active channel or query window.
#
# Usage:
# /bender
#
# That is all.
use strict;
@prebenlm
prebenlm / .A how to display Irssi-hilights in OS X Notification Center.md
Last active August 12, 2019 08:54
Guide: how to make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier

Irssi in Mac OS X Notification Center

Mou icon

Overview

This guide will explain how you can make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier.

We will also explain how the process can be automatically started each time you log in to your Mac and ensure the connection to the server is kept alive.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 8, 2024 07:49
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@eevee
eevee / hlscroll.pl
Created April 13, 2012 03:49
scroll to next/prev hilighted line in irssi
use strict;
use Irssi qw(command_bind MSGLEVEL_HILIGHT);
use vars qw($VERSION %IRSSI);
# Recommended key bindings: alt+pgup, alt+pgdown:
# /bind meta2-5;3~ /scrollback prev
# /bind meta2-6;3~ /scrollback next
$VERSION = '0.02';
%IRSSI = (
@vishvananda
vishvananda / rc.sh
Created September 23, 2011 13:39 — forked from anonymous/gist:1237339
function git_branch {
git branch --no-color 2> /dev/null | egrep '^\*' | sed -e 's/^* //'
}
function git_dirty {
# only tracks modifications, not unknown files needing adds
if [ -z "`git status -s | awk '{print $1}' | grep '[ADMTU]'`" ] ; then
return 1
else
return 0