Skip to content

Instantly share code, notes, and snippets.

View vladkorotnev's full-sized avatar
💭
What's happening?

Akasaka Ryuunosuke vladkorotnev

💭
What's happening?
View GitHub Profile
@vladkorotnev
vladkorotnev / NSArray+pull.h
Last active August 29, 2015 14:24
Пьяница — доказательство неразрешимости игры в случае неслучайного и одинакового порядка взятия карт со стола в ротацию
//
// NSArray+pull.h
// Drunk
//
// Created by Akasaka Ryuunosuke on 08/07/15.
// Copyright (c) 2015 Akasaka Ryuunosuke. All rights reserved.
//
#ifndef Drunk_NSArray_pull_h
#define Drunk_NSArray_pull_h
@vladkorotnev
vladkorotnev / haruhi.pikabu.userscript.js
Last active August 29, 2015 14:27
Pikabu Suzumiya Haruhi themed mascot installer (thx to the image author http://pikabu.ru/profile/PrincessPanda)
// ==UserScript==
// @name Pikabu Haruhiism
// @namespace http://ryuunosuke.me/
// @version 0.1
// @description thx to http://pikabu.ru/story/pechenki_po_suzumiya_haruhi_no_yuuutsu_3559752#comments
// @author Akasaka Ryuunosuke
// @match http://pikabu.ru/*
// @grant none
// ==/UserScript==
@vladkorotnev
vladkorotnev / vpgp2.user.js
Last active May 30, 2017 17:33
Semi-Unofficial port of vPGP2 to Firefox. ALPHA VERSION
// ==UserScript==
// @name libakasakacore vPGP bundle
// @namespace libakasakacore
// @description by popular demand, ported to FFox by Genjitsu Gadget Lab team
// @include *://vk.com/*
// @version 1
// @grant GM_addStyle
// ==/UserScript==
function addJS_Node (text, s_URL, funcToRun, runOnLoad) {
@vladkorotnev
vladkorotnev / mkgif.sh
Created June 10, 2016 17:19
Quick video to GIF converter
#!/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."
@vladkorotnev
vladkorotnev / example.asm
Created November 5, 2016 09:38
Fade in and out for ZX Spectrum
; 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 / Credits.md
Last active November 16, 2016 03:22
TermHere 1.2 日本語翻訳

Acknowledgements:

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

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

@vladkorotnev
vladkorotnev / Alerts.strings
Last active November 16, 2016 03:31
TypeStatus Plus 1.1 日本語
<?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 / 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
*** 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 / mpdwatchd
Last active July 22, 2020 04:59
MPD notififcations and VK status updates
#!/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 / 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
#!/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