Skip to content

Instantly share code, notes, and snippets.

@YamashitaRen
YamashitaRen / koel-installation-docs_debian8.md
Created May 24, 2019 00:47 — forked from brahmlower/koel-installation-docs_debian8.md
This is installation documentation for installing Koel on Debian 8.

Installation on Debian 8

This is installation documentation for installing Koel on Debian 8.

Install Dependancies

Most packages can be installed via apt-get.

user@debian:~/$ sudo apt-get install -y apache2 mysql-server php5 php5-mysql g++ git curl

Composer

@YamashitaRen
YamashitaRen / OdroidBench
Last active February 23, 2019 00:19
Benchmark Odroid U2, N2 and H2
Odroid U2
H264 1080p 8 bits
$ time ffmpeg -i bbb_sunflower_1080p_30fps_normal.mp4 -map 0:v -c:v rawvideo -f nut -y /dev/null
frame=19036 fps= 36 q=-0.0 Lsize=57822535kB time=00:10:34.56 bitrate=746465.6kbits/s speed=1.19x
video:57821850kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001185%
real 8m55,587s
user 23m6,625s
sys 4m40,540s
@YamashitaRen
YamashitaRen / buildnewgcc.patch
Last active September 3, 2018 06:36
Fix build of turionpowercontrol with newer GCC.
commit b380377d028415e4fc59e018c1ecfa36ae3b878a
Author: Yamashita Ren <[email protected]>
Date: Mon Sep 3 01:49:57 2018 +0200
Fix compilation with newer GCC.
diff --git a/MSVC_Round.cpp b/MSVC_Round.cpp
index 2200335..2d0bb8c 100644
--- a/MSVC_Round.cpp
+++ b/MSVC_Round.cpp
@YamashitaRen
YamashitaRen / PKGBUILD
Last active February 28, 2017 00:56
Anki
# $Id$
# Maintainer: Yamashita Ren
# Contributor: Sławomir Kowalski <[email protected]>
# Contributor: Sergej Pupykin <[email protected]>
# Contributor: Timm Preetz <[email protected]>
# Contributor: Michael 'manveru' Fellinger <[email protected]>
# Contributor: Dave Pretty <david dot pretty at gmail dot com>
pkgname=anki20
pkgver=2.0.43
@YamashitaRen
YamashitaRen / Build log
Last active January 5, 2017 14:22
Crash bmdc
$ cmake -DUSE_MINIUPNP=ON -DLOCAL_MINIUPNP=ON ..
-- Building with UPNP support (miniupnpc)
CMake Error at CMakeLists.txt:159 (add_subdirectory):
The source directory
/home/quentin/build/bmdc/src/bmdc++/miniupnpc
does not contain a CMakeLists.txt file.
@YamashitaRen
YamashitaRen / Awakening.db
Last active September 24, 2016 22:31
Results of my own awakenings.
import vapoursynth as vs
core = vs.get_core()
ClipA=core.ffms2.Source(source='[HorribleSubs] Kabaneri of the Iron Fortress - 02v2 [1080p].mkv')
ClipA=core.resize.Spline36(ClipA,854,480,vs.YUV440P8)
ClipT=core.ffms2.Source(source='[SAA] Koutetsujou no Kabaneri - 02 vostfr (1280x720 x264 AAC).mkv')
ClipT=core.resize.Spline36(ClipT,1913,1080,vs.YUV440P8)
ClipT=core.std.AddBorders(ClipT,3,4)
ClipT=core.resize.Spline36(ClipT,854,480)
@YamashitaRen
YamashitaRen / PKGBUILD
Last active February 14, 2016 16:37
vapoursynth-plugin-havsfunc-git-light
# Maintainer: Yamashita Ren
# Contributor: Gustavo Alvarez <[email protected]>
_plug=havsfunc
pkgname=vapoursynth-plugin-${_plug}-git-light
pkgver=r21.0.g1c17eda
pkgrel=1
pkgdesc="Plugin for Vapoursynth: ${_plug}. (GIT Version, light depends)"
arch=('any')
url='http://forum.doom9.org/showthread.php?t=166582'
@YamashitaRen
YamashitaRen / mt_lutspa.py
Created October 15, 2015 09:04 — forked from tp7/mt_lutspa.py
VSynth lutspa
# -*- coding: utf-8 -*-
import numpy as np
import vapoursynth as vs
def bool_to_number(function):
def wrapped(*args):
value = function(*args)
return np.where(value, np.array(1.0), np.array(-1.0))
return wrapped
@YamashitaRen
YamashitaRen / edi_rpow2.py
Last active December 26, 2023 19:33
Put it in Python\Lib\site-packages. Usage : import edi_rpow2 as edi \ edi.nnedi3_rpow2(clip,rfactor,...) \ edi.eedi3_rpow2(clip,rfactor,...) \ edi.eedi2_rpow2(clip,rfactor,...)
def nnedi3_rpow2(clip,rfactor,correct_shift="zimg",nsize=0,nns=3,qual=None,etype=None,pscrn=None,opt=None,int16_prescreener=None,int16_predictor=None,exp=None):
import vapoursynth as vs
core = vs.get_core()
def edi(clip,field,dh):
return core.nnedi3.nnedi3(clip=clip,field=field,dh=dh,nsize=nsize,nns=nns,qual=qual,etype=etype,pscrn=pscrn,opt=opt,int16_prescreener=int16_prescreener,int16_predictor=int16_predictor,exp=exp)
return edi_rpow2(clip=clip,rfactor=rfactor,correct_shift=correct_shift,edi=edi)
def znedi3_rpow2(clip,rfactor,correct_shift="zimg",nsize=0,nns=3,qual=None,etype=None,pscrn=None,opt=None,int16_prescreener=None,int16_predictor=None,exp=None):