From 9c818fb5bb062512c40e566fa8e6fff501393239 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 28 Mar 2016 02:47:40 +0200 Subject: [PATCH] Initial commit --- 01.txt | 19 +++++++++++++++++++ 02.txt | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ home.tmpl | 45 +++++++++++++++++++++++++++++++++++++++++++++ migrate.sh | 21 +++++++++++++++++++++ 4 files changed, 139 insertions(+) create mode 100644 01.txt create mode 100644 02.txt create mode 100644 home.tmpl create mode 100755 migrate.sh diff --git a/01.txt b/01.txt new file mode 100644 index 0000000..643ce59 --- /dev/null +++ b/01.txt @@ -0,0 +1,19 @@ +node-jsonwebtoken-promisified.git +node-gulp-named-log.git +node-promisify-simple-callback.git +node-combined-stream2.git +node-promise-while-loop.git +node-random-number-csprng.git +node-promise-task-queue.git +node-bhttp.git +node-bluebird-tap-error.git +node-get-exchange-rates.git +node-authored.git +node-ia-headers.git +node-yaorm.git +node-form-data2.git +node-form-fix-array.git +node-stream-length.git +node-cdx.git +node-bitmask-flags.git +node-ia.git \ No newline at end of file diff --git a/02.txt b/02.txt new file mode 100644 index 0000000..05574f5 --- /dev/null +++ b/02.txt @@ -0,0 +1,54 @@ +scrypt-for-humans.git +express-promise-router-bugcase.git +projectlist.git +fancyshelf.git +through2-sink.git +hma-proxy-parse.git +openNG.git +circd-node.git +redonate.git +pastebin-scrape.git +filething.git +radium.git +image-disc.git +crytoteam.git +cphp.git +Nexus.git +wpcom-to-jekyll.git +vpslist.git +zippydoc.git +crytobooks.git +tahoe-s3.git +nzbspider.git +cryto-status.git +circd.git +pytahoe.git +jsde.git +main.git +python-docs.git +box.git +cryto-site.git +todo.git +pyLSA.git +4chandownloader.git +jamendoparser.git +hypervm-migrate.git +pysfx.git +multiloggy.git +anonnews2.git +catarc.git +crytolearn.git +openmedia.git +tahoe-tools.git +nodecontrol.git +crytowhois.git +resolv.git +multipaste.git +emailparser.git +webshots.git +pyreactor.git +scraperscript.git +scantools.git +lighttpdparse.git +beautifulsoup.git +gmhost.git \ No newline at end of file diff --git a/home.tmpl b/home.tmpl new file mode 100644 index 0000000..e65f39f --- /dev/null +++ b/home.tmpl @@ -0,0 +1,45 @@ + +{{template "base/head" .}} +
+
+
+
+

+ Cryto GIT +

+

+ A free Git repository hosting service from the Cryto Coding Collective. +

+
+
+
+
+
+

+ Getting started +

+

+ Simply register an account! While no further verification is needed, we will remove any accounts or repositories that abuse this service. +

+

+ Is this free? +

+

+ Yes. However, we expect you to use it for open-source and non-commercial projects only. This also applies to private repositories. +

+
+
+

+ Migrating old repositories +

+

+ If you registered for the old Gitolite-based Git server, please send an e-mail to admin@cryto.net, to have your old repositories migrated to the new server. +

+

+ Note that you will have to slightly change your remote URLs, and that you must still have access to the SSH keypair that you signed up with. +

+
+
+
+{{template "base/footer" .}} + diff --git a/migrate.sh b/migrate.sh new file mode 100755 index 0000000..be9a7d7 --- /dev/null +++ b/migrate.sh @@ -0,0 +1,21 @@ +HOSTNAME="git.cryto.net" +BASEPATH="/home/git/old-repositories/projects/joepie91" + +OWNER_ID="$1" +CSRF=`cat ./cookies.txt | grep _csrf | cut -f 7` + +while read REPO; do + REPONAME=`echo "$REPO" | sed "s/\.git\$//"` + curl "https://$HOSTNAME/repo/migrate" \ + -b "./cookies.txt" \ + -H 'origin: null' \ + -H 'content-type: application/x-www-form-urlencoded' \ + -H "authority: $HOSTNAME" \ + --data "_csrf=$CSRF" \ + --data-urlencode "clone_addr=$BASEPATH/$REPO" \ + --data-urlencode "uid=$OWNER_ID" \ + --data-urlencode "auth_username=" \ + --data-urlencode "auth_password=" \ + --data-urlencode "repo_name=$REPONAME" \ + --data-urlencode "description=Automatically migrated from Gitolite" +done \ No newline at end of file