Skip to content

Instantly share code, notes, and snippets.

@nemf
nemf / .htaccess-NG
Created April 1, 2012 08:43
mod_rewrite in .htaccess
# document_root/pmp/.htaccess
# NG
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/pmp(.*)$ http://pmp.nemf.quickboy.com/$1 [R=301,L]
</IfModule>
@nemf
nemf / base.css.diff
Created April 1, 2012 10:51
wordpress theme EvoLve customize - Logo font size
111c111
< #logo, #logo a { position:relative;font:bold 55px/55px "Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif;float:left; margin-right:10px; letter-spacing:-3px;}
---
> #logo, #logo a { position:relative;font:bold 33px/33px "Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif;float:left; margin-right:10px; letter-spacing:-3px;}
@nemf
nemf / functions.php.diff
Created April 1, 2012 11:38
wordpress theme EvoLve customize - AdCode filter
2633c2633
< $input['evl_space_1'] = wp_filter_post_kses( $input['evl_space_1'] );
---
> //$input['evl_space_1'] = wp_filter_post_kses( $input['evl_space_1'] );
2635c2635
< $input['evl_space_2'] = wp_filter_post_kses( $input['evl_space_2'] );
---
> //$input['evl_space_2'] = wp_filter_post_kses( $input['evl_space_2'] );
2637c2637
< $input['evl_space_3'] = wp_filter_post_kses( $input['evl_space_3'] );
@nemf
nemf / sparkleshare
Created June 10, 2012 08:44
SparkleShare Dashboard Start/Stop Script
#!/bin/sh
# chkconfig: - 85 15
### BEGIN INIT INFO
# Version : 0.2
# Author : Fabrice MARCHAL
# Provides: sparkleshare
# Short-Description: SparkleShare Dashboard
# Description: Launches the SparkleShare Dashboard as service.
@nemf
nemf / config.js
Created June 10, 2012 08:35
config.js for SparkleShare Dashboard
// Dashboard から管理したい git レポジトリの path を指定します。
// pub: true -> 認証なしでみれる
// pub: false -> 認証ないとみれない
//
exports.folders = [
{ type: 'git', name: 'Public GIT folder', path: '/home/nexus/Desktop/play/SparkleDashboard-x/repos/g1', pub: true },
{ type: 'git', name: 'Private GIT folder', path: '/home/nexus/Desktop/play/SparkleDashboard-x/repos/g2', pub: false }
];
// Listen する IP, Port の指定
@nemf
nemf / gist:3109649
Created July 14, 2012 06:09
Minimal Kickstart for CentOS 6.3
install
url --url http://ftp.iij.ad.jp/pub/linux/centos/6.3/os/x86_64/
# if you use proxy
# url --url http://ftp.iij.ad.jp/pub/linux/centos/6.3/os/x86_64/ --proxy http://proxy-ip:8080/
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp
rootpw password
firewall --disabled
authconfig --enableshadow --passalgo=sha512
#!ipxe
imgfree
chain http://${next-server}/switch-pxe.php?serial=${serial:uristring} || shell
vbell off
autodetach on
defscrollback 9999
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= %c"
@nemf
nemf / smb.conf
Created September 26, 2012 13:46
samba annoymous share
[global]
guest account = nobody
map to guest = bad user
[tftpboot]
browsable = yes
path = /tftpboot
public = yes
writable = yes
guest ok = yes
@nemf
nemf / gist:3794569
Created September 27, 2012 15:17
ipxe, wimboot
## ipxe
git clone http://git.ipxe.org/ipxe.git
cd src
make bin/undionly.kpxe
cp bin/undionly.kpxe /tftpboot
## wimboot
git clone http://git.ipxe.org/wimboot.git
cd wimboot
cp -p wimboot /tftpboot