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/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 \ |
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
// ==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* |
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
# 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 -> |
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
<?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 { |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Ron | |
* Date: 14-12-30 | |
* Time: 下午5:57 | |
*/ | |
class Application_Model_SystemLog extends Zend_Log { |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Ron | |
* Date: 14-6-2 | |
* Time: 下午5:59 | |
*/ | |
class Zend_View_Helper_MessageHelper{ | |
/** |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Administrator | |
* Date: 14-12-4 | |
* Time: 下午1:44 | |
*/ | |
class ParamsEncryptor { | |
public static $cipher = MCRYPT_DES; |
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
<?php | |
class CzImage{ | |
protected $resource; | |
protected $newResource; | |
protected $name; | |
protected $path; | |
protected $width; | |
protected $height; | |
protected $ext; | |
protected $mime; |
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/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] | |
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
/** | |
* FireImg | |
* by ron 2012.9 | |
* | |
**/ | |
(function($){ | |
function FireImg(el,setting){ | |
var self = this; | |
var IntervalId; |