Skip to content

Instantly share code, notes, and snippets.

@mzyy94
mzyy94 / osmc-jp-font-replace.sh
Last active May 3, 2021 06:01
OSMC Japanese font replace
#!/bin/sh
URL="https://gist.github.com/mzyy94/15ee1b3880107e9d7ece/download"
TMP="/tmp/mplusfonts"
FONTSDIR="/usr/share/kodi/addons/skin.osmc/fonts/"
FONTCONF="/usr/share/kodi/addons/skin.osmc/16x9/Font.xml"
set -x
mkdir -p ${TMP}
@mzyy94
mzyy94 / ambxlight.c
Last active November 12, 2017 12:40
Ruby C extension impl 4 ambxlight
#include <stdio.h>
#include <ruby.h>
#include <libambxlight/libambxlight.h>
VALUE cAmbxlight;
VALUE device_count;
VALUE wAmbxlight_change_color_rgb(VALUE self, VALUE red, VALUE green, VALUE blue)
{
@mzyy94
mzyy94 / steamos-1.0-118_config.patch
Last active August 29, 2015 14:03
SteamOS kernel configuration patch [v1.0 118]
--- linux-3.10.11/.config 2014-06-27 16:07:13.094523227 +0900
+++ /boot/config-3.10-3-amd64 2014-05-14 09:53:56.000000000 +0900
@@ -55,10 +55,10 @@
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
-CONFIG_KERNEL_GZIP=y
+# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
Driver Caps:
Driver: "omap3"
Card: "omap3/mt9v032//"
Bus: ""
Version: 0.0
Capabilities: 04000001
Camera Cropping:
Bounds: 752x480+0+0
Default: 752x480+0+0
Aspect: 1/1
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*
* This program is provided with the V4L2 API
* see http://linuxtv.org/docs.php for more information
*/
#include <stdio.h>
if (process.argv.length != 3) {
console.error('usage:',
process.argv[0],
process.argv[1],
'<archive url>');
process.exit(1);
}
var url = process.argv[2];
var http = require(url.split(':')[0]);
if(!Detector.webgl) Detector.addGetWebGLMessage();
function modelView(objName){
var path = 'models/';
var suffix = '_LOW';
var extension = '.js';
var renderer = new THREE.WebGLRenderer({ antialias: true, alpha: false, premultipliedAlpha: false });
var s_x = window.innerWidth;
var s_y = window.innerHeight;
@mzyy94
mzyy94 / honda-3d.css
Last active September 21, 2015 03:23
* {
margin: 0;
padding: 0;
overflow: hidden;
user-select: none;
-webkit-user-select: none;
}
body {
font-family: 'Lato' !important;
font-style: normal;
@mzyy94
mzyy94 / iscsitarget_install.log
Last active January 2, 2016 16:19
open-iscsiとiscsitargetのinstallログ
~:$ ssh -l root localhost -p 2223
The authenticity of host '[localhost]:2223 ([127.0.0.1]:2223)' can't be established.
RSA key fingerprint is 5e:80:92:fa:82:60:05:09:89:c1:39:6b:72:30:d5:03.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:2223' (RSA) to the list of known hosts.
root@localhost's password:
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
.section __TEXT,__text,regular,pure_instructions
.globl _main
.align 4, 0x90
_main: ## @main
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp2:
.cfi_def_cfa_offset 16
Ltmp3: