Commit graph

282 commits

Author SHA1 Message Date
Bradley M. Kuhn
99f2fda7be Ignore __pycache__ subdirectory. 2025-07-22 13:43:42 -07:00
Bradley M. Kuhn
0c53f82635 Some hacks on top of an upstream example script I found. 2025-07-22 13:43:01 -07:00
Bradley M. Kuhn
9940de3bde Support multiple servers and various other notification improvements 2025-07-22 13:18:00 -07:00
Bradley M. Kuhn
0e3f0fe882 Add skip list supoprt & encode_phrase() call for To: line 2025-07-22 13:16:46 -07:00
Bradley M. Kuhn
279ce453ba Remove strange characters from Message-Ids to assure better matching 2025-07-22 13:15:33 -07:00
Bradley M. Kuhn
0237e90fd6 Avoid numbers that others commonly use. 2025-07-22 13:14:10 -07:00
Bradley M. Kuhn
ec22febde3 Begin work to GetOpt::Long (just started, obviously 😆) 2025-07-22 13:11:39 -07:00
Bradley M. Kuhn
aafd95a24b Add option to check file if network is shoddy.
Avoids hitting network on bad connections.
2025-07-22 13:10:37 -07:00
Bradley M. Kuhn
c523eb5d3b Time span in hours 2024-03-01 05:25:05 -08:00
Bradley M. Kuhn
872e29b9bc Really, unlink is destructive, don't do it by default! 2022-12-01 18:02:44 -08:00
Bradley M. Kuhn
101baf1938 Use an array, not a reference to an array for @tix. 2022-09-19 13:50:42 -07:00
Bradley M. Kuhn
05b86946fa Program to pick random Oregon megabucks tickets without overlap 2022-09-19 13:48:43 -07:00
Bradley M. Kuhn
21d222a49d First draft of script to verify links in Markdown file work
The goal of this script is to go through a Markdown file and verify
the links all work.  Currently, only relative path links to files in
the same directory are tested.
2021-10-16 17:21:12 -07:00
Bradley M. Kuhn
1c5b337d12 Count only audio, show both unique & overall downloads
Also, list the top IP numbers.
2019-11-12 12:04:39 -08:00
Bradley M. Kuhn
7b90af0611 Support Spam Assassin; begin debug of memory leak.
I added support for spam assassin, but when I tried to run the script as in
on my mail server, it eats up 512MB/ram just processing the first 50 emails
or so.  I can't figure out why that is.
2018-04-25 13:09:12 -07:00
Bradley M. Kuhn
f96f9242c7 Supporter full name in To: line.
This requires Unicode.
2016-01-18 10:42:42 -08:00
Bradley M. Kuhn
0aad420434 Change my default time-zone.
This really should be a configuration option.
2016-01-18 10:42:23 -08:00
Bradley M. Kuhn
701d035b9c Fail if agent information is not available. 2016-01-18 10:41:58 -08:00
Bradley M. Kuhn
5faa4af640 Note Gitorious gone. 2016-01-18 10:41:36 -08:00
Bradley M. Kuhn
8b78e44bc4 Create recent alert file if not exists.
die()'ing here didn't make much sense.  If the file isn't there, we
don't have any recent alerts, so an empty file and returning and empty
hash fine.

