find /home/wwwroot/ -type f -print0 | xargs -0 sed -i 's/string/replacement/g'
或
find /home/wwwroot/ -type f -exec sed -i 's/string/replacement/g' {} \;
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2013 Yannick Albert <http://yckart.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Code is built by Ray. QQ: 75504026 E-mail:zhanglei@shibangcrusher.com | |
| # Development environment: win7 64bit, python 2.7.8 | |
| import socket | |
| import datetime | |
| from time import sleep | |
| import time | |
| HOST = '192.168.1.170' # Symbolic name meaning the local host |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Code is built by Ray. QQ: 75504026 E-mail:zhanglei@shibangcrusher.com | |
| # Development environment: win7 64bit, python 2.7.8 | |
| from SocketServer import TCPServer, ThreadingMixIn, StreamRequestHandler | |
| import datetime | |
| import time | |
| import socket | |
| import threading |
| #!/usr/bin/env python | |
| import SocketServer | |
| from threading import Thread | |
| class service(SocketServer.BaseRequestHandler): | |
| def handle(self): | |
| data = 'dummy' | |
| print "Client connected with ", self.client_address |
| // created by zhanglei http://www.love4026.org at 2011-2-23 | |
| var img=document.getElementsByTagName('img');function getElementsByClassName(strClassName){var arrElements=document.all?document.all:document.getElementsByTagName('*');var arrReturnElements=new Array();strClassName=strClassName.replace(/\-/g,"\\-");var oRegExp=new RegExp("(^|\\s)"+strClassName+"(\\s|$)");for(var i=0;i<arrElements.length;i++){if(oRegExp.test(arrElements[i].className)){arrReturnElements.push(arrElements[i]);}}return(arrReturnElements)}function getFloat(el){if(!window.getComputedStyle||!document.defaultView){if(el.getAttribute('align')=='left'||el.getAttribute('align')=='right')var y=el.getAttribute('align');else var y=el.currentStyle['styleFloat'];}else var y=document.defaultView.getComputedStyle(el,null).getPropertyValue('float');return y;}for(var i=0;i<img.length;i++){if(img[i].height>100&&img[i].width>100){var innerhtml=document.createElement('div');innerhtml.innerHTML='<span>Get a Quote</span>';innerhtml.className="imgHoverBtn";va |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import re | |
| import time | |
| import email | |
| import poplib | |
| import imaplib | |
| import cStringIO |
| #!/usr/bin/env python | |
| # Knuth-Morris-Pratt demonstration | |
| # Kyle Gorman <kgorman@ling.upenn.edu> | |
| # | |
| # A naive Python implementation of a function that returns the (first) index of | |
| # a sequence in a supersequence is the following: | |
| def subsequence(needle, haystack): | |
| """ | |
| Naive subsequence indexer; None if not found |
find /home/wwwroot/ -type f -print0 | xargs -0 sed -i 's/string/replacement/g'
或
find /home/wwwroot/ -type f -exec sed -i 's/string/replacement/g' {} \;
| :: Created by Ray <http://www.love4026.org> | |
| :: Date 2017-07-06 | |
| @echo off | |
| >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
| if '%errorlevel%' NEQ '0' ( | |
| color 0c | |
| @echo ================================= | |
| @echo 请以管理员权限运行此脚本! | |
| @echo ================================= |
| var LR_AFGK = 'ee9e4a5d8cf97feeeabc229b12fdc05377ff52295c390e0380d524f7611b634e175b43ef4d89a0c8e5d3eb9ecba73dae169e016527a478136fe4dfbcbeea2393'; | |
| eval(function(p, a, c, k, e, d) { | |
| e = function(c) { | |
| return (c < a ? "" : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) | |
| }; | |
| if (!''.replace(/^/, String)) { | |
| while (c--) d[e(c)] = k[c] || e(c); | |
| k = [function(e) { | |
| return d[e] | |
| }]; |