Skip to content

Instantly share code, notes, and snippets.

bigeagle bigeagle

Block or report user

Report or block bigeagle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View opensuse.html
<!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" />
View myscrot.sh
#!/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
View renren_status_backup.py
#!/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"
View clear_renren_status.py
#!/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/"
View arch_mirror.sh
#!/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
View access_hit.py
#!/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'
@bigeagle
bigeagle / thu6tunnel.sh
Created Feb 6, 2015
ISATAP tunnel for Tsinghua University
View thu6tunnel.sh
#!/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
View pacman -Qe
abook-vcard 0.6.0pre2-1
ack 2.14-1
acroread-fonts-systemwide 11.0.10-1
adobe-source-han-sans-cn-fonts 1.001-1
adobe-source-han-sans-jp-fonts 1.001-1
aisleriot 3.14.2-1
aliedit 1.0.3.20-2
alsa-utils 1.0.29-1
android-sdk-platform-tools r22-2
android-tools 5.0.2_r1-1
@bigeagle
bigeagle / stylish.css
Created May 3, 2015
Suzumiya Haruhi as Google Background
View stylish.css
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.google.com") {
@namespace url(http://www.w3.org/1999/xhtml);
#cnt {
background: url(https://dl.dropboxusercontent.com/u/4574342/SuzumiyaHaruhiNoYuutsu3.png) fixed no-repeat 100% 100% transparent;
}
}
@bigeagle
bigeagle / vimrc.vim
Last active Aug 29, 2015
vim-config-sample
View vimrc.vim
if !exists("g:vimrc_loaded")
" 设置颜色主题为 molokai
colorscheme molokai
let g:molokai_original = 1
if has("gui_running")
" 设置 gvim 的外观
set guioptions-=T "隐藏工具栏
set guioptions-=L
set guioptions-=r
set guioptions-=m
You can’t perform that action at this time.