Skip to content

Instantly share code, notes, and snippets.

darealshinji

Block or report user

Report or block darealshinji

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View build-vapoursynth-ubuntu.sh
#!/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 \
View build-hybrid-tools.sh
#!/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
View ghostscript-2-lcms-symbol-suffixes.patch
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
View Aegisub-AppImage.sh
#!/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 Feb 2, 2019
FLTK win32 get virtual key
View getKey.cpp
#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;
View qpdfview-appimage.sh
#!/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"
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 xdg_dir_example.cpp
/*
* The MIT License (MIT)
*
* Copyright (c) 2018, 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
View fltk_indicator.cpp
class tray_window : public Fl_Double_Window
{
public:
tray_window(int W, int H, const char *L=0)
: Fl_Double_Window(W, H, L) { }
int handle(int event) {
int rv = Fl_Double_Window::handle(event);
switch (event) {
case FL_PUSH:
View GrapplingHook-local-Java.bat
@echo OFF
if exist %SystemRoot%\SysWOW64 (
set ARCH=x64
) else (
set ARCH=i586
)
if not exist jre1.8.0_171\bin\java.exe (
rd /s /q jre1.8.0_171
You can’t perform that action at this time.