Skip to content

Instantly share code, notes, and snippets.

@darealshinji
darealshinji / timer.avs
Last active September 9, 2015 04:23
AviSynth script to add a highly customizable timer to your video. Extended description can be found at http://forum.doom9.org/showthread.php?t=168241
# AviSynth script to add a highly customizable timer to your video.
#
# Copyright (C) 2013 djcj <djcj@gmx.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
--- a/libaegisub/unix/path.cpp
+++ b/libaegisub/unix/path.cpp
@@ -22,8 +22,22 @@
#include <boost/filesystem/operations.hpp>
#include <pwd.h>
+#ifdef LINUX_PORTABLE_BUILD
+#include <iostream>
+#endif
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[100%] Building CXX object src/CMakeFiles/zdoom.dir/zscript/zcc_expr.cpp.o
cd <<SOURCEDIR>>/build/src && /usr/bin/x86_64-linux-gnu-g++ -DDISABLE_SSE -DDYN_FLUIDSYNTH -DHAVE_FLUIDSYNTH -DHAVE_FPU_CONTROL -DHAVE_MPG123 -DHAVE_SNDFILE -DNEED_STRUPR=1 -DNO_FMOD=1 -D__forceinline=inline -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -std=c++1y -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wno-unused-result -D_FORTIFY_SOURCE=2 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz -I/usr/include/SDL2 -I/usr/include/x86_64-linux-gnu -I/usr/include/AL -I<<SOURCEDIR>>/lzma/C -I<<SOURCE
@darealshinji
darealshinji / make-icons.sh
Last active March 13, 2016 11:36
Create an X11 icon set from a single image file.
#!/bin/sh -e
# Create an X11 icon set from a single image file.
# Usage: make-icon.sh <icon> [<output-folder>]
# Last revision : 2015-04-10
# Requires: librsvg2-bin imagemagick
# Copyright (c) 2014-2015, djcj <djcj@gmx.de>
djcj ~/Downloads/SSVOpenHexagon/build
$ rm -rf * && cmake .. -DCMAKE_C_COMPILER=gcc5opt-gcc -DCMAKE_CXX_COMPILER=gcc5opt-g++ -DLUA_INCLUDE_DIR=/home/djcj/Downloads/SSVOpenHexagon/lua/src -DLUA_LIBRARY=/home/djcj/Downloads/SSVOpenHexagon/lua/src/liblua.a -DCMAKE_VERBOSE_MAKEFILE=ON
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler: /usr/bin/gcc5opt-gcc
-- Check for working C compiler: /usr/bin/gcc5opt-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
This file is part of MXE.
See index.html for further information.
Contains ad hoc patches for cross building.
diff --git a/Makefile.in b/Makefile.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -32,7 +32,7 @@ SUBDIRS_FIRST = libdjvu tools
@XML_YES@SUBDIRS_XML = xmltools
@darealshinji
darealshinji / apt-get-build.sh
Last active April 18, 2016 16:12
A simple alternative to apt-build for Debian-based systems.
#!/bin/sh
#
# Usage: sudo apt-get-build <package>
ROOTUID="0"
if [ "$(id -u)" -ne "$ROOTUID" ] ; then
echo "This script must be executed with root/sudo privileges!"
exit 1
fi
itch-canary_0.14.38-canary_amd64.deb:
neues Debian-Paket, Version 2.0.
Größe 36508158 Byte: control-Archiv= 2650 Byte.
337 Byte, 12 Zeilen control
5287 Byte, 78 Zeilen md5sums
81 Byte, 6 Zeilen * postinst #!/bin/sh
Package: itch-canary
Version: 0.14.38-canary
License: MIT
Vendor: itch.io
# -*- mode: autoconf -*-
#
# AX_CHECK_CL
#
# Check for an OpenCL implementation. If CL is found, the required compiler
# and linker flags are included in the output variables "CL_CFLAGS" and
# "CL_LIBS", respectively. If no usable CL implementation is found, "no_cl"
# is set to "yes".
#
# If the header "CL/cl.h" is found, "HAVE_CL_CL_H" is defined. If the header