Skip to content

Instantly share code, notes, and snippets.

View valda's full-sized avatar

YAMAGUCHI Seiji valda

  • Heartland Inc.
  • Osaka, Japan
  • X @valda
View GitHub Profile
@valda
valda / fose_loader.inject_fallout3_cn_3dm.patch
Created January 26, 2009 17:56
fose中華exe対応patch
--- main.cpp.orig 2009-01-17 07:56:08.000000000 +0900
+++ main.cpp 2009-01-26 16:31:22.654000000 +0900
@@ -20,6 +20,7 @@
static bool DoInjectDLL(PROCESS_INFORMATION * info, const char * dllPath, ProcHookInfo * hookInfo);
static bool TestChecksum(const char * procName, std::string * dllSuffix, ProcHookInfo * hookInfo);
static void PrintError(const char * fmt, ...);
+static bool Inject3DMDLL(HANDLE hprocess);
int main(int argc, char ** argv)
{
@valda
valda / logoff_robocopy_desktop.vbs
Created September 9, 2009 05:25
RamDisk に Desktop を置いてる場合の logout スクリプ㌧
'' logoff_robocopy_desktop.vbs
'' RamDisk に Desktop を置いてる場合の logout スクリプ㌧
'' 要 robocopy
Set objShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
desktop = "Z:\DESKTOP"
desktop_bak = "C:\Documents and Settings\valda\DESKTOP_BACKUP"
commdesktop = "Z:\COMMONDESKTOP"
#!/usr/local/bin/ruby1.9
require 'rubygems'
require 'hpricot'
require 'pathname'
require 'yaml'
require 'yaml_waml'
require File.join(File.dirname(__FILE__), 'string_table')
orig_dir = Pathname.new(ARGV.shift)
#!/bin/sh
PATH=/bin:/usr/bin:/command
check_nginx () {
local -a nginx_stats
nginx_stats=(`svstat /service/nginx | cut -d ' ' -f 2,5`)
if [ ${nginx_stats[0]} != "up" ]; then
echo Nginx is dead.
return 1
fi
@valda
valda / emacsclientw.vbs
Created January 25, 2010 06:51
ntemacs/emacsclientw のラッパスクリプト
'
' C:\emacs23.1\bin\emacsclientw.vbs
'
Set objShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From Win32_Process")
Dim emacsProcess
#!/usr/bin/env ruby1.9
require 'rubygems'
require 'fcgiwrap'
CORE_DIR = "#{File.dirname(__FILE__)}/core"
$LOAD_PATH.unshift CORE_DIR
FCGIWrap.each do
load File.join(CORE_DIR, 'index.rb')
end
# -*- coding: utf-8-dos; mode: python -*-
import bosh
from bolt import GPath
bosh.initDirs()
bosh.initSettings(readOnly=True)
bosh.oblivionIni = bosh.OblivionIni()
bosh.modInfos = bosh.ModInfos()
bosh.modInfos.refresh()
@valda
valda / lovers_with_pk_lage_extend.py
Created July 14, 2010 02:27
Lovers の体位スロット拡張
# -*- coding: utf-8-dos; mode: python -*-
import bosh
from bolt import GPath
bosh.initDirs()
bosh.initSettings(readOnly=True)
bosh.oblivionIni = bosh.OblivionIni()
bosh.modInfos = bosh.ModInfos()
bosh.modInfos.refresh()
# -*- coding: utf-8-dos; mode: python -*-
import bosh
from bolt import GPath
bosh.initDirs()
bosh.initSettings(readOnly=True)
bosh.oblivionIni = bosh.OblivionIni()
bosh.modInfos = bosh.ModInfos()
bosh.modInfos.refresh()
@valda
valda / firepower_autobalance.py
Created September 30, 2010 04:43
任意の esp/m に含まれる武器の性能を FWE 準拠に調整する esp を生成するスクリプ㌧
# -*- coding: utf-8-dos; mode: python -*-
# requires: Wrye Flash 29 BETA or later.
import sys
import time
from optparse import OptionParser
from bash import bosh
from bash.bosh import formatInteger,formatDate
from bash.bolt import GPath