Skip to content

Instantly share code, notes, and snippets.

View tsukumijima's full-sized avatar
📺
TTS & DTV

tsukumi tsukumijima

📺
TTS & DTV
View GitHub Profile
@ngxson
ngxson / FAQ.md
Last active April 28, 2025 17:01
convert ARM NEON to WASM SIMD prompt

Why did you do this?

Relax, I only have one Sunday to work on idea, literally my weekend project. So I tried Deepseek to see if it can help. Surprisingly, it works and it saves me another weekend...

What is your setup?

Just chat.deepseek.com (cost = free) with prompts adapted from this gist.

Does it work in one-shot or I have to prompt it multiple times?

"""
MIT License
Copyright (c) 2024 tuna2134
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
@potato4d
potato4d / description.md
Created November 20, 2024 07:32
Whisper + Resemblyzer を使った音声データの書き起こし

Open AI で出力したものを手直ししたものなので荒はあるかも

@yyya-nico
yyya-nico / README.md
Last active September 24, 2024 12:17
KonomiTVを見るm3uファイルを生成するNode.jsのスクリプト

KonomiTVを見るm3uファイルを生成するNode.jsのスクリプト

VLC メディアプレイヤー等の任意のプレイヤーで簡単にKonomiTVを選局できるプレイリストファイルを生成します。

image

使い方

  1. スクリプトを実行します。

node makeKonomitvM3u.mjs

@mizchi
mizchi / あなたのパフォーマンスを倍にする Frontend Ops はいかがですか.md
Last active April 22, 2025 13:30
あなたのパフォーマンスを倍にする Frontend Ops の傭兵はいかがですか

あなたのプロジェクトに Frontend Ops を。

現状

  • Full Plan: 1ヶ月 120万
    • 秘密保持契約を行い、ソースコードを分析し、改善を行います
    • 現在受付可能なのは、1月以降です
    • 調査費用は50万~になります
  • Lightweight Plan: 外部計測のみ 50万
  • 秘密保持契約抜きで外部からの監視を行います
@shimarin
shimarin / check-openssh-version.py
Created July 1, 2024 16:03
指定ホストの22/tcpに接続し、SSHサーバのバージョン情報を表示するスクリプト
#!/usr/bin/python
import socket
import argparse
def get_ssh_version_string(host, port=22, timeout=5):
try:
# ソケットアドレス情報を取得
addr_info = socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM)
for res in addr_info:
@tori29umai0123
tori29umai0123 / nsfw_filter.py
Last active June 11, 2024 13:02
nsfw_filter.py
import argparse
import csv
import glob
import os
from pathlib import Path
import cv2
import numpy as np
import torch
from PIL import Image
@kyo-takano
kyo-takano / making-the-most-of-local-llms.ipynb
Last active May 8, 2025 07:28
ローカルLLMはこーやって使うの💢
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thesamesam
thesamesam / xz-backdoor.md
Last active April 29, 2025 14:00
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@alfredplpl
alfredplpl / gemma_finetune_lora.py
Created February 24, 2024 04:23
Gemma初心者ファインチューニングコードです。HFの設定などはよしなにやってください。
# Reference #1: https://note.com/npaka/n/nc55e44e407ff
# Reference #2: https://huggingface.co/blog/gemma-peft
# Licence: MIT
from peft import LoraConfig
lora_config = LoraConfig(
r=8,
target_modules=["q_proj", "o_proj", "k_proj", "v_proj", "gate_proj", "up_proj", "down_proj"],
task_type="CAUSAL_LM",