Skip to content

Instantly share code, notes, and snippets.

@Spikeophant
Spikeophant / gist:9c4c1843d113e7a0fd8dc379ae857edd
Created November 22, 2023 16:45
add irssi timeout to autovoice.pl
sub voicem {
my ($channel_rec, @nicks) = @_;
if (is_auto($channel_rec)) {
for my $nick_rec (@nicks) {
unless (is_bad($channel_rec, $nick_rec)
or $nick_rec->{voice}) {
if (get_voiceops() or
!($nick_rec->{op} or $nick_rec->{halfop})) {
my $nick_text = $nick_rec->{nick};
# Introduce a delay before voicing
@Spikeophant
Spikeophant / gist:8cb5da3cb52e4761f3770332322541e6
Created November 4, 2022 01:03
Tutorial for Regex Statement
# Tutorial for Regex statement
Introductory paragraph (replace this with your text)
## Summary
I will explain each piece of this regex which can identify an email address /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/
We'll start with the first characters here, ^ matches the position at the start of the string.
([a-z0-9_\.-]+) is the first capture group.
This group matches the group between one and unlimited times giving back as necessary, considered greedy. The group matches as follows:
@Spikeophant
Spikeophant / keybase.md
Created October 23, 2018 17:27
keybase.md

Keybase proof

I hereby claim:

  • I am spikeophant on github.
  • I am spikeophant (https://keybase.io/spikeophant) on keybase.
  • I have a public key ASC9X3C3rQYbFi3IXYHphAJ54dpxmCk8m3991_0yD7U03wo

To claim this, I am signing this object: