apt-get install python-pip
pip install shadowsocks
sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
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
code { | |
font-size: Consolas,"Liberation Mono",Menlo,Courier,monospace; | |
white-space: pre-wrap; | |
background: #f5f7f8; | |
border: none; | |
padding: 0; | |
} |
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
$(document).ready(function () { | |
$("ul.nav").find("li").each(function () { | |
var isCurrent = false; | |
$(this).find("a").each(function() { | |
// console.log($(this).attr("href") + "," + location.pathname); | |
if ($(this).attr("href") === location.pathname) { | |
isCurrent = true; | |
} |
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
``` | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; |