Skip to content

Instantly share code, notes, and snippets.

@ss1978
ss1978 / request.sh
Created January 30, 2012 22:10
Adfilter snippet for uzbl-browser
#!/bin/sh
#
# Adfilter snippet for uzbl, by Sandor Sipos (2012)
#
# Licence: BSD
#
# Installation:
# 1. Save this script to scripts dir
# 2. Use your polipo forbidden file.
# 3. in $XDG_CONFIG_HOME/uzbl/config add request_handler script like:
@ss1978
ss1978 / FXAutoPtr.h.diff
Created July 15, 2011 08:47
FXAutoPtr.h patch for FOX toolkit 1.7, to provide capability of returning FXAutoPtr stuff from methods.
--- FXAutoPtr.h 2011-04-13 02:13:56.000000000 +0200
+++ /tmp/FXAutoPtr.h 2011-07-14 21:08:28.400223296 +0200
@@ -23,6 +23,20 @@
namespace FX {
+/**
+ * A wrapper class to provide FXAutoPtr with reference semantics.
+ * For example, an FXAutoPtr can be assigned (or constructed from)
+ * the result of a function which returns an FXAutoPtr by value.