Skip to content

Instantly share code, notes, and snippets.

View iwadon's full-sized avatar

IWATSUKI Hiroyuki iwadon

View GitHub Profile
% ./ds4 \
-m ./ds4flash.gguf \
--ssd-streaming \
--ssd-streaming-cache-experts 32GB \
--ctx 32768 \
--nothink
ds4: Metal SSD streaming cache budget 32.00 GiB / 6.75 MiB per expert = 4854 experts
ds4: Metal device Apple M1 Max, 64.00 GiB RAM
ds4: Metal 4 tensor API disabled for pre-M5/pre-A19 devices
ds4: drift-patch flags hc_stable=on norm_unify=on kv_raw_f32=off rope_exp2_log2=off math_safe=off tensor_matmul=off
@iwadon
iwadon / key_dump.c
Last active November 22, 2025 14:25
#include <stdio.h>
#include <stdlib.h>
#include <x68k/dos.h>
#include <x68k/iocs.h>
static int count = 0;
static void print_key_info(unsigned int keysns, unsigned int mod, unsigned char *buf, int len)
{
++count;
@iwadon
iwadon / a.cs
Last active May 23, 2018 11:12
C#のデリゲートの挙動を確認するためのコード。
using System;
class Base
{
public int i;
public Action act;
}
class A : Base
{
@iwadon
iwadon / # subversion - 2017-06-18_19-19-19.txt
Created June 18, 2017 10:29
subversion on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for subversion on macOS 10.11.6
Build date: 2017-06-18 19:19:19
using UnityEngine;
using System.Collections;
public class AudioObjectController : MonoBehaviour
{
public AudioClip _audioClip;
// Use this for initialization
void Start()
{
--- ext/fiddle/extconf.rb~ 2014-06-30 01:59:36.000000000 +0900
+++ ext/fiddle/extconf.rb 2014-11-21 11:57:08.361740300 +0900
@@ -11,6 +11,10 @@
$defs.push(%{-DRUBY_LIBFFI_MODVERSION=#{ '%d%03d%03d' % ver }})
end
+if enable_config('static-libffi', false)
+ $defs.push('-DFFI_BUILDING')
+end
+
--- sysdep.h Sun Aug 29 18:24:57 2010
+++ sysdep.h Tue Mar 11 21:34:56 2014
@@ -19,7 +19,7 @@
#define MSGPACK_SYSDEP_H__
-#ifdef _MSC_VER
+#if _MSC_VER <= 1600
typedef __int8 int8_t;
typedef unsigned __int8 uint8_t;
@iwadon
iwadon / gist:9343679
Created March 4, 2014 10:10
mruby-master-changesの各commitの見出しの文字を小さくする。
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("mruby-master-changes.hatenablog.com") {
div.entry-content > h1 {
font-size: 100%;
}
}
#include <fstream>
int main()
{
static const char data[1] = {0x0a};
std::ofstream ofs;
ofs.open("out.bin");
ofs.write(data, sizeof data);
ofs.close();
@iwadon
iwadon / gist:5419005
Created April 19, 2013 08:44
GitHubからcloneしたMonoをビルドする手順の一例。configureのオプションは各環境で適切に指定すること。
# GitHubからcloneする
git clone git://github.com/mono/mono.git
# submoduleを更新する (これを忘れるとmakeの途中でエラーになる)
git submodule init
git submodule update
# configureを生成する
NOCONFIGURE=1 ./autogen.sh