Skip to content

Instantly share code, notes, and snippets.

@nemf
nemf / serial.bat
Created October 10, 2012 09:04
serial get
@echo off
for /F "skip=1 delims=" %%j in ('wmic bios get serialnumber') do (
set SERIAL=%%j
goto :DONE
)
:DONE
echo %SERIAL%
@nemf
nemf / roundcube0.94.patch
Created December 13, 2013 03:05
ISO-2022-JP-MS patch for roundcube 0.94
--- rcube_charset.php.org 2013-09-06 21:20:49.000000000 +0900
+++ rcube_charset.php 2013-12-13 11:27:54.000000000 +0900
@@ -177,6 +177,7 @@
static $mbstring_sch = null;
static $conv = null;
+ if(strcasecmp('iso-2022-jp', $from)===0) $from = 'ISO-2022-JP-MS';
$to = empty($to) ? RCUBE_CHARSET : $to;
$from = self::parse_charset($from);
@nemf
nemf / nemf.quickboy.com.conf
Created April 1, 2012 09:12
nginx configuration
server {
listen 80;
server_name nemf.quickboy.com;
root /usr/share/nginx/html;
location / {
# static files
if (-f $request_filename) {
break;
}
@nemf
nemf / gist:3794614
Created September 27, 2012 15:26
dhcp configuration for ipxe
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
### iPXE-specific options
#
# http://www.ipxe.org/howto/dhcpd
#
option space ipxe;
option ipxe-encap-opts code 175 = encapsulate ipxe;
option ipxe.priority code 1 = signed integer 8;