Skip to content

Instantly share code, notes, and snippets.

if [ $# -gt 0 ]; then
echo "开始分析..."
else
echo "请输入.rar的文件名!!!"
exit;
fi
name=$1
suffix=".rar"
#解压rar包
@lieyunye
lieyunye / audio_tag.rb
Created January 11, 2016 05:16 — forked from tabletick/audio_tag.rb
Audio/MP3 Plugin for Octopress
# Title: MP3 tag for Jekyll
# Authors: Devin Weaver, Daniel Roos (youtube changes)
# Description: Allows mp3 tag to include mp3 files embedded into the post.
# It uses the player 'audio.js' from http://kolber.github.com/audiojs/
#
# Install the plugin according to the manuel of the author by adding the necessary lines to the head-template
# and adding the files into the right directories.
#
# Please read my [blog post about it][2].
#
#!/bin/bash
echo Building Google Protobuf for Mac OS X / iOS.
echo Use 'tail -f build.log' to monitor progress.
(
PREFIX=`pwd`/protobuf
mkdir ${PREFIX}
mkdir ${PREFIX}/platform
@lieyunye
lieyunye / apns.py
Created April 8, 2014 09:25 — forked from henter/apns.py
import socket, ssl, json, struct
import binascii
def Payload(alert='', badge=1, data={}):
payload = {
'aps': {
'alert':alert,
'sound':'k1DiveAlarm.caf',
'badge':badge,
},