Skip to content

Instantly share code, notes, and snippets.

atomicules atomicules

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am atomicules on github.
  • I am atomicules (https://keybase.io/atomicules) on keybase.
  • I have a public key ASBni4NmxizXOetsZ-hSo_BsUcy1AgtbNdlY7YZT_8_9aAo

To claim this, I am signing this object:

@atomicules
atomicules / gist:32f17cf337b3da0f2661
Last active Aug 29, 2015
Microformats and nested h-cite question. Moved here: http://simp.ly/publish/MSD9YN
We couldn’t find that file to show.
@atomicules
atomicules / tw-13-2014-11-11.patch
Last active Dec 19, 2015
Patch for TW-13 in Taskwarrior
View tw-13-2014-11-11.patch
$ Patch for daylight savings time
--- src/recur.cpp.orig
+++ src/recur.cpp
@@ -215,6 +215,7 @@ ISO8601d getNextRecurrence (ISO8601d& current, std::string& period)
int m = current.month ();
int d = current.day ();
int y = current.year ();
+ ISO8601d recurrence_date;
// Some periods are difficult, because they can be vague.
@atomicules
atomicules / atom2rss.xsl
Last active Aug 29, 2015
My slight modification (as rev 2 of this gist) to the atom2rss.xsl file from here: https://kiza.eu/software/snownews/snowscripts/extensions/script/atom2rss/
View atom2rss.xsl
<?xml version="1.0"?>
<!-- Atom to RSS 1.0 Transformation, written by Rene Puls (rpuls@kcore.de) -->
<!-- Snownews filter command for this extension: "xsltproc /path/to/atom2rss -" -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
@atomicules
atomicules / config.h.patch
Created May 21, 2014
Patches for Snownews to add simplistic undo for "mark all read"
View config.h.patch
$NetBSD$
--- config.h.orig 2009-09-17 06:44:28.000000000 +0000
+++ config.h
@@ -61,6 +61,7 @@ struct newsitem {
struct newsdata {
struct feed *parent;
int readstatus; /* 0: unread, 1: read */
+ int prevreadstatus; /* 0: unread, 1: read */
char *title;
@atomicules
atomicules / TTYtter.pl
Last active Aug 29, 2015
Creating diff for TTYtter.pl as of version 2.1.0 (27 December 2012) and version 2.1.0 (14 Jan 2014)
View TTYtter.pl
#!/usr/bin/perl -s
#########################################################################
#
# TTYtter v2.1 (c)2007-2012 cameron kaiser (and contributors).
# all rights reserved.
# http://www.floodgap.com/software/ttytter/
#
# distributed under the floodgap free software license
# http://www.floodgap.com/software/ffsl/
#
View sic-1.1-remove-quit-join-messages.diff
diff --git a/sic.c b/sic.c
index d93c2ec..bc09eee 100644
--- a/sic.c
+++ b/sic.c
@@ -118,7 +118,7 @@ parsesrv(char *cmd) {
par = skip(cmd, ' ');
txt = skip(par, ':');
trim(par);
- if(!strcmp("PONG", cmd))
+ if(!strcmp("PONG", cmd) || !strcmp("QUIT", cmd) || !strcmp("JOIN", cmd))
@atomicules
atomicules / gist:5391599
Created Apr 15, 2013
An old half-finished Applescript where I was looking at automating a download of my pinboard bookmarks into Camino. Been quite a while since I used Camino - dated 2011.
View gist:5391599
-- pinboard username and password
property pbuser : ""
property pbpass : ""
--Download bookmarks via curl to desktop (because can use shortcut when selecting file for import via UI scripting)
do shell script ("cd ~/Desktop; curl https://" & pbuser & ":" & pbpass & "@pinboard.in/export/ -o pinboard.html")
--import bookmarks via UI scripting
tell application "System Events"
@atomicules
atomicules / snownews.patch
Created Mar 3, 2013
Small patch to snownews keybindings to provide more mutt like behaviour. Space does Enter in list view, but next page in reading view. You need to set appropriate user keybindings in conjunction with this patch.
View snownews.patch
---
interface.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/interface.c b/interface.c
index 6b28a51..78ca3c2 100644
--- a/interface.c
+++ b/interface.c
@@ -289,7 +289,7 @@ void UIDisplayItem (struct newsitem * current_item, struct feed * current_feed,
@atomicules
atomicules / gist:3487173
Created Aug 27, 2012
Diff file for patching and building STFL 0.22 on OSX 10.5.8 PPC
View gist:3487173
diff -crB stfl-0.22-orig/Makefile stfl-0.22/Makefile
*** stfl-0.22-orig/Makefile 2012-08-27 10:41:35.000000000 +0100
--- stfl-0.22/Makefile 2012-08-27 10:59:33.000000000 +0100
***************
*** 20,33 ****
include Makefile.cfg
- export CC = gcc -pthread
export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC
You can’t perform that action at this time.