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
Show hidden characters
//C.sublime-build | |
//A sublime build system configuration file for C. | |
//Run C program in xterm | |
{ | |
"cmd": ["gcc", "${file}", "-o", "${file_path}/${file_base_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c", | |
"variants": |
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
for i in *.mp3;do | |
a=`mid3v2 -l "$i" |grep "^TIT2"` | |
b=`mid3v2 -l "$i" |grep "^TPE1"` | |
if [ ! -z "$a" ] && [ ! -z "$b" ]; then | |
c=`echo $a|awk -F "=" '{print $2}'` | |
d=`echo $b|awk -F "=" '{print $2}'` | |
mv "$i" "$d - $c.mp3" | |
echo "$i mv to $d - $c.mp3" | |
fi | |
done |
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
function myfun(tag,actionname,xnxq,kcid,kcbjbh,kclb,kcsx,sjpdm,kssjdm,cxck,zylx,gxkfl,xlh,qsz,jzz){ | |
insertxkgc(xnxq,kcbjbh,kcid,kclb,kcsx,cxck,'01',gxkfl,xlh,sjpdm,kssjdm); | |
} | |
function myfun2(){ | |
var xmlhttp=new XMLHttpRequest(); | |
xmlhttp.open("GET",location.href,false); | |
xmlhttp.send(); | |
var x=xmlhttp.responseText.match("<font color=blue>40</font></a>"); | |
if(x!=null){ |
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
# ~/.config/systemd/user/conky.service | |
[Unit] | |
Description=Conky | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/conky | |
Environment=DISPLAY=:0 |
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
/** | |
* @author SJ Zhu | |
* @license GPL-3.0 | |
* @date 2015-11-19 | |
*/ | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <stdlib.h> | |
#include <stdio.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
#!/bin/bash | |
# check deb repo consistency | |
# by SJ Zhu | |
test() { | |
release=$1 | |
start=0 | |
while read line; do | |
if [[ "$line" = "SHA1:" ]]; then |
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 | |
ips=() | |
while getopts "d:" opt; do | |
case $opt in | |
d) | |
t=$(dig "$OPTARG" +noadditional|awk '/A\t/ {print $5}') | |
ips+=(${t//$'\n'/ }) | |
;; | |
esac | |
done |
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
# alias | |
fn ... { cd ../.. } | |
fn .... { cd ../../.. } | |
fn ls { e:ls --color=auto $@ } | |
fn l { ls -alh $@ } | |
fn grep { e:grep --color $@ } | |
fn mtr { e:mtr --curses $@ } | |
fn gst { git status $@ } | |
fn gc { git commit -v $@ } | |
fn gca { git commit -v -a $@ } |
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 | |
# check deb repo consistency | |
# by SJ Zhu | |
set -e | |
test() { | |
release=$1 | |
start=0 |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
OlderNewer