Skip to content

Instantly share code, notes, and snippets.

@darealshinji
darealshinji / tinybunny_unix.sh
Last active January 9, 2021 17:02
download files to play "Tiny Bunny" natively on Linux and Mac
#!/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
#!/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
#include <FL/Fl.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_GIF_Image.H>
#include <FL/Fl_JPEG_Image.H>
#include <FL/Fl_PNG_Image.H>
#include <FL/Fl_XBM_Image.H>
#include <string.h>
enum {
#!/bin/sh
# build script for Ubuntu 16.04 or newer
set -e
set -x
sudo apt update
sudo apt upgrade
sudo apt install --no-install-recommends \
build-essential \
#!/bin/bash
MAKEFLAGS="-j4"
build_nasm () {
ver="2.14.02"
wget https://www.nasm.us/pub/nasm/releasebuilds/$ver/nasm-${ver}.tar.xz
tar xf nasm-${ver}.tar.xz
cd nasm-$ver
./configure
This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: darealshinji <djcj@gmx.de>
Date: Sun, 23 Jun 2019 21:13:09 +0200
Subject: [PATCH 1/1] add suffix to lcms2 symbols
#!/bin/sh
set -e
set -x
sudo apt update -y
sudo apt upgrade -y
# prevent linking against an outdated libass
sudo apt purge -y libass-dev
@darealshinji
darealshinji / getKey.cpp
Created February 2, 2019 18:56
FLTK win32 get virtual key
#include <FL/Fl.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Double_Window.H>
#include <stdio.h>
#include "keyCodes.h"
typedef struct {
unsigned short vk;
unsigned short fltk;
#!/bin/bash
set -e
set -x
GSDIR="ghostscript-9.26"
GSDIR2="gs926"
SPVER="0.2.8"
SPDIR="libspectre-$SPVER"
DJVVER="3.5.27"
DJVDIR="djvulibre-$DJVVER"
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