Skip to content

Instantly share code, notes, and snippets.

View checkrt.c
// MIT License
// Copyright (c) 2021 djcj <djcj@gmx.de>
// Elf file parsing code was taken from https://github.com/finixbit/elf-parser
// Copyright (c) 2018 finixbit
// 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
View gMKVExtractGUI-trunk-AppImage.sh
#!/bin/bash
# build-dependencies: mono-devel subversion imagemagick
# build system: Ubuntu 16.04
set -e
set -x
export LANG=C
APP="gMKVExtractGUI"
from_source=yes
View render_svg.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <inttypes.h>
#include "nanosvg.h"
#define NANOSVGRAST_IMPLEMENTATION
#include "nanosvgrast.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
@darealshinji
darealshinji / Makefile
Created Jan 11, 2021
lzma 1900 sdk Linux
View Makefile
OBJS = \
7zAlloc.o \
7zArcIn.o \
7zBuf.o \
7zBuf2.o \
7zCrc.o \
7zCrcOpt.o \
7zDec.o \
7zFile.o \
7zStream.o \
@darealshinji
darealshinji / wslpath.c
Last active Jan 10, 2021
wslpath wrapper
View wslpath.c
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdictions that recognize copyright laws, the author or authors
* of this software dedicate any and all copyright interest in the
@darealshinji
darealshinji / tinybunny_unix.sh
Last active Jan 9, 2021
download files to play "Tiny Bunny" natively on Linux and Mac
View tinybunny_unix.sh
#!/bin/sh
set -e
set -x
gamedir="Tiny Bunny"
sdkver="7.3.5"
if [ "$(printf "$PWD" | tail -c28)" = "/steamapps/common/Tiny Bunny" ]; then
gamedir="."
fi
View gMKVExtractGUI.yml
app: gMKVExtractGUI
binpatch: false
ingredients:
packages:
- mkvtoolnix
- mono-runtime
- libmono-corlib4.5-cil
- libmono-system-core4.0-cil
- libmono-system-data4.0-cil
View xnviewmp-snapcraft.yaml
name: xnviewmp
version: 0.91
summary: Photo Viewer, Image Resizer & Batch Converter
description: |
XnView MP is the enhanced version to XnView. It is a powerful
cross-platform media browser, viewer and converter.
And it's compatible with more than 500 formats.
grade: stable
#confinement: classic
confinement: devmode
View ghostscript-1-fixes.patch
This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building.
diff --git a/configure.ac b/configure.ac
index 1111111..2222222 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,9 +148,16 @@ if test x"$CCAUX" != x"" ; then
echo $AUXFLAGS_MAK_LINE06 >> $AUXFLAGS_MAK.in
View launch-steam.sh
#!/bin/bash
# requires fltk-dialog to be in PATH
# https://github.com/darealshinji/fltk-dialog/releases/tag/continuous
steamconfig="${HOME%/}/.steam"
pidfile="$steamconfig/steam.pid"
steambin="$steamconfig/steam/steam.sh"
logfile="$(mktemp)"
pid_steam=0
pid_launcher=0