Skip to content

Instantly share code, notes, and snippets.

@leper
leper / PKGBUILD
Created March 13, 2011 16:39
0ad alpha4
# Maintainer: t3ddy <t3ddy1988 "at" gmail {dot} com>
# Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=0ad
pkgver=alpha_4
_pkgver=r09049-alpha
pkgrel=1
pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
arch=('i686' 'x86_64')
url="http://wildfiregames.com/0ad"
@leper
leper / PKGBUILD
Created October 30, 2011 15:41
pidgin-manualsize pkgbuild
# Maintainer: leper <blubblub@mail.ru>
pkgname=pidgin-manualsize
pkgver=0.7
pkgrel=2
pkgdesc="Plugin to allow manual resizing of Pidgin's message input area."
arch=('i686' 'x86_64')
url="http://www.freshports.org/net-im/pidgin-manualsize/"
license=('GPL2')
depends=(pidgin)
@leper
leper / 0ad-openindiana-support-fcollada_2012-01-07
Created January 7, 2012 16:02
0ad openindiana support (for fcollada onyl
Index: 0ad/libraries/fcollada/include/FMath/FMath.h
===================================================================
--- 0ad/libraries/fcollada/include/FMath/FMath.h (revision 10881)
+++ 0ad/libraries/fcollada/include/FMath/FMath.h (working copy)
@@ -24,6 +24,9 @@
#include "FMath/FMFloat.h"
#endif // _FM_FLOAT_H_
@leper
leper / openindiana_support_fcollada_and_nvtt-2012-01-07.patch
Created January 7, 2012 17:33
0ad openindiana support (fcollada and nvtt)
Index: 0ad/libraries/nvtt/src/src/nvcore/nvcore.h
===================================================================
--- 0ad/libraries/nvtt/src/src/nvcore/nvcore.h (revision 10881)
+++ 0ad/libraries/nvtt/src/src/nvcore/nvcore.h (working copy)
@@ -38,6 +38,9 @@
#if defined POSH_OS_LINUX
# define NV_OS_LINUX 1
# define NV_OS_UNIX 1
+#elif defined POSH_OS_SOLARIS
+# define NV_OS_SOLARIS 1
@leper
leper / 0ad.install
Created January 24, 2012 23:07
0ad alpha 8 pkgbuild
# arg 1: the new package version
post_install() {
cat << EOF
Note:
==> In order to play the game, execute it as follows:
==> 0ad
==> You can also run the game editor with this command:
==> 0ad -editor
==> Have fun!
EOF
@leper
leper / git-svn-diff.py
Created March 6, 2012 23:19
Generate SVN diffs from git. Checkout should be done via git svn. Dependencies: git subversion python3 (could work with 2 too)
#!/usr/bin/env python
import subprocess
import re
def getOutput(cmd):
command_stdout = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
return command_stdout.decode(encoding='utf-8')
# Find the most recent commit that came from SVN and return the SVN revision.
def getSVN():
@leper
leper / fix-empty-files.patch
Created April 7, 2012 13:21
Fix crashes with empty script files
Index: source/lib/file/vfs/vfs.cpp
===================================================================
--- source/lib/file/vfs/vfs.cpp (revision 11448)
+++ source/lib/file/vfs/vfs.cpp (working copy)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010 Wildfire Games
+/* Copyright (c) 2012 Wildfire Games
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
Assertion failed: "m_Handle"
Location: VertexBuffer.cpp:181 (UpdateChunkVertices)
Call stack:
(0x78a0aa) ./pyrogenesis() [0x78a0aa]
(0x739d31) ./pyrogenesis() [0x739d31]
(0x739f2d) ./pyrogenesis() [0x739f2d]
(0x73abf2) ./pyrogenesis() [0x73abf2]
(0x66e617) ./pyrogenesis() [0x66e617]
@leper
leper / bt
Created April 23, 2012 17:30
(gdb) bt
#0 0x00007f191966ab5d in nanosleep () from /lib/libc.so.6
#1 0x00007f191966aa01 in sleep () from /lib/libc.so.6
#2 0x0000000000790121 in udbg_launch_debugger ()
at ../../../source/lib/sysdep/os/unix/udbg.cpp:83
#3 0x000000000078fe45 in sys_display_error (
text=0x7f18db85e000 L"Assertion failed: \"m_Handle\"\r\nLocation: VertexBuffer.cpp:181 (UpdateChunkVertices)\r\n\r\nCall stack:\r\n\r\n(0x78a0aa) ./pyrogenesis() [0x78a0aa]\n(0x739d31) ./pyrogenesis() [0x739d31]\n(0x739f2d) ./pyrogenesi"..., flags=<optimized out>) at ../../../source/lib/sysdep/os/unix/unix.cpp:242
#4 0x000000000073a03b in CallDisplayError (flags=6,
text=0x7f18db85e000 L"Assertion failed: \"m_Handle\"\r\nLocation: VertexBuffer.cpp:181 (UpdateChunkVertices)\r\n\r\nCall stack:\r\n\r\n(0x78a0aa) ./pyrogenesis() [0x78a0aa]\n(0x739d31) ./pyrogenesis() [0x739d31]\n(0x739f2d) ./pyrogenesi"...) at ../../../source/lib/debug.cpp:378
#5 debug_DisplayError (description=<optimized out>,
(gdb) bt
#0 0x00007ffff43b8f17 in kill () from /lib/libc.so.6
#1 0x00000000009f02ee in debug_break ()
at ../../../source/lib/sysdep/os/unix/udbg.cpp:50
#2 0x000000000084264f in CVertexBuffer::UpdateChunkVertices (this=0x1259620,
chunk=0x12595d0, data=0x651dee0)
at ../../../source/renderer/VertexBuffer.cpp:181
#3 0x000000000084479b in VertexArray::Upload (this=0x6526d40)
at ../../../source/renderer/VertexArray.cpp:289
#4 0x000000000080e210 in CParticleEmitter::CParticleEmitter (this=0x6526cb0,