Skip to content

Instantly share code, notes, and snippets.

View roceys's full-sized avatar
🎯
Focusing

roceys roceys

🎯
Focusing
View GitHub Profile
<?php
/**
* Plugin Name: Disable XMLRPC
* Version: 0.1
* Plugin URI: http://wpengineer.com/?p=2484
* Description: Disable XMLRPC server for WP >= v3.5
* Author: Lutz Schröer
* Author URI: http://elektroelch.net/
*/
@roceys
roceys / dubbo.xsd
Last active August 29, 2015 14:13 — forked from atttx123/dubbo.xsd
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns="http://code.alibabatech.com/schema/dubbo"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:tool="http://www.springframework.org/schema/tool"
targetNamespace="http://code.alibabatech.com/schema/dubbo">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:import namespace="http://www.springframework.org/schema/beans"/>
<xsd:import namespace="http://www.springframework.org/schema/tool"/>
<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
require "JSONDB.php";
if(isset($_GET["limit"])) {
$limit = $_GET["limit"];
} else {
@roceys
roceys / contacts.png
Created September 26, 2015 08:53 — forked from ym/contacts.png
Data sent by Juhe.cn SDK
contacts.png
package main
//Usage: vsina http://video.weibo.com/show?fid=1034:0e906d53094c5d231bf09028af8ba9b1
import (
"bufio"
"fmt"
"github.com/astaxie/beego/httplib"
"io"
"io/ioutil"
"net/url"
@roceys
roceys / dabblet.css
Created November 2, 2015 08:52
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
<?xml version="1.0" encoding="utf-8"?>
<dns>
<retcode>0</retcode>
<domainlist>
<domain name="extshort.weixin.qq.com" timeout="1800">
<ip>101.226.76.175</ip>
<ip>101.227.131.102</ip>
</domain>
<domain name="long.weixin.qq.com" timeout="1800">
@roceys
roceys / PingClient.java
Created March 22, 2016 07:30 — forked from yongboy/PingClient.java
Java Ping Client
/**
* Ping Client
* @author nieyong
*/
package com.learn;
import io.netty.bootstrap.Bootstrap;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.channel.ChannelFuture;
@roceys
roceys / pong_server.c
Created March 22, 2016 07:30 — forked from yongboy/pong_server.c
pong_server.c use the C.
/**
* nieyong@youku.com
* how to compile it:
* gcc pong_server.c -o pong_server /usr/local/lib/libev.a -lm
*/
#include <arpa/inet.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
import os
import sys
import re
import hashlib
import csv
import time
import locale
import getopt