Skip to content

Instantly share code, notes, and snippets.

View fukusaka's full-sized avatar

Shoichi Fukusaka fukusaka

View GitHub Profile
//
// cut referer
//
function cutreferer(objLink)
{
var url = objLink.href;
var isMSIE = /*@cc_on!@*/false;
if (isMSIE) {
#!/usr/bin/perl
#
# Copyright (c) 2006 Shoichi Fukusaka. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
diff -uNr unfs3-0.9.20/nfs.c unfs3-0.9.20.utf8mac/nfs.c
--- unfs3-0.9.20/nfs.c 2007-12-06 04:20:43.000000000 +0900
+++ unfs3-0.9.20.utf8mac/nfs.c 2008-03-05 17:05:34.000000000 +0900
@@ -49,6 +49,8 @@
#include "Config/exports.h"
#include "Extras/cluster.h"
+#include "path_conv.h"
+
/*
#!/bin/bash
HOST=ref1
TARGET=target
TARGET_IF=eth0
#TARGET=target2
#TARGET_IF=eth1
MODS="via_velocity velocityget"
MOD=via_velocity
#!/bin/bash
#METHOD=netperf
METHOD=nuttcp
HOST=ref1
HOSTIP="192.168.0.2"
TARGETUSER=root
TARGET=target
#!/bin/sh
#SAVEVMDIR="/var/lib/libvirt/save"
#LISTVM_SHUTDOWN="linux_sid linux_fedora"
#LISTVM_SAVE="freebsd_cur netbsd_cur solaris"
VIRSH=${VIRSH:-/usr/bin/virsh}
SAVEVMDIR=${SAVEVMDIR:-/var/lib/libvirt/save}
TIMEOUT_SHUTDOWN=${TIMEOUT_SHUTDOWN:-900}
--- /etc/init.d/libvirt-bin.org 2009-12-10 23:38:47.000000000 +0900
+++ /etc/init.d/libvirt-bin 2010-01-15 17:14:46.000000000 +0900
@@ -19,6 +19,7 @@
DAEMON=/usr/sbin/libvirtd
NAME=libvirtd
DESC="libvirt management daemon"
+STARTSTOPVM=/etc/libvirt/libvirt-start-stop-vm.sh
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
--- linux-source-2.6.26/drivers/net/via-velocity.c.1.14 2009-09-19 01:10:51.000000000 +0900
+++ linux-source-2.6.26/drivers/net/via-velocity.c 2009-09-19 01:12:22.000000000 +0900
@@ -400,6 +400,7 @@
static u32 mii_check_media_mode(struct mac_regs __iomem * regs);
static u32 check_connection_type(struct mac_regs __iomem * regs);
static int velocity_set_media_mode(struct velocity_info *vptr, u32 mii_status);
+static int velocity_set_wol(struct velocity_info *vptr);
#ifdef CONFIG_PM
diff -ur Velocity_1.36.orig/velocity_main.c Velocity_1.36/velocity_main.c
--- Velocity_1.36.orig/velocity_main.c 2008-06-09 23:35:43.000000000 +0900
+++ Velocity_1.36/velocity_main.c 2009-09-19 04:57:00.000000000 +0900
@@ -632,8 +632,6 @@
pInfo->hw.hw_addr = hw_addr;
- velocity_create_proc_entry(pInfo);
-
mac_wol_reset(&pInfo->hw);
--- linux-source-2.6.26/drivers/net/via-velocity.c.1.14a 2009-09-26 21:08:00.000000000 +0900
+++ linux-source-2.6.26/drivers/net/via-velocity.c 2009-09-29 01:09:42.000000000 +0900
@@ -362,7 +362,7 @@
#define INT_WORKS_DEF 20
#define INT_WORKS_MIN 10
-#define INT_WORKS_MAX 64
+#define INT_WORKS_MAX 256
VELOCITY_PARAM(int_works, "Number of packets per interrupt services");