See Configuring NGINX to accept the PROXY Protocol - NGINX
upstream wsserver {
server 127.0.0.1:9000;
}| #.bash_profile | |
| if [ -f ~/.bashrc ]; then | |
| . ~/.bashrc | |
| fi | |
| #============================================================ | |
| # | |
| # ALIASES AND FUNCTIONS | |
| # Arguably, some functions defined here are quite big. | |
| # If you want to make this file smaller, these functions can |
| open ~/.zshrc |
See Configuring NGINX to accept the PROXY Protocol - NGINX
upstream wsserver {
server 127.0.0.1:9000;
}| mkdir -p ~/.vim/colors | |
| curl https://raw.githubusercontent.com/marciomazza/vim-brogrammer-theme/master/colors/brogrammer.vim > ~/.vim/colors/brogrammer.vim |
| protected override void Initialize(RequestContext requestContext) | |
| { | |
| base.Initialize(requestContext); | |
| string domain = Dns.GetHostEntry(this.Request.UserHostName).HostName; | |
| string[] segments = domain.Split('.'); | |
| string subdomain = ""; | |
| if(segments.Length >= 3) | |
| { | |
| subdomain = segments[0]; |
| private void MainTabChanged(object sender, SelectionChangedEventArgs e) | |
| { | |
| int tabItem = ((sender as TabControl)).SelectedIndex; | |
| if (e.Source is TabControl) // This is a soultion of those problem. | |
| { | |
| switch (tabItem) | |
| { | |
| case 0: // Chatting | |
| Debug.WriteLine("Tab: Chatting"); | |
| if (MainChatList.Items.Count > 0) |
| private List<byte> bnetData = new List<byte>(); | |
| private BnetHelper bnetHelper = BnetHelper.getInstance(); | |
| public byte bnetCommand; | |
| public int serverToken = 0; | |
| public int clientToken = 0; | |
| public BnetProtocol() | |
| { | |
| } |
| echo $0 |
| # Find zsh current path. | |
| which zsh | |
| # > /usr/local/bin/zsh | |
| # Change shell to zsh. | |
| # Do not use this command line with sudo. | |
| chsh -s /usr/local/bin/zsh |
| (function(root, factory) { | |
| if(typeof define !== 'undefined' && define.amd) { | |
| // AMD loader type declaration. | |
| define(['jquery', 'moment'], function(jquery, moment) { | |
| factory(window, document, jquery, moment); | |
| }); | |
| } else if(typeof module === 'object') { | |
| var jsdom = require('jsdom').jsdom; | |
| var _document = jsdom('<html></html>', {}); | |
| var _window = _document.defaultView; |