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 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 | |
| //https://stackoverflow.com/a/34571089/5155484 | |
| typedef unsigned char uchar; | |
| static const std::string b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";//= | |
| static std::string base64_encode(const std::string &in) { | |
| std::string out; | |
| int val=0, valb=-6; | |
| for (uchar c : in) { |
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 | |
| # save this file as tailc then | |
| # run as: $ tailc logs/supplier-matching-worker.log Words_to_highlight | |
| file=$1 | |
| if [[ -n "$2" ]]; then | |
| color=' | |
| // {print "\033[37m" $0 "\033[39m"} | |
| /(WARN|WARNING)/ {print "\033[1;33m" $0 "\033[0m"} | |
| /(ERROR|CRIT)/ {print "\033[1;31m" $0 "\033[0m"} |
- Install Xming: http://sourceforge.net/projects/xming/
- Set your path variable:
export PATH=$PATH:/c/Users/myself/AppData/Local/Xming/ - [always?]: Run XLaunch and select the display setting you want to use
- Export DISPLAY variable:
export DISPLAY=localhost:0 - ssh with the x11 forwarding enabled:
ssh -XY me@myhost - Try it out:
nautilus
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
| https://raw.github.com/wiki/user/repo/page.md?login=login&token=token |
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
| # Defines all Languages known to GitHub. | |
| # | |
| # type - Either data, programming, markup, prose, or nil | |
| # aliases - An Array of additional aliases (implicitly | |
| # includes name.downcase) | |
| # ace_mode - A String name of the Ace Mode used for highlighting whenever | |
| # a file is edited. This must match one of the filenames in http://git.io/3XO_Cg. | |
| # Use "text" if a mode does not exist. | |
| # wrap - Boolean wrap to enable line wrapping (default: false) | |
| # extensions - An Array of associated extensions (the first one is |
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> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <title>Auto play html audio in iOS WeChat InAppBrowser the right way</title> | |
| </head> | |
| <body> | |
| <h1>在 iOS 微信浏览器中自动播放 HTML5 audio(音乐) 的正确方式</h1> | |
| <p>核心原理: 在微信的JS-API 中 play 一下 audio 即可达到自动播放的目的(应该是微信自己做了处理)</p> |
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
| --- Actions --- | |
| $Copy <M-C> | |
| $Cut <M-X> <S-Del> | |
| $Delete <Del> <BS> <M-BS> | |
| $LRU | |
| $Paste <M-V> | |
| $Redo <M-S-Z> <A-S-BS> | |
| $SearchWeb <A-S-G> | |
| $SelectAll <M-A> | |
| $Undo <M-Z> |
This font is manually patched with Fontforge. It includes the glyphs from DejaVu Sans Mono for Powerline.
I recommend DirectWrite-patched VIM builds. I'm using KaoriYa's build (http://www.kaoriya.net/software/vim/)
Add the following lines to your .vimrc/_vimrc:
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
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |