View gist:9364368
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TCP端口 | |
nc -w 1 127.0.0.1 53 && echo true || echo false | |
UDP端口: | |
nc -w 1 -u 127.0.0.1 53 && echo true || echo false |
View web.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.webServer> | |
<validation validateIntegratedModeConfiguration="false"/> | |
<modules runAllManagedModulesForAllRequests="true"> | |
<add | |
name="DirectRequestModule" | |
preCondition="managedHandler" | |
type="Ext.Net.DirectRequestModule, Ext.Net" | |
/> | |
</modules> | |
<handlers> |
View set proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set http_proxy=http://proxy-bj1.petrochina:8080/ |
View gis install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requie python 2.6 this have josn packge | |
#install tornado | |
easy_install tornado | |
#install pyproj | |
wget http://pyproj.googlecode.com/files/pyproj-1.8.9.tar.gz | |
tar xvzf pyproj-1.8.9.tar.gz | |
cd pyproj-1.8.9 | |
python setup.py build |
View website2webapp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:args *.aspx */*.aspx */*/*.aspx */*/*/*.aspx | |
:argdo %s/Inherits="\(\w*\)"/Inherits="WebSite\.\1"/ge|update | |
:args *.ashx */*.ashx */*/*.ashx */*/*/*.ashx | |
:argdo %s/" Class="\(\w*".*$\)/" class="WebSite\.\1"namespace WebSite{/ge|$s/$/}/ge|update | |
:args *.ascx */*.ascx */*/*.ascx */*/*/*.ascx | |
:argdo %s/ Inherits="\(\w*\)"/ Inherits="WebSite\.\1"/ge |update |
View wordpressdotcom.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# Original File: https://github.com/mojombo/jekyll/blob/master/lib/jekyll/migrators/wordpress.rb | |
# Modified by Yu-Cheng Chuang <ducksteven@gmail.com> | |
# Licensed under MIT License (same as the original file) | |
# This version of wordpressdotcom.rb is compatible | |
# with the real-world Wordpress.com export file, which: | |
# | |
# - Makes paragraphs (<p>) and line breaks (<br>) |
View redis-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
View table space
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER PCEDM_DM IDENTIFIED BY PDM123 | |
DEFAULT TABLESPACE epdms | |
TEMPORARY TABLESPACE temp | |
QUOTA UNLIMITED ON epdms; | |
GRANT CREATE SESSION to PCEDM_DM; | |
GRANT CREATE SYNONYM TO PCEDM_DM; | |
GRANT CREATE PROCEDURE TO PCEDM_DM; | |
GRANT CREATE TABLE TO PCEDM_DM; | |
GRANT CREATE VIEW TO PCEDM_DM; |
View redminebackup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
backuppath="/home/epmds/backup" | |
user="" | |
password="" | |
db="" | |
redsource="" | |
# backup mysql |
View nginx wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
server_name demo.xiangjian.info ; | |
root /srv/www/demo.xiangjian.info/public; | |
access_log /srv/www/demo.xiangjian.info/log/access.log; | |
error_log /srv/www/demo.xiangjian.info/log/error.log; | |
location / { | |
index index.php; |
OlderNewer