Skip to content

Instantly share code, notes, and snippets.

View TingPing's full-sized avatar
💭
I may be slow to respond.

Patrick TingPing

💭
I may be slow to respond.
View GitHub Profile
use strict;
use warnings;
use Glib;
use Gtk2 -init;
##############################
# Copyright 2012, Colby Vanden Toorn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
import hexchat
__module_name__ = 'SASL workaround'
__module_author__ = 'TingPing'
__module_version__ = '0'
__module_description__ = 'Workaround for sasl on inspircd servers'
# This bug has been fixed already in git, but this will work on 2.9.6
def auth_cb(word, word_eol, userdata):
if ',' in word[1]:
--- configure.in.orig 2013-08-09 18:07:38 -0400
+++ configure.in 2013-08-09 18:13:15 -0400
@@ -665,6 +665,11 @@
CXXFLAGS="$CXXFLAGS -Zc:wchar_t-"
AC_DEFINE(_CRT_SECURE_NO_WARNINGS)
AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS)
+ elif test "$_CC_MAJOR_VERSION" = "17"; then
+ _CC_SUITE=11
+ CXXFLAGS="$CXXFLAGS -Zc:wchar_t-"
+ AC_DEFINE(_CRT_SECURE_NO_WARNINGS)
import hexchat
__module_name__ = "whois'd to front"
__module_author__ = 'TingPing'
__module_version__ = '0'
__module_description__ = "Print when you have been whois'd in the front"
def notice_cb(word, word_eol, userdata):
if 'did a /whois on you' in word_eol[3]:
hexchat.find_context().set()
@TingPing
TingPing / enchant-applespell.patch
Last active August 29, 2015 14:01
Patches for building enchant on OS X
--- a/configure.in (revision 30591)
+++ b/configure.in (working copy)
@@ -33,4 +33,5 @@
AC_PROG_CC
AC_PROG_CPP
+AC_PROG_OBJC
AC_PROG_INSTALL
AC_PROG_LN_S
--- a/src/applespell/Makefile.am 2010-04-01 22:53:37.000000000 +0200
+++ b/src/applespell/Makefile.am 2012-01-11 22:42:13.000000000 +0100
@TingPing
TingPing / gnotification-gntp.patch
Created June 19, 2014 21:59
[PATCH] Add GNTP (Growl) backend to GLib's GNotification
From a15e1698e89aae090abf73cf9794d9d70aa87f67 Mon Sep 17 00:00:00 2001
From: TingPing <tingping@tingping.se>
Date: Thu, 19 Jun 2014 17:57:13 -0400
Subject: [PATCH] Add GNTP (Growl) backend to GNotification
This only supports the basic features but is cross-platform
---
gio/Makefile.am | 1 +
gio/ggntpnotificationbackend.c | 308 +++++++++++++++++++++++++++++++++++++++++
gio/giomodule.c | 2 +
From 58ee10baa0273d9bf88963d97d71d94d2fdf9a78 Mon Sep 17 00:00:00 2001
From: TingPing <tingping@tingping.se>
Date: Tue, 12 Aug 2014 00:45:41 -0400
Subject: [PATCH] Fix coretext warning
---
src/libvaladoc/charts/simplechartfactory.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libvaladoc/charts/simplechartfactory.vala b/src/libvaladoc/charts/simplechartfactory.vala
# desktop.m4
#
# serial 4
dnl DESKTOP_VALIDATE
dnl Validates and installs desktop files.
dnl
dnl To use:
dnl 1. Call DESKTOP_FILE in configure.ac to check for the desktop-file-utils tools.
dnl 2. Add @DESKTOP_FILE_RULES@ to a Makefile.am to substitute the make rules.

Keybase proof

I hereby claim:

  • I am TingPing on github.
  • I am tingping (https://keybase.io/tingping) on keybase.
  • I have a public key whose fingerprint is 108B F221 2A05 1F4A 72B1 8448 B3C7 CE21 0DE7 6DFC

To claim this, I am signing this object: