Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
sudo yum -y install gcc gcc++ gcc-c++ wget make libmcrypt libmcrypt-devel libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel bison autoconf
sudo wget http://cn2.php.net/distributions/php-7.1.17.tar.gz
sudo tar -zxvf php-7.1.17.tar.gz
cd php-7.1.17
./configure \
--prefix=/usr/local/php71 \
--exec-prefix=/usr/local/php71 \
--bindir=/usr/local/php71/bin \
--sbindir=/usr/local/php71/sbin \
@rongself
rongself / multi-passcode.user.js
Last active November 3, 2020 21:58
iitc script for multi passcode apply (点击下面raw按钮安装)
// ==UserScript==
// @id iitc-plugin-multi-passcode@rongself
// @name IITC plugin: multi passcode apply
// @category Controls
// @version 0.1.0.20150917.154202
// @namespace https://gist.github.com/rongself/288ad6c887ffb184b469ae0295acc642
// @updateURL https://gist.github.com/rongself/288ad6c887ffb184b469ae0295acc642
// @downloadURL https://gist.github.com/rongself/288ad6c887ffb184b469ae0295acc642
// @description [rongself-2016-07-17-154202] script for multi passcode apply
// @include https://www.ingress.com/intel*
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@rongself
rongself / CKeditorFileUploader.php
Created April 9, 2015 09:20
File upload handle for CKeditor
<?php
/**
* User: Ron
* Date: 2015/4/9
* Time: 14:09
* Depend on https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/UploadHandler.php
*/
class CKeditorFileUploader extends UploadHandler {
@rongself
rongself / SystemLog.php
Created February 26, 2015 03:11
easy file log
<?php
/**
* Created by PhpStorm.
* User: Ron
* Date: 14-12-30
* Time: 下午5:57
*/
class Application_Model_SystemLog extends Zend_Log {
@rongself
rongself / MessageHelper.php
Created February 3, 2015 01:47
a message helper with session
<?php
/**
* Created by PhpStorm.
* User: Ron
* Date: 14-6-2
* Time: 下午5:59
*/
class Zend_View_Helper_MessageHelper{
/**
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 14-12-4
* Time: 下午1:44
*/
class ParamsEncryptor {
public static $cipher = MCRYPT_DES;
@rongself
rongself / CzImage.php
Created December 3, 2014 16:01
image resize
<?php
class CzImage{
protected $resource;
protected $newResource;
protected $name;
protected $path;
protected $width;
protected $height;
protected $ext;
protected $mime;
@rongself
rongself / addhost
Created November 4, 2014 04:02
add host mapping to hosts file
#!/bin/bash
HOSTSPATH="/c/Windows/System32/drivers/etc/hosts"
if [[ $1 == "-h" || $1 == "--help" || $1 == "?" ]]; then
cat << HELP
Usage:
addhost
addhost [ip] [hostname]
addhost [-l|-e|-h]
@rongself
rongself / focusImage.js
Created January 24, 2013 05:27
一个焦点图插件
/**
* FireImg
* by ron 2012.9
*
**/
(function($){
function FireImg(el,setting){
var self = this;
var IntervalId;