This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building grouphug 1.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[WARNING] The POM for kvikshaug:pircbot-patched:jar:1.5.0 is missing, no dependency information available | |
[WARNING] The POM for kvikshaug:scatsd-client_2.8.1:jar:1.0 is missing, no dependency information available | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/profiles.c.orig 2011-08-23 20:26:34.000000000 +0200 | |
+++ b/src/profiles.c 2011-08-23 20:35:03.000000000 +0200 | |
@@ -204,14 +204,24 @@ | |
for (i = 0; i < ctx->nb_streams; i++) | |
{ | |
+#if LIBAVFORMAT_BUILD < 4621 | |
if (audio_stream == -1 && | |
ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) | |
+#else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- profiles.c.orig 2011-08-23 20:26:34.000000000 +0200 | |
+++ profiles.c 2011-08-23 20:27:40.000000000 +0200 | |
@@ -205,13 +205,13 @@ | |
for (i = 0; i < ctx->nb_streams; i++) | |
{ | |
if (audio_stream == -1 && | |
- ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) | |
+ ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) | |
{ | |
audio_stream = i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shredder ~ $ umask | |
0022 | |
shredder ~ $ sudo pip install django # random package, for illustration purposes | |
Downloading/unpacking django | |
Downloading Django-1.3.tar.gz (6.5Mb): 6.5Mb downloaded | |
Running setup.py egg_info for package django | |
Installing collected packages: django | |
Running setup.py install for django | |
changing mode of build/scripts-2.7/django-admin.py from 644 to 755 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/scala/no/kvikshaug/gh/modules/Tracking.scala b/src/main/scala/no/kvikshaug/gh/modules/Tracking.scala | |
index 9bb7a12..e120337 100644 | |
--- a/src/main/scala/no/kvikshaug/gh/modules/Tracking.scala | |
+++ b/src/main/scala/no/kvikshaug/gh/modules/Tracking.scala | |
@@ -169,13 +169,13 @@ class Tracking(moduleHandler: ModuleHandler) extends Actor with TriggerListener | |
bot.msg(i.channel, i.status) | |
items = items.filterNot(_ == i) | |
sqlHandler.delete("delete from " + dbName + " where trackingId=?;", List(i.id).asJava) | |
- bot.msg(i.channel, "Removing this one from my list. Now tracking " + items.size + " packages.") | |
+ bot.msg(i.channel, "Removing this one from my list. Now tracking " + listPackages(i.channel).size + " packages.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% aquote: quote environment with author | |
\def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em | |
\hbox{}\nobreak\hfil(#1)% | |
\parfillskip=0pt \finalhyphendemerits=0 \endgraf}} | |
\newsavebox\mybox | |
\newenvironment{aquote}[1] | |
{\savebox\mybox{#1}\begin{quote}} | |
{\signed{\usebox\mybox}\end{quote}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This file echoes a bunch of color codes to the | |
# terminal to demonstrate what's available. Each | |
# line is the color code of one forground color, | |
# out of 17 (default + 16 escapes), followed by a | |
# test use of that color on all nine background | |
# colors (default + 8 escapes). | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* a[ilow:ihigh] = v if v != NULL. | |
* del a[ilow:ihigh] if v == NULL. | |
* | |
* Special speed gimmick: when v is NULL and ihigh - ilow <= 8, it's | |
* guaranteed the call cannot fail. | |
*/ | |
static int | |
list_ass_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *v) | |
{ | |
/* Because [X]DECREF can recursively invoke list operations on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// originally from: http://sites.google.com/site/gson/gson-type-adapters-for-common-classes-1 | |
private static class DateTimeTypeConverter | |
implements JsonSerializer<DateTime>, JsonDeserializer<DateTime> { | |
public JsonElement serialize(DateTime src, Type srcType, JsonSerializationContext context) { | |
return new JsonPrimitive(src.toString()); | |
} | |
public DateTime deserialize(JsonElement json, Type type, JsonDeserializationContext context) | |
throws JsonParseException { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ java -cp .:$HOME/.m2/repository/com/google/code/gson/gson/1.4/gson-1.4.jar no.kvikshaug.gh.GithubPostReceiveHandler | |
GithubPayload{before='5aef35982fb2d34e9d9d4502f6ede1072793222d', repository=Repository{url='http://github.com/defunkt/github', name='github', description='You're lookin' at it.', watchers=5, forks=2, _private=0, owner=User{email='chris@ozmm.org', name='defunkt'}}, commits=[Commit{id='41a212ee83ca127e3c8cf465891ab7216a705f59', url='http://github.com/defunkt/github/commit/41a212ee83ca127e3c8cf465891ab7216a705f59', author=User{email='chris@ozmm.org', name='Chris Wanstrath'}, message='okay i give in', timestamp='2008-02-15T14:57:17-08:00', added=[filepath.rb]}, Commit{id='de8251ff97ee194a289832576287d6f8ad74e3d0', url='http://github.com/defunkt/github/commit/de8251ff97ee194a289832576287d6f8ad74e3d0', author=User{email='chris@ozmm.org', name='Chris Wanstrath'}, message='update pricing a tad', timestamp='2008-02-15T14:36:34-08:00', added=null}], after='de8251ff97ee194a289832576287d6f8ad74e3d0', ref= |