Skip to content

Instantly share code, notes, and snippets.

View litefeel's full-sized avatar
🎯
I may be slow to respond.

Xiaoqing Zhang litefeel

🎯
I may be slow to respond.
View GitHub Profile
@litefeel
litefeel / TriggerContainerEditor.cs
Created May 17, 2018 01:50 — forked from bzgeb/TriggerContainerEditor.cs
Example Drag & Drop area in a custom inspector for the Unity editor
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor (typeof(TriggerContainer))]
public class TriggerContainerEditor : Editor
{
private SerializedObject obj;
@litefeel
litefeel / trial.key
Created August 25, 2017 02:17 — forked from huqi/trial.key
Beyond Compare 4 license for Mac
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
@litefeel
litefeel / readme.txt
Created December 17, 2016 13:11 — forked from knightao/readme.txt
shadowsocks 公共代理的必要设置
good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。
但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能)
本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考
https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks
1、 shadowsocks的timeout设置
超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。
2、 检查操作系统的各种限制
对于openvz的vps,特别需要检查一下
@litefeel
litefeel / xcode-build-bump-lastnum.sh
Last active September 29, 2016 07:22 — forked from sekati/xcode-build-bump.sh
Xcode Auto-increment Build & Version Numbers
oldnum=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
if [[ ! -f "lastbuildnumber" ]]; then
echo $oldnum > "lastbuildnumber"
fi
lastnum=`cat lastbuildnumber`
#lastnum=fdsafd
echo "lastnum=${lastnum}"
@litefeel
litefeel / PbxModifier.cs
Last active September 7, 2016 03:47 — forked from keijiro/PbxModifier.cs
(Unity Xcode Manipulation API) An example which modifies compiler flags for a given source file.
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using System.IO;
public class PbxModifier
{
[PostProcessBuild]
public static void OnPostprocessBuild(BuildTarget buildTarget, string path)
@litefeel
litefeel / BitmapChar.as
Created March 14, 2016 01:49 — forked from 7interactivestudio/BitmapChar.as
Bitmap Chars for Genome2D Font created with Littera ( http://kvazars.com/littera/ ) GBitmapFont Topic and Demo: http://forum.genome2d.com/viewtopic.php?f=6&t=111
/**
* Created by rodrigo on 12/14/13.
*/
package rodrigolopezpeker.genome2d.text {
import com.genome2d.textures.GTexture;
import flash.utils.Dictionary;
public class BitmapChar {
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4'
}
}
apply plugin: 'android'