Skip to content

Instantly share code, notes, and snippets.

/*
* The MIT License (MIT)
*
* Copyright (c) 2017, djcj <[email protected]>
*
* 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
@darealshinji
darealshinji / libmediainfo-1-fixes.patch
Created May 14, 2017 21:26
libmediainfo build files for MXE
diff --git a/Project/GNU/Library/configure.ac b/Project/GNU/Library/configure.ac
index 9aa1dfe..4927388 100644
--- a/Project/GNU/Library/configure.ac
+++ b/Project/GNU/Library/configure.ac
@@ -359,8 +359,8 @@ if test -e ../../../../ZenLib/Project/GNU/Library/libzen-config; then
elif test "$(command -v libzen-config)" ; then
enable_unicode="$(libzen-config Unicode)"
else
- if pkg-config --exists libzen; then
- enable_unicode="$(pkg-config --variable=Unicode libzen)"
#!/bin/sh
# build on CentOS 6.9 (64 bit)
# https://github.com/probonopd/AppImages/issues/187
# https://github.com/TheAssassin/zsync2/issues/4
# https://launchpad.net/~djcj/+archive/ubuntu/libcurl-slim
set -e
set -x
# https://github.com/mxe/mxe/blob/master/src/curl.mk
version=$(wget -q -O- 'https://curl.haxx.se/download/?C=M;O=D' | \
@darealshinji
darealshinji / wslpath.sh
Last active June 11, 2017 14:21
Like cygpath for "Bash on Windows"
moved to https://github.com/darealshinji/scripts/blob/master/wslpath
--- a/screenfetch-dev
+++ b/screenfetch-dev
@@ -827,6 +827,7 @@
tinycore|tinycore*linux) distro="TinyCore" ;;
cygwin) distro="Cygwin" ;;
haiku) distro="Haiku" ;;
+ umbrella*unix*|umbrella*corporation) distro="Umbrella Unix"; distro_more="Umbrella Unix 2.1.7" ;;
esac
verboseOut "Finding distro...found as '${distro} ${distro_release}'"
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define LINE_SIZE 255
#include <limits.h>
#ifndef LIBC6_ARCH
# if (__WORDSIZE == 64)
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by MKVToolNix configure 9.9.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr --with-boost=/home/djcj/Downloads/mkvtoolnix-9.9.0~ubuntu14.04/libs --enable-qt --enable-static-qt --enable-debug --disable-optimization
## --------- ##
## Platform. ##
#!/bin/sh
set -e
set -x
mkdir -p build
cd build
# readelf
deb: libgtk2.0-0
libgtk-x11-2.0.so.0
libgdk-x11-2.0.so.0
deb: libgdk-pixbuf2.0-0
libgdk_pixbuf_xlib-2.0.so.0
libgdk_pixbuf-2.0.so.0
deb: libglib2.0-0
libglib-2.0.so.0
#!/bin/sh
appimage="qpdfview-0.4.17beta1.glibc2.14-x86_64.AppImage"
uniquename="${appimage}-$(date +%s)" # seconds since 1970-01-01 00:00:00 UTC, good enough for this purpose
desktopfile="$HOME/.local/share/applications/$uniquename.desktop"
iconfile="$HOME/.local/share/icons/$uniquename.png"
mkdir -p "$HOME/.local/share/applications"
mkdir -p "$HOME/.local/share/icons"