Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| .header on | |
| .mode column | |
| .nullvalue NULL |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| <html> | |
| <head> | |
| <!-- include Synology SSO js --> | |
| <script src="http://ds:5000/webman/sso/synoSSO-1.0.0.js"></script> | |
| </head> | |
| <body> | |
| <script> | |
| /** Display login/logout button. |
| // These window.navigator contain language information | |
| // 1. languages -> Array of preferred languages (eg ["en-US", "zh-CN", "ja-JP"]) Firefox^32, Chrome^32 | |
| // 2. language -> Preferred language as String (eg "en-US") Firefox^5, IE^11, Safari, | |
| // Chrome sends Browser UI language | |
| // 3. browserLanguage -> UI Language of IE | |
| // 4. userLanguage -> Language of Windows Regional Options | |
| // 5. systemLanguage -> UI Language of Windows | |
| var browserLanguagePropertyKeys = ['languages', 'language', 'browserLanguage', 'userLanguage', 'systemLanguage']; |
| /** | |
| * @providesModule Effects | |
| * @flow | |
| */ | |
| import { Linking } from 'react-native'; | |
| import AppDataApi from 'AppDataApi'; | |
| import Actions from 'Actions'; | |
| import ActionTypes from 'ActionTypes'; |
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf to /usr/local/etc/nginx/default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plist to /Library/LaunchDaemons/As configured in my dotfiles.
start new:
tmux
start new with session name:
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| socat \ | |
| -v -d -d \ | |
| TCP-LISTEN:1234,crlf,reuseaddr,fork \ | |
| SYSTEM:" | |
| echo HTTP/1.1 200 OK; | |
| echo Content-Type\: text/plain; | |
| echo; | |
| echo \"Server: \$SOCAT_SOCKADDR:\$SOCAT_SOCKPORT\"; | |
| echo \"Client: \$SOCAT_PEERADDR:\$SOCAT_PEERPORT\"; | |
| " |