Skip to content

Instantly share code, notes, and snippets.

View yuikns's full-sized avatar

Yu yuikns

View GitHub Profile
links :
https://github.com/sharelatex/sharelatex/wiki/Production-Installation-Instructions
https://github.com/sharelatex/sharelatex/wiki/Setting-up-a-Development-Environment
link to mongodb with username & password :
https://github.com/sharelatex/sharelatex/issues/167
not compile :
https://github.com/LaTeXing/LaTeXing/issues/37
you need a latexmk version >= 4.39
-Xmx350g
-Xms100g
-XX:+UseConcMarkSweepGC
-XX:ParallelCMSThreads=16
-XX:ParallelGCThreads=16
/**********************************************************************
Author: Sherlock
Created Time: 2008-10-28 16:24:47
File Name:
Description:
**********************************************************************/
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
@yuikns
yuikns / puias.repo
Last active November 25, 2018 14:37
# ref : http://springdale.math.ias.edu/wiki/YumRepositories6
# to impport gpg-key , you should :
# curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-puias http://springdale.math.ias.edu/data/puias/7/x86_64/os/RPM-GPG-KEY-puias
# or :
# rpm --import http://springdale.math.ias.edu/data/puias/7/x86_64/os/RPM-GPG-KEY-puias
# additional , you may also use :
# curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-springdale http://springdale.math.ias.edu/data/puias/7/x86_64/os/RPM-GPG-KEY-springdale
#include <stdio.h>
#include <stdlib.h> // malloc
#include <string.h> // memset
#include <time.h> // shuffle
// dest : 被找出的数字存储的数组
// src : 被shuffle并取走数字的数组
// len : src数组的长度
// return : dest有效内容长度
NAME some other information shows here
FLAG aaa bbb cccb infoHello
INTRO some other info shows here
FLAG xxx yyy zzz infoWorld
FLAG zzz zzz zzz info!
# ALL<DEBUG<INFO<WARN<ERROR<FATAL<OFF
log4j.rootLogger=ALL,info,console
# ConsoleAppender,FileAppender,DailyRollingFileAppender,RollingFileAppender,WriteAppender,JDBCAppender
log4j.appender.info=org.apache.log4j.DailyRollingFileAppender
# file path
log4j.appender.info.File=lo4j.log
#HTMLLayout,SimpleLayout,TTCCLayout,PatternLayout
log4j.appender.info.layout=org.apache.log4j.PatternLayout
#log4j.appender.info.MaxFileSize=100KB
#log4j.appender.info.MaxBackupIndex=10
《中国科学》杂志社有限责任公司 China science publishing & media Ltd.
安徽财经大学 Anhui University of Finance & Economics
安徽大学 Anhui University
安徽工程大学 Anhui Polytechnic University
安徽工程科技学院 Anhui University of Technology and Science
安徽工业大学 Anhui University of Technology
安徽建筑工业学院 Anhui University of Architecture
安徽科技学院 Anhui Science and Technology University
安徽理工大学 Anhui University of Science and Technology
安徽农业大学 Anhui Agricultural University
def rand_digit_str(len):
import string
import random
return "".join([random.choice(string.digits) for n in xrange(len)])
def sub_dir():
return rand_digit_str(4) + "/" + rand_digit_str(4) + "/" + rand_digit_str(4) + "/"
<?php
/*
Plugin Name: WP-UserAgent
Plugin URI: http://kyleabaker.com/goodies/coding/wp-useragent/
Description: A simple User-Agent detection plugin that lets you easily insert icons and/or textual web browser and operating system details with each comment.
Version: 1.0.4
Author: Kyle Baker
Author URI: http://kyleabaker.com/
//Author: Fernando Briano
//Author URI: http://picandocodigo.net