Skip to content

Instantly share code, notes, and snippets.

View qichunren's full-sized avatar
🌈
Focusing contribute

Qichunren qichunren

🌈
Focusing contribute
View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""
new Validation('<%="category_#{category.id.to_i}"%>', {immediate: false, onFormValidate: function(result, form){
if(result){
$('submit_<%=category.id.to_i%>').value='保存..';
$('submit_<%=category.id.to_i%>').disable();
new Ajax.Request('<%=url_for(:action => "update_category_score_params", :id => category.id.to_i)%>', {
asynchronous:true, evalScripts:true,onComplete:function(response){$('submit_<%=category.id.to_i%>').value='保存';$('submit_<%=category.id.to_i%>').enable();$('submit_<%=category.id.to_i%>').value='保存';},parameters:Form.serialize(form)}
);
}}});
function $(s){return document.getElementById(s);}
var lunarInfo=new Array(
0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,
0x04ae0,0x0a5b6,0x0a4d0,0x0d250,0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977,
0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60,0x09570,0x052f2,0x04970,
0x06566,0x0d4a0,0x0ea50,0x06e95,0x05ad0,0x02b60,0x186e3,0x092e0,0x1c8d7,0x0c950,
0x0d4a0,0x1d8a6,0x0b550,0x056a0,0x1a5b4,0x025d0,0x092d0,0x0d2b2,0x0a950,0x0b557,
0x06ca0,0x0b550,0x15355,0x04da0,0x0a5d0,0x14573,0x052d0,0x0a9a8,0x0e950,0x06aa0,
0x0aea6,0x0ab50,0x04b60,0x0aae4,0x0a570,0x05260,0x0f263,0x0d950,0x05b57,0x056a0,
#!/bin/bash
ps aux | grep dispatch.fcgi | egrep -v grep | awk '{print $2}' | xargs kill -9
#!/usr/bin/env ruby
# 批量替换 指定目录及其子目录中所有文件内的字符串
class File
class << self
def gsub!(s,t,dir=Dir.pwd)
Dir.entries(dir).each do |f|
@qichunren
qichunren / hh
Created September 24, 2010 07:53
jj
require "thor/shell"
say("Modifying a new Rails app ...", :yellow)
#----------------------------------------------------------------------------
# Configure
#----------------------------------------------------------------------------
=begin
unless options[:database] == 'sqlite3'
username = ask("What's your database username[root]")
username = 'root' if username.blank?
@qichunren
qichunren / script.sh
Created February 15, 2011 02:11
with different port
scp -P 8705 demo.git.tar.gz root@xxx.xx.xxx.xxx:/home/git/repos
git clone ssh://git@xxx.xx.xxx.xxx:8705/home/git/repos/demo.git
@qichunren
qichunren / syn_repos.md
Created February 15, 2011 02:13
update code with official repos

Update a Github Fork from the Original Repo

Here

   git remote add --track master mleung git://github.com/mleung/feather.git

   git remote

   git fetch mleung
@qichunren
qichunren / install_git.md
Created February 15, 2011 02:15
How to install git on centos