diff options
author | Eric Wong <bofh@yhbt.net> | 2020-01-09 07:29:59 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-09 08:19:44 +0000 |
commit | b9650fdd82c4ace8f26a7d97a7f1d0ab02ee2447 (patch) | |
tree | 78ad0cbfeb8beebfa0a06669462a20536ee2707d /archive | |
parent | 10055c1f4eb7b944e5cf0826e9cc7fd81cadd5af (diff) | |
download | rainbows-b9650fdd82c4ace8f26a7d97a7f1d0ab02ee2447.tar.gz |
bogomips.org is due to expire, soon, and I'm not willing to pay extortionists at Ethos Capital/PIR/ICANN to keep a .org. So it's at yhbt.net, for now... Identity is overrated. Tor users can use .onions and kick ICANN to the curb: torsocks w3m http://rainbows.ou63pmih66umazou.onion/ torsocks git clone http://ou63pmih66umazou.onion/rainbows.git/ torsocks w3m http://ou63pmih66umazou.onion/rainbows-public/ While we're at it, switch news.gmane.org => news.gmane.io (but I suspect that'll need to be resynched since our mail "List-Id:" header is changing).
Diffstat (limited to 'archive')
-rw-r--r-- | archive/rfmig.rb | 32 | ||||
-rw-r--r-- | archive/slrnpull.conf | 2 |
2 files changed, 1 insertions, 33 deletions
diff --git a/archive/rfmig.rb b/archive/rfmig.rb deleted file mode 100644 index a7d31e5..0000000 --- a/archive/rfmig.rb +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env ruby -require 'find' -require 'fileutils' -rfdir = 'rubyforge.org:/var/www/gforge-projects/rainbows/' -newbase = 'https://bogomips.org/rainbows/' -refresh = '<meta http-equiv="refresh" content="0; url=%s" />' -old = 'rf.old' -new = 'rf.new' -cmd = %W(rsync -av #{rfdir} #{old}/) -unless File.directory?(old) - system(*cmd) or abort "#{cmd.inspect} failed: #$?" -end - -Find.find(old) do |path| - path =~ /\.html\z/ or next - data = File.read(path) - tmp = path.split(%r{/}) - tmp.shift == old or abort "BUG" - dst = "#{new}/#{tmp.join('/')}" - - tmp[-1] = '' if tmp[-1] == "index.html" - url = "#{newbase}#{tmp.join('/')}" - meta = sprintf(refresh, url) - data.sub!(/(<head[^>]*>)/i, "#$1#{meta}") - data.sub!(/(<body[^>]*>)/i, - "#{$1}Redirecting to <a href=\"#{url}\">#{url}</a> ...<br/>") - FileUtils.mkdir_p(File.dirname(dst)) - File.open(dst, "w") { |fp| fp.write(data) } -end - -print "Verify results in #{new}/, then run:\n " -puts %W(rsync -av #{new}/ #{rfdir}).join(' ') diff --git a/archive/slrnpull.conf b/archive/slrnpull.conf index 9cf80ba..480cbec 100644 --- a/archive/slrnpull.conf +++ b/archive/slrnpull.conf @@ -1,4 +1,4 @@ # group_name max expire headers_only gmane.comp.lang.ruby.rainbows.general 1000000000 1000000000 0 -# usage: slrnpull -d $PWD -h news.gmane.org --no-post +# usage: slrnpull -d $PWD -h news.gmane.io --no-post |