From b9650fdd82c4ace8f26a7d97a7f1d0ab02ee2447 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 9 Jan 2020 07:29:59 +0000 Subject: doc: switch bogomips.org to yhbt.net 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). --- archive/rfmig.rb | 32 -------------------------------- archive/slrnpull.conf | 2 +- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 archive/rfmig.rb (limited to 'archive') 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 = '' -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!(/(]*>)/i, "#$1#{meta}") - data.sub!(/(]*>)/i, - "#{$1}Redirecting to #{url} ...
") - 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 -- cgit v1.2.3-24-ge0c7