This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="Content-Language" content="zh-CN" /> | |
<meta name="keywords" content="BT 北邮" /> | |
<meta name="description" content="北邮人BT" /> | |
<meta name="generator" content="NexusPHP" /> | |
<title>BYRBT :: 搜索结果 - opensuse - Powered by NexusPHP</title> | |
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> |
This file contains hidden or 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 | |
target="/tmp/$(mktemp -u scrot.XXXXX).png" | |
scrot $@ $target | |
editor=$(zenity --list --text "Choose how to open the picture" --radiolist --column "pick" --column "option" TRUE gthumb FALSE gimp) | |
if [ $? = 0 ]; then | |
$editor $target | |
fi | |
[ $? = 0 ] && rm $target |
This file contains hidden or 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 | |
CWD="/home/bigeagle/scripts/mirror" | |
SYNC_HOME="/home/mirror" | |
SYNC_FILES="$SYNC_HOME/ubuntu" | |
SYNC_LOCK="$SYNC_HOME/ubuntu.lck" | |
#SYNC_SERVER="rsync://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/" | |
#SYNC_SERVER="rsync://mirrors6.ustc.edu.cn/ubuntu/" | |
LOG_FILE="/tmp/ubuntu.log" |
This file contains hidden or 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
#!/usr/bin/env python2 | |
# -*- coding:utf-8 -*- | |
import requests | |
import time | |
from pyquery import PyQuery as pq | |
from urlparse import urlparse, parse_qs | |
backup_file = "backup.txt" | |
base_url = "http://3g.renren.com/" |
This file contains hidden or 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
#!/usr/bin/env python2 | |
# -*- coding:utf-8 -*- | |
import requests | |
import re | |
import time | |
import json | |
from pyquery import PyQuery as pq | |
from urlparse import urlparse, parse_qs | |
backup_file = "backup/page_{}.json" |
This file contains hidden or 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 | |
ARCH_UPSTREAM="mirrors6.ustc.edu.cn" | |
LOCK="/tmp/arch-mirror.lck" | |
( | |
# Wait for lock on /var/lock/.myscript.exclusivelock (fd 200) for 10 seconds | |
flock -x -w 10 200 || exit 1 | |
rsync -6 -aHv --delete-after rsync://${ARCH_UPSTREAM}/archlinux/ /mnt/sdb1/mirror/archlinux/current/ &> /tmp/rsync.log | |
echo "$(date --rfc-3339=seconds)" >> /tmp/rsync.log |
This file contains hidden or 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
#!/usr/bin/env python2 | |
# -*- coding:utf-8 -*- | |
import ipaddr | |
import logging | |
import re | |
from settings import LOG_FILE_FORMAT, THU_IP | |
logger = logging.getLogger(__name__) | |
FORMAT = '%(asctime)-15s [%(levelname)s] %(message)s' |
This file contains hidden or 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
package main | |
import ( | |
"bufio" | |
"crypto/md5" | |
"crypto/rc4" | |
"encoding/base64" | |
"flag" | |
"fmt" | |
"io" |
This file contains hidden or 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
gst-launch-1.0 \ | |
v4l2src device=/dev/video1 ! video/x-raw,width=864,height=480 ! videoconvert ! \ | |
clockoverlay shaded-background=true time-format="%H:%M:%S" ! vp8enc ! tee name=videoTee \ | |
pulsesrc ! vorbisenc ! tee name=audioTee \ | |
webmmux name=streamMux ! shout2send ip=IP port=PORT password=PASSWORD mount=/tuna.webm \ | |
webmmux name=fileMux ! filesink location=tuna.webm \ | |
audioTee. ! queue ! streamMux.audio_0 \ | |
videoTee. ! queue ! streamMux.video_0 \ | |
audioTee. ! queue ! fileMux.audio_0 \ | |
videoTee. ! queue ! fileMux.video_0 |
This file contains hidden or 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 | |
### begin user configuration | |
# thu6tunnel eth0 start | |
# thu6tunnel eth0 stop | |
# iface - interface name that is to be created for the 6in4 link | |
iface=sit1 | |
touch /tmp/6tunnel |