Commit graph

264 commits

Author SHA1 Message Date
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
Bradley M. Kuhn
22a5359ecf Download videos code. 2014-08-15 09:27:28 -04:00
Bradley M. Kuhn
b691e872c9 First pass on creating a loop that will output data. 2014-08-14 17:10:53 -04:00
Bradley M. Kuhn
8d1b92ce21 Add arguments, use unicode, and make output dirs. 2014-08-14 17:10:40 -04:00
Bradley M. Kuhn
5c3b6e2f82 This much gets me logged into dc. 2014-08-14 16:40:12 -04:00
Bradley M. Kuhn
c7339f230d Getting started on video download script. 2014-08-14 16:26:45 -04:00
Bradley M. Kuhn
d47dbd0247 Use cwdiff. 2014-07-16 08:27:37 -04:00
Bradley M. Kuhn
a90ad4b134 Call my version of cwdiff. 2014-07-16 08:27:27 -04:00
Bradley M. Kuhn
091408e1c7 Use variable to call emacs rather than hard-coded. 2014-07-16 08:27:05 -04:00
Bradley M. Kuhn
73eeef81be Change where emacs is called from. 2014-07-16 08:26:56 -04:00
Bradley M. Kuhn
41126968f5 Correct percentage calculation. 2014-07-16 08:26:33 -04:00
Bradley M. Kuhn
73e8444e11 Downloaded this from: http://www-verimag.imag.fr/~moy/opendocument/oodiff 2014-05-06 15:44:51 -04:00
Bradley M. Kuhn
aee97c855d Make this error string a bit shorter. 2014-04-17 07:40:41 -04:00
Bradley M. Kuhn
598937cc06 Remove trap and exit at the end of the script. 2014-04-17 07:40:19 -04:00
Bradley M. Kuhn
ac1db134a3 Improve percentage output. 2014-04-03 18:56:49 -04:00
Bradley M. Kuhn
6012f6e78e Downloaded cwdiff from :
http://code.google.com/p/cj-overlay/source/browse/cwdiff?repo=evergreens
2014-04-03 18:56:39 -04:00
Bradley M. Kuhn
dad0a1776c Keep also a total in the date range, and do extra reporting based on that. 2014-03-25 11:22:44 -04:00
Bradley M. Kuhn
cb385f1cca Total should actually be against the folder entirely, not just the date. 2014-03-25 11:20:59 -04:00
Bradley M. Kuhn
3a291f7ac7 Fix output to properly display. 2014-03-25 11:20:46 -04:00