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
# SETTING UP : | |
# Generate an application token for your dropbox account and set it as environment variable named "DROPBOX_TOKEN" | |
# - https://blogs.dropbox.com/developers/2014/05/generate-an-access-token-for-your-own-account/ | |
# - https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html | |
# Set environment variable TEX_FILE according to the main tex file name | |
image: wanhu/texlive-basic:latest | |
pipelines: | |
default: |
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
# SETTING UP : | |
# Generate an application token for your dropbox account and set it as environment variable named "DROPBOX_TOKEN" | |
# - https://blogs.dropbox.com/developers/2014/05/generate-an-access-token-for-your-own-account/ | |
# - https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html | |
# Set environment variable TEX_FILE according to the main tex file name | |
image: wanhu/texlive-basic:latest | |
pipelines: | |
default: |
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 | |
# Baidu Yun Command Line Interface | |
# Depends: bash, curl, grep, awk, sed, od | |
# (They are basicly builtin tools of any *nix system.) | |
# Additionally, fastupload depends: head, wc, md5sum or md5, cksum | |
# (Which are also builtin tools) | |
#### Variables #### |
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 | |
# Alireza Haghdoost pdf2eps converter | |
# http://ce.sharif.edu/~haghdoost/mypages/pdf2eps.html | |
# http://tex.stackexchange.com/questions/20883/how-to-convert-pdf-to-eps | |
# | |
# Need xpdf(pdftops) and texlive-extra-utils(pdfcrop) package to work on Linux OS | |
# | |
# Usage: $ pdf2eps foo.pdf | |
# or $ pdf2eps *.pdf | |
function timer() |
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/sh -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. |
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
From 279cb88d74c75e5dc4876a2dcd1f1aefc62d60ba Mon Sep 17 00:00:00 2001 | |
From: Wan Hu <[email protected]> | |
Date: Thu, 3 Sep 2015 20:41:09 +0800 | |
Subject: [PATCH] Buffer-layer tracing support for ext4/jbd2 | |
--- | |
fs/Kconfig | 4 + | |
fs/Makefile | 1 + | |
fs/jbd2-kernel.c | 254 +++++++++++++++++++++++++++++++++++++++++++ | |
include/linux/buffer-trace.h | 52 +++++++++ |
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
// http://blog.csdn.net/chenyiming_1990/article/details/8683413 | |
#include <stdio.h> | |
#include <setjmp.h> | |
static jmp_buf buf; | |
void second(void) { | |
printf("second\n"); // 打印 | |
longjmp(buf,1); // 跳回setjmp的调用处 - 使得setjmp返回值为1 | |
} |
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/sh -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. |
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 | |
#yesterday=`date -d '-1 day' +%Y%m%d` | |
today=`date +%Y%m%d` | |
pagebegin=`date -f <(seq 20140101 $today) +%F 2>/dev/null |wc -l` | |
pageend=$(($pagebegin+1)) | |
filename="daydayup.pdf" | |
username="printer" | |
if [ ! -f hist.ory ]; then |
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 HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> | |
<!-- saved from url=(0023)http://sts.ustc.edu.cn/ --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>中国科学技术大学科技哲学教研部</title> | |
<meta name="GENERATOR" content="MSHTML 8.00.6001.19170"></head> | |
<body> | |
<table border="0" cellspacing="0" cellpadding="0" width="894" bgcolor="#ffffff" align="center"> | |
<tbody> | |
<tr> | |
<td height="140" background="http://sts.ustc.edu.cn/images/top.jpg"> |