Note this doesn't test if the directory is empty.
2016-01-18 10:31:40 -08:00
Bradley M. Kuhn
0d4f6aae9e Various changes done back in September. 2016-01-17 18:23:33 -08:00
Bradley M. Kuhn
accca5f36f Brought in file from ~ backup files, as it was on 2011-10-03 2016-01-17 18:22:25 -08:00
Bradley M. Kuhn
3edd6ec631 Brought in file from ~ backup files, as it was on 2011-09-14 2016-01-17 18:22:25 -08:00
Bradley M. Kuhn
e914bcd6ac Brought in file from ~ backup files, as it was on 2011-01-21 2016-01-17 18:22:25 -08:00
Bradley M. Kuhn
6352d93107 Brought in file from ~ backup files, as it was on 2010-06-25 2016-01-17 18:21:25 -08:00
Bradley M. Kuhn
8852595327 Convert to Python 3 2015-12-21 23:57:33 -08:00
Bradley M. Kuhn
ff1d7beba2 Add license to the program. 2015-12-10 20:56:28 -08:00
Bradley M. Kuhn
b84c38ea70 Version as appeared on backup. 2015-12-10 20:52:54 -08:00
Bradley M. Kuhn
40897c2b49 Add additional HR setting. 2015-09-08 10:10:44 -07:00
Bradley M. Kuhn
a4fcf48629 Remove debuggins statement. 2015-09-08 10:10:33 -07:00
Bradley M. Kuhn
4a66d940c9 Don't put $ago setting in cached output.
That changes ever time.

Also, increase time.
2015-09-08 10:10:11 -07:00
Bradley M. Kuhn
c2bbeaf556 Error messages for conky output. 2015-09-07 19:25:30 -07:00
Bradley M. Kuhn
7c8934af26 Finish working version of this script. 2015-09-07 19:22:54 -07:00
Bradley M. Kuhn
b830e9cb7f Initial version of the script. 2015-09-07 16:28:55 -07:00
Bradley M. Kuhn
d94bd5176e Only count feed URLs. 2014-12-31 13:31:13 -05:00
Bradley M. Kuhn
3c7779dbf1 Support UNIQUE_TOTAL count, counting each IP once. 2014-12-31 13:30:44 -05:00
Bradley M. Kuhn
e574258868 feed-count.plx is based on oggcast-count.plx 2014-12-31 13:25:22 -05:00
Bradley M. Kuhn
7265718f0a Don't die automatically on lines that don't match.
Instead, move on and don't count anything that isn't a GET.
2014-12-31 13:24:41 -05:00
Bradley M. Kuhn
8ab83b84e9 Final adjustments to video download script. 2014-09-05 16:36:12 -04:00
Tom Marble
634924e002 Correct licensing info per author's instructions.
I discussed the licensing of this file with Tom Marble, and he agreed in
IRC that LGPLv2.1-or-later is the proper license.

  <bkuhn> tmarble: in 2013-01 you sent me some scripts for ods2xls
  <bkuhn> you mention they're based on ssconv
  <bkuhn> but they don't have license info
  <bkuhn> I was putting it into a public repository and then figured I should
          ask you first.  [11:45]
  <tmarble> oh my.. I will look  [11:46]
  <bkuhn> tmarble: if you figure it out, I can commit the files and you can add
          a license.  [11:47]
  <bkuhn> the lib is lgpl'd, that's marked
  <bkuhn> (although you didn't mark your copyright notice if you canged it)
  <tmarble>
            http://www.linuxjournal.com/content/convert-spreadsheets-csv-files-python-and-pyuno
                                                                        [11:57]
  <tmarble> bkuhn: sorry this was sort of a small, hacky script and didn't get
            the "full treatment"  [11:58]
  <tmarble> clearly it should be LGPLv2+
  <bkuhn> tmarble: do you recall if you modified the library as well as the
          script?  [12:07]
  <bkuhn> I see you put this in the lib:
  <bkuhn> #   PyODConverter (Python OpenDocument Converter) v1.0.0 - 2008-05-05
  <bkuhn> #   Copyright (C) 2008 Mirko Nasato <mirko@artofsolving.com>
  <bkuhn> #   Licensed under the GNU LGPL v2.1 - or any later version.
  <bkuhn> #   http://www.gnu.org/licenses/lgpl-2.1.html
  <bkuhn> and no copyright notices in the main program file
  <bkuhn> can you tell me what it should be?
  <tmarble> bkuhn: IIRC I did not modify ooutils  [12:09]
  <tmarble> bkuhn: yeah, sorry about that.. it's not even in VCS  [12:10]
  <bkuhn> It's ok.
  <bkuhn> I'm putting it public in my small hacks directory.
  <tmarble> bkuhn: as I mentioned before let's stick with LGPLv2.1+
  <bkuhn> As I use it all the time.
  <bkuhn> and someone else might find it useful
  <bkuhn> I believe one has a moral duty to share all software. :)
  <tmarble> please feel free to adjust the headers!
  <bkuhn> tmarble: may I quote this conversation  in the Git log?
  <tmarble> bkuhn: I loved karen's citing your quote "You may say I'm a dreamer,
            but I'm not the only one."  [12:11]
 <tmarble> bkuhn: yes
2014-09-05 16:34:50 -04:00
Free Software Foundation
918f5776da GNU Lesser General Public License Version 2.1
This is as was downloaded from:
    http://www.gnu.org/licenses/lgpl-2.1.txt
2014-09-05 16:32:28 -04:00
Tom Marble
b3da77a17d Updated version to generate xls instead of xls.
This was emailed to bkuhn by tmarble in the email identified below:

  Date: Fri, 04 Jan 2013 14:38:49 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: w/debug ods2xls.py
  Message-ID: <50E73DD9.4010602@info9.net>
2014-09-05 16:28:58 -04:00
Tom Marble
e35ab803e9 Update as emailed to bkuhn by tmarble in this email:
Date: Thu, 03 Jan 2013 21:55:08 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: Re: ods2xlsx.py
  Message-ID: <50E6529C.7040009@info9.net>
2014-09-05 16:26:44 -04:00
Bradley M. Kuhn
94f194d622 Add a README.md file. 2014-09-05 16:24:25 -04:00
Tom Marble
5906f15f4b ods2xls.py, sent to bkuhn by tmarble in this email:
Date: Thu, 03 Jan 2013 18:57:19 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: ods2xlsx.py

Tom did not indicate the license of this file or ssconv.py, so I'm
waiting for him to clarify.

Tom mentioned this usage information in the email:

You will need:

These examples are adapted from:
http://www.linuxjournal.com/node/1007788
http://www.linuxjournal.com/node/1007797
  ^ I saved as ssconv.py and can share with you if you like

NOTE: you MUST save and exit LibreOffice first!
NOTE: you must save both *.py in the same directory.

I could not figure out the filter for XLSX as for XLS:
http://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Filter_Options

Usage:

$ ./ods2xlsx.py ~/Documents/sample.ods ~/Documents/sample2.ods
/home/tmarble/Documents/sample.ods => /home/tmarble/Documents/sample.xls
Warning: -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager is deprecated.  Use --accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager instead.
Warning: -norestore is deprecated.  Use --norestore instead.
Warning: -nofirststartwizard is deprecated.  Use --nofirststartwizard instead.
Warning: -nologo is deprecated.  Use --nologo instead.
Warning: -headless is deprecated.  Use --headless instead.
/home/tmarble/Documents/sample2.ods => /home/tmarble/Documents/sample2.xls
$
2014-09-04 11:41:06 -04:00
Tom Marble
93dc7d542a ooutils.py sent to bkuhn by tmarble in this email:
Date: Thu, 03 Jan 2013 18:57:19 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: ods2xlsx.py
  Message-ID: <50E628EF.7080207@info9.net>

Tom indicates it was adapted from Mirko Nasato's code.  I don't know if
Tom adapted it himself.  The license therefore is clearly
LGPLv2.1-or-later, but Tom may also have copyrights here.  I've asked
him to add his copyright notice if he does.
2014-09-04 11:37:37 -04:00
Bradley M. Kuhn
316adb33df Mod should be based on the current count. 2014-08-15 10:19:26 -04:00
Bradley M. Kuhn
df5dc5c3cc Index by title instead of URL; mod to 10. 2014-08-15 10:19:10 -04:00
Bradley M. Kuhn
50c548b577 Make use of login redo. 2014-08-15 10:18:44 -04:00
Bradley M. Kuhn
9eeaac8cac Redo login and recover from past stops. 2014-08-15 10:18:10 -04:00