Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
What's happening?

Akasaka Ryuunosuke vladkorotnev

💭
What's happening?
View GitHub Profile
@vladkorotnev
vladkorotnev / 0_memo.md
Last active November 24, 2022 08:24
D-VHS bitstream dump memo
View 0_memo.md

Glitch setup

  1. Power on DIGA
  2. Plug in and power on TV Tuner, set DIGA to TS mode 2 input
  3. Power on DVHS and plug into TV Tuner
  4. Select iLink Dubbing from the menu and wait for error to appear. Clear the error and wait until TV picture appears again
  5. Go to DIGA TS mode settings
  6. Play tape, set TS mode to 1, exit fast and smash record
  7. If you're lucky it ignores the DRM flag and recording
  8. If you're even luckier timecode breaks and tape swaps don't stop the recording
@vladkorotnev
vladkorotnev / svx2wav.c
Last active November 3, 2019 01:12
Small sunvox to wav converter based upon the example from the library archive
View svx2wav.c
//
// * Using SunVox as a filter for some user-generated signal
// (with export to WAV)
//
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <dlfcn.h>
#include <signal.h>
@vladkorotnev
vladkorotnev / ksh.userscript.js
Last active November 13, 2018 12:24
KuroShiro furigana for Pentadactyl
View ksh.userscript.js
// ==UserScript==
// @name auto kuroshiro
// @namespace jkss
// @include http://*.co.jp
// @version 1
// @grant none
// ==/UserScript==
var kspool = 0;
function textNodesUnder(el) {
@vladkorotnev
vladkorotnev / convert_itm.sh
Created October 2, 2018 12:18
Convert iTunes Music folder into a simple directory, preserving structure, and converting the ALAC files into MP3 (leaving the rest untouched). Requires: ffmpeg with LAME, mediainfo
View convert_itm.sh
#!/usr/bin/env bash
IN="/media/Music/iTunes Media/Music/"
OUT="/home/akasaka/Music/From_iTunes"
FILES=$(find "$IN/" -type f ! -name '.DS_Store')
IFS=$'\n'
mkdir -p "$OUT"
cd "$OUT"
for file in $FILES
@vladkorotnev
vladkorotnev / mpdwatchd
Last active July 22, 2020 04:59
MPD notififcations and VK status updates
View mpdwatchd
#!/bin/bash
#### CONFIG ####
vk_token= # Oauth token with status scope
vk_prefix="✇"
notify_time=5000
MPD_HOST="/mpd/socket"
LCD_HOST="127.0.0.1"
LCD_PORT="13666"
@vladkorotnev
vladkorotnev / fuck-emoji.patch
Created August 23, 2018 16:12
Patch for purple-vk-plugin (https://bitbucket.org/olegoandreev/purple-vk-plugin) to send smileys as HTML entity and avoid server-side emoji auto-substitute. Screenshot: http://i.imgur.com/llQ5npd.png
View fuck-emoji.patch
*** src/vk-smileys.orig.cpp 2018-08-23 21:07:33.069290031 +0500
--- src/vk-smileys.cpp 2018-08-23 21:06:30.741934284 +0500
***************
*** 1,7 ****
#include <fstream>
#include <glib.h>
#include <util.h>
!
#include <cpputils/trie.h>
@vladkorotnev
vladkorotnev / Alerts.strings
Last active November 16, 2016 03:31
TypeStatus Plus 1.1 日本語
View Alerts.strings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Title. -->
<key>ALERTS</key>
<string>通知</string>
<!-- Header for alert type selection. -->
<key>ALERT_TYPE</key>
@vladkorotnev
vladkorotnev / Credits.md
Last active November 16, 2016 03:22
TermHere 1.2 日本語翻訳
View Credits.md

Acknowledgements:

Terminal toolbar icon is licensed under the SIL Open Font License, version 1.1.

このアプリは有用である場合には、開発者に小さな寄付を送ることを検討してください Donate

@vladkorotnev
vladkorotnev / example.asm
Created November 5, 2016 09:38
Fade in and out for ZX Spectrum
View example.asm
; Example code for Fade-In and Fade-Out
DEVICE ZXSPECTRUM128
ORG 40000
INCBIN "my_picture.scr"
ORG 30000
TEST
EI
CALL CLR_ATTR
@vladkorotnev
vladkorotnev / mkgif.sh
Created June 10, 2016 17:19
Quick video to GIF converter
View mkgif.sh
#!/bin/bash
me=`basename "$0"`
## i.e. mkgif Untitled.mov 640x360 20 2d.gif -vf "hflip,vflip"
usage="Usage: $me INFILE WxH FPS OUTFILE ffmpeg_opts.."
if [ -z "$1" ]
then
echo "No input file supplied."