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
{% if site.toc %} | |
<div class="container"> | |
<div class="contents"> | |
<article class="markdown-body"> | |
{{ page.content }} | |
</article> | |
</div> | |
<div class="table-of-contents"> | |
<h2>Contents</h2> | |
{% include toc.html html=content %} |
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
<div class="post-meta"> | |
<span>本文总共 {{ page.content | strip_html | strip_newlines | remove: " " | size }} 字 <b>·</b> 阅读全文大约需要 {{ page.content | strip_html | strip_newlines | remove: " " | size | divided_by: 350 | plus: 1 }} 分钟</span> | |
</div> |
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
--- | |
layout: page | |
home-title: Welcome to zhonger's blog! | |
description: Writing, writing, writing ... | |
permalink: /archives.html | |
cover: https://images.unsplash.com/photo-1465189684280-6a8fa9b19a7a?w=1600&q=900 | |
--- | |
<h2>Archives</h2> |
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
<!DOCTYPE html> | |
<html lang="zh-cn"> | |
{% include head.html %} | |
<body> | |
{% include header.html %} | |
<div class="g-banner home-banner {{ site.theme-color | prepend: 'banner-theme-' }}" data-theme="{{ site.theme-color }}"> | |
<h2>{{ page.home-title }}</h2> | |
<h3>{{ page.description }}</h3> |
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
FROM sharelatex/sharelatex:latest | |
LABEL maintainer "zhonger <zhonger@live.cn>" | |
RUN tlmgr option repository http://10.0.4.121:8091/CTAN/systems/texlive/tlnet && \ | |
tlmgr update --self --all && \ | |
tlmgr install scheme-full | |
RUN apt update && apt-get install xfonts-wqy -y && \ | |
wget -c https://ftp.dlcloud.info/linuxsoftware/winfonts.zip && \ |
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
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#================================================= | |
# System Required: CentOS 6+/Debian 6+/Ubuntu 14.04+ | |
# Description: Install the ShadowsocksR server | |
# Version: 2.0.38 | |
# Author: Toyo | |
# Blog: https://doub.io/ss-jc42/ |
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
version: '3' | |
services: | |
db: | |
image: mysql:5 | |
container_name: db | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: 'root' | |
ports: | |
- 3306:3306 |
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
# Mirror | |
cd "$(brew --repo)" | |
git remote set-url origin https://mirrors.shu.edu.cn/mgit/brew | |
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" | |
git remote set-url origin https://mirrors.shu.edu.cn/mgit/homebrew-core | |
brew cask | |
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask | |
git remote set-url origin https://mirrors.shu.edu.cn/mgit/homebrew-cask |
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 | |
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/ | |
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/ | |
cd /usr/share/fonts/truetype/ | |
#TODO: put validation if folder already exists | |
sudo mkdir ttf-monaco |
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 | |
Version=$(lsb_release -c --short) | |
Codename=$(lsb_release -r --short) | |
OSArch=$(uname -m) | |
User=$(whoami) | |
# 设置 sudo 免密码 | |
echo "$(whoami) ALL=(ALL) NOPASSWD : ALL" | sudo tee /etc/sudoers.d/nopasswd4sudo |
NewerOlder