Skip to content

Instantly share code, notes, and snippets.

@coldnebo
coldnebo / minecraft-sethd.ps1
Created August 16, 2011 02:39
win7 powershell script to automatically resize a minecraft window for 1280x720 HD fraps recording.
# Win7 Powershell script to resize Minecraft to 1280x720 (HD for fraps youtube capture)
# use by typing the following at a command prompt:
# > PowerShell -ExecutionPolicy Bypass -File minecraft-sethd.ps1
# refs:
# http://stackoverflow.com/questions/2556872/how-to-set-foreground-window-from-powershell-event-subscriber-action
# http://richardspowershellblog.wordpress.com/2011/07/23/moving-windows/
# http://www.suite101.com/content/client-area-size-with-movewindow-a17846
@International
International / subproccess_example.py
Created September 9, 2011 12:06
python subprocess pid/kill example
import subprocess
import time
import sys
if __name__ == "__main__":
if len(sys.argv) != 2:
exit("need an argument")
to_run = sys.argv[1]
proc = subprocess.Popen(to_run)
print "start process with pid %s" % proc.pid
@matchy256
matchy256 / rec_radiko.sh
Last active October 31, 2023 08:23 — forked from saiten/rec_radiko.sh
簡易Radiko録音スクリプト
#!/bin/bash
LANG=ja_JP.utf8
pid=$$
date=`date '+%Y-%m-%d-%H_%M'`
outdir="."
if [ $# -le 1 ]; then
@koseki
koseki / vbox-ch10-1.md
Last active September 14, 2021 01:18
VirtualBox はどこにファイルを保存するか

VirtualBox マニュアルメモ - 10.1. VirutalBox はどこにファイルを保存するか

10.1. Where VirtualBox stores its files

In VirtualBox, a virtual machine and its settings are described in a virtual machine settings file in XML format.

VM の設定は XML 形式で書いてある。

// ==UserScript==
// @name Prevent OBJECT Insertion
// @version 1.1
// @description OBJECT要素の挿入を阻止します。「Amazonが重い」問題(Bug 1172205)を回避できるかもしれません。
// @id f4cce630-3501-4d9f-a846-d69064429f02
// @namespace f4cce630-3501-4d9f-a846-d69064429f02
// @include http://www.amazon.com/*
// @include http://www.amazon.com.au/*
// @include http://www.amazon.com.br/*
// @include http://www.amazon.ca/*
@Tblue
Tblue / mozlz4a.py
Last active July 16, 2024 09:50
MozLz4a compression/decompression utility
#!/usr/bin/env python3
# vim: sw=4 ts=4 et tw=100 cc=+1
#
####################################################################################################
# DESCRIPTION #
####################################################################################################
#
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to
# compress e. g. bookmark backups (*.jsonlz4).
#
@skypenguins
skypenguins / minor_songs_of_idolmaster.md
Last active January 21, 2023 16:40
アイマスの非売品&入手困難・不可&マイナーな曲やCD一覧

【アイマスの非売品&入手困難・不可&マイナーな曲やCD一覧】

CD

765

  • 入手困難なCDとしてやたらと有名である。
@einstein95
einstein95 / Project_EGG_shit.md
Last active June 10, 2024 17:42
Project EGG

Downloading

User-Agent: c384da2W9f73dz20403d

All files are in the format (P|)XXXYZZZa.bin

"X" is the company code, one of the following:

 'AGL', 'ARS', 'ART', 'ATN', 'BGT', 'BOT', 'BPS', 'CAR', 'COM', 'COS', 'DBS', 'DMB', 'EBS', 'FAL', 'FAM', 'FAS', 'FUG', 'GAR', 'GDA', 'GMD', 'GNX', 'HAM', 'HOK', 'HOT', 'HRZ', 'HUD', 'IMX', 'IPM', 'ISE', 'JLC', 'KNK', 'KNM', 'KSK', 'KUR', 'MCN', 'MEW', 'MIC', 'MIL', 'NCS', 'NIC', 'NTB', 'ONS', 'PHA', 'PON', 'POP', 'QSR', 'RDM', 'RIV', 'ROM', 'SAC', 'SKP', 'SNT', 'SPS', 'SQE', 'STW', 'SYS', 'TAE', 'TEL', 'THR', 'TZG', 'WIN', 'XTA', 'ZOM'
@mirai-iro
mirai-iro / VIMJ-utils.md
Last active December 26, 2019 10:09
コロムビアさん MASTER BOX DSはまだですか……

VIMJ utils

ファイルの説明

  • vimj_cut.pl
    • F_XXX.BIN & F_XXX.IDX からファイルを取り出します
  • vimj_sss2s14.pl
  • MIDステレオの楽曲データ(*.SSS)を2つの *.S14 ファイルに分割します
#!/usr/local/bin/python3
# -*- coding: utf-8 -*-
import datetime
import youtube_dl
import subprocess
from sys import exit, argv
from os.path import exists
from modules import text
from traceback import format_exc