Skip to content

Instantly share code, notes, and snippets.

View zrong's full-sized avatar
🏠
Working from home

Jacky zrong

🏠
Working from home
View GitHub Profile
@zrong
zrong / ant.vim
Created December 19, 2011 01:51
Vim+Ant编译环境配置
command! -nargs=* Make call Ant(<f-args>)
" 映射编译快捷键
cmap <F11> Make fdb 0
map <F11> :Make fdb 0<CR>
map <S-F11> :Make 0 0<CR>
cmap <F12> Make ftp 0
map <F12> :Make ftp 0<CR>
function! GetMainFile(...)
@zrong
zrong / cutmp3.sh
Created February 12, 2017 11:38
cut a mp3 file by ffmpeg
#!/bin/bash
##############################
# cut a mp3 file
# @author rzeng
# @date 2017-02-12
# @requirements ffmpeg
##############################
if ! [ "$(which ffmpeg)" ];then
echo "Install ffmpeg first!"
@zrong
zrong / zrong.php-fpm.plist
Created August 1, 2017 03:33
zrong.php-fpm.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>zrong.php-fpm</string>
<key>ProgramArguments</key>
<array>
@zrong
zrong / shrink.sh
Last active March 6, 2018 08:29
shrink.sh
#!/bin/bash
##############################
# shrink the mp3 files
# @author rzeng
# @date 2017-02-12
# @update 2018-03-06
# @requirements lame
##############################
if ! [ "$(which lame)" ];then
@zrong
zrong / build.properties
Created August 29, 2011 13:58
Vim加入所有源文件进入缓冲区,调用Ant使用条件编译
# 设置FLEX SDK的路径
FLEX_HOME=D:/flex_sdks/4.5.1
# 设置源文件路径
# {$basedir} 就是本文件所在的目录
SRC_DIR =${basedir}/src
# libs目录,一般用来放swc文件
LIBS_DIR =${basedir}/libs
# 用于部署的文件夹
@zrong
zrong / build.properties
Created April 27, 2011 13:44
ant编译as项目的ant script(全面,smithfox提供)
#Flex SDK 路径
FLEX_HOME=D:\\flex\\flex_sdk_4.1.0.16076_mpl
#根目录
#APP_ROOT=G:\\riasource\\0.trunk
#ANT 安装目录
ANT_HOME=D:\\apache-ant-1.8.2
#本地部署目录(wamp/www)
#DEPLOY_DIR=E:/wamp/www/ihaveu2
@zrong
zrong / catm3u8.py
Last active May 17, 2022 22:47
解析 m3u8 格式并下载,合并成一个大文件。
#!/usr/bin/env python
############################
# 解析 m3u8 格式并下载
#
# @created: 2022-05-17
# @author: zrong
############################
import m3u8
import click
import time
@zrong
zrong / Buffer.ts
Created September 22, 2015 03:42
Int64.ts and Buffer.ts for egret.
////////////////////////////////////////
// Buffer.ts
// extend egret.ByteArray, implement writeInt64
// @author zrongzrong@gmail.com
// Creation 2015-09-14
////////////////////////////////////////
class Buffer extends egret.ByteArray
{
private static SIZE_OF_INT64:number = 8;
@zrong
zrong / dnspodsh.sh
Last active April 2, 2024 04:44
在bash中使用DNSPod的API接口实现DDNS客户端
#!/bin/bash
##############################
# dnspodsh v0.3
# 基于dnspod api构架的bash ddns客户端
# 作者:zrong(zengrong.net)
# 详细介绍:http://zengrong.net/post/1524.htm
# 创建日期:2012-02-13
# 更新日期:2012-03-11
##############################