Skip to content

Instantly share code, notes, and snippets.

#coding=utf8
##版本:1.0
##环境:python2.7
##作者:moxie
##日期:2013.08.23
##说明:文件生成目录为:D:/ludatui
import urllib2,urllib
import re
@guoyu07
guoyu07 / loudatui.rb
Created March 23, 2016 09:05 — forked from lsongdev/loudatui.rb
Image downloader for loudatui.com
require 'net/http'
require 'nokogiri'
###
# Lsong
# i@lsong.org
# http://lsong.org
#
# MIT LICENSE
# http://lsong.mit-license.org/
#
@guoyu07
guoyu07 / phpzmqinstall.sh
Created January 17, 2017 02:21 — forked from Kamisama666/phpzmqinstall.sh
Installation of ZeroMQ and php-zmq extension on Ubuntu 14.04. Must be run as root
#!/bin/bash
cd /tmp
apt-get update
apt install -y libtool pkg-config build-essential autoconf automake uuid-dev git wget
git clone git://github.com/jedisct1/libsodium.git
cd libsodium/
./autogen.sh
./configure && make check
make install
ldconfig
@guoyu07
guoyu07 / default.conf
Created February 7, 2017 07:34
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@guoyu07
guoyu07 / myservice
Created March 27, 2017 01:57 — forked from bramus/myservice
Running a PHP script as a service/daemon using `start-stop-daemon`
#! /bin/sh
# Installation
# - Move this to /etc/init.d/myservice
# - chmod +x this
#
# Starting and stopping
# - Start: `service myservice start` or `/etc/init.d/myservice start`
# - Stop: `service myservice stop` or `/etc/init.d/myservice stop`
@guoyu07
guoyu07 / fcgi_jailbreak.php
Created May 3, 2017 03:37 — forked from wofeiwo/fcgi_jailbreak.php
Jail break for PHP 5.3.3+ FASTCGI
<?php
/**
* PHP 5.3.3+ FASTCGI jailbreak
*
* @author wofeiwo <wofeiwo#80sec.com>
* @date 2013-01-23
* @version 1.0
* @reference https://bugs.php.net/bug.php?id=64103
* @reference http://www.wooyun.org/bugs/wooyun-2013-018116 (Chinese)
* @note disable php security settings, but can't overwrite disable_function/disable_classes.
@guoyu07
guoyu07 / fcgi_jailbreak.php
Created May 3, 2017 03:37 — forked from wofeiwo/fcgi_jailbreak.php
Jail break for PHP 5.3.3+ FASTCGI
<?php
/**
* PHP 5.3.3+ FASTCGI jailbreak
*
* @author wofeiwo <wofeiwo#80sec.com>
* @date 2013-01-23
* @version 1.0
* @reference https://bugs.php.net/bug.php?id=64103
* @reference http://www.wooyun.org/bugs/wooyun-2013-018116 (Chinese)
* @note disable php security settings, but can't overwrite disable_function/disable_classes.
@guoyu07
guoyu07 / phabricator_readme.md
Created May 3, 2017 05:36 — forked from sparrc/phabricator_readme.md
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

@guoyu07
guoyu07 / build_mysql.sh
Created May 9, 2017 06:53 — forked from shichao-an/build_mysql.sh
Build and install MySQL 5.1 from source on Ubuntu 14.04
#!/bin/bash
# Run as root
set -e
apt-get update
apt-get install -y build-essential
apt-get install -y libncurses5-dev
useradd mysql
@guoyu07
guoyu07 / yii-autocomplete-phpstorm.md
Created May 24, 2017 06:14 — forked from umidjons/yii-autocomplete-phpstorm.md
Yii: PhpStorm configurations for Yii framework

Additional configurations for PhpStorm to develop with Yii framework

Autocomplete Yii::app() components

Open framework/yii.php file, override app() static method as follow:

<?php
class Yii extends YiiBase
{
	/**
 * @static