Skip to content

Instantly share code, notes, and snippets.

aouoae
This is an authenticated test
#!/usr/bin/env ruby
# Made by Pieter de Bie <frimmirf@gmail.com>
# Based on a "Pastie" task by someone
require "tempfile"
GIST_URL = 'http://gist.github.com/gists'
GIST_LOGIN_URL = 'https://gist.github.com/session'
USERNAME = "pieter"
TOKEN = "SweetTokenPower"
From 7d1e8ed8677f2db5aaf6972b304c93fb87dad3de Mon Sep 17 00:00:00 2001
From: Pieter de Bie <pdebie@ai.rug.nl>
Date: Thu, 31 Jul 2008 03:01:37 +0200
Subject: [PATCH] Simplify image processing code
---
script/html.rb | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/script/html.rb b/script/html.rb
From 7ce7b74b6eb4fb79821a38b01daac21c75da673f Mon Sep 17 00:00:00 2001
From: Pieter de Bie <pdebie@ai.rug.nl>
Date: Thu, 31 Jul 2008 03:38:30 +0200
Subject: [PATCH] Simplify more code in the HTML parsing
---
script/html.rb | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/script/html.rb b/script/html.rb
From 1127f6fc32dede25d74e4d959d3dc6ab18c8adc3 Mon Sep 17 00:00:00 2001
From: Pieter de Bie <pdebie@ai.rug.nl>
Date: Thu, 31 Jul 2008 03:38:30 +0200
Subject: [PATCH] Simplify more code in the HTML parsing
---
script/html.rb | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/script/html.rb b/script/html.rb
if (!prefixcmp(argv[i], "--basis=")) {
char* new = xmalloc(strlen(argv[i]) - 8 + 2);
new[0] = '^';
strcpy(new + 1, argv[i] + 8);
argv[i] = new;
}
Vienna:git pieter$ git push repo master
Counting objects: 46, done.
Compressing objects: 100% (35/35), done.
Writing objects: 100% (35/35), 5.67 KiB, done.
Total 35 (delta 25), reused 0 (delta 0)
error: unable to create temporary sha1 filename ./objects/6d: Permission denied
fatal: failed to write object
error: unpack failed: unpacker exited with error code
To repo.or.cz:/srv/git/git/pieter.git