Skip to content

Instantly share code, notes, and snippets.

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

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 Feb 23, 2019
Benchmark Odroid U2, N2 and H2
View OdroidBench
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 Sep 3, 2018
Fix build of turionpowercontrol with newer GCC.
View buildnewgcc.patch
commit b380377d028415e4fc59e018c1ecfa36ae3b878a
Author: Yamashita Ren <lemaitre.dulotus@yahoo.fr>
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
View PKGBUILD
# $Id$
# Maintainer: Yamashita Ren
# Contributor: Sławomir Kowalski <suawekk+aur@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Timm Preetz <timm@preetz.us>
# Contributor: Michael 'manveru' Fellinger <m.fellinger@gmail.com>
# Contributor: Dave Pretty <david dot pretty at gmail dot com>
pkgname=anki20
pkgver=2.0.43
View Build log
$ 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.
View Kabaneri
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 Feb 14, 2016
vapoursynth-plugin-havsfunc-git-light
View PKGBUILD
# Maintainer: Yamashita Ren
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
_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 Oct 15, 2015 — forked from tp7/mt_lutspa.py
VSynth lutspa
View mt_lutspa.py
# -*- 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 May 3, 2022
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,...)
View edi_rpow2.py
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):