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
upstream ze-backend { | |
server backend.server.local:7500 fail_timeout=0; | |
} | |
location /stuff-proxied-to-backend { | |
# Tried this | |
max_ranges 0; | |
try_files $uri @ze-backend; |
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
{% for site in pillar['nginx_sites'] %} | |
#... | |
{%- if site.get('root', False) %} | |
{{ site.root }}: | |
file.directory: | |
- user: www-data | |
- group: www-data | |
- mode: 775 | |
- makedirs: True | |
- recurse: |
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
$ curl -s http://testmyipv6.com/ | grep -A1 myIPaddr | tail -n1 | |
80.241.91.75 | |
$ curl -s http://v6.testmyipv6.com/ | grep -A1 myIPaddr | tail -n1 | |
2001:840:740:3938:1e6f:65ff:fe91:b882 |
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
root@mgmt:/srv/salt# salt "www1.int*" state.highstate | |
www1.example.com: | |
Data failed to compile: | |
---------- | |
Rendering SLS nginx.sites failed, render error: while scanning a double-quoted scalar | |
in "<unicode string>", line 140, column 260: | |
... ation_proxy': '{\'/api\': "{\'backend\': \'http://app1.exa ... | |
^ | |
found unknown escape character "'" | |
in "<unicode string>", line 140, column 263: |
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
root@mgmt:/srv/salt# salt-minion -l debug | |
[DEBUG ] Reading configuration from /etc/salt/minion | |
[DEBUG ] Guessing ID. The id can be explicitly in set /etc/salt/minion | |
[DEBUG ] loading log_handlers in ['/var/cache/salt/minion/extmods/log_handlers', '/usr/lib/python2.7/dist-packages/salt/log/handlers'] | |
[DEBUG ] Skipping /var/cache/salt/minion/extmods/log_handlers, it is not a directory | |
[DEBUG ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found the in the configuration. Not loading the Logstash logging handlers module. | |
[DEBUG ] Configuration file path: /etc/salt/minion | |
[INFO ] Setting up the Salt Minion "mgmt.int.lowercase.no" | |
[DEBUG ] Created pidfile: /var/run/salt-minion.pid | |
[DEBUG ] Chowned pidfile: /var/run/salt-minion.pid to user: root |
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
2013-10-07 15:33:00,390 [salt.master ][ERROR ] Error in function _pillar: | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/master.py", line 1444, in run_func | |
ret = getattr(self, func)(load) | |
File "/usr/lib/python2.7/dist-packages/salt/master.py", line 1053, in _pillar | |
data = pillar.compile_pillar() | |
File "/usr/lib/python2.7/dist-packages/salt/pillar/__init__.py", line 443, in compile_pillar | |
top, terrors = self.get_top() | |
File "/usr/lib/python2.7/dist-packages/salt/pillar/__init__.py", line 262, in get_top | |
return self.merge_tops(tops), errors |
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
Traceback (most recent call last): | |
File "/usr/bin/salt-call", line 11, in <module> | |
salt_call() | |
File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 77, in salt_call | |
client.run() | |
File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 303, in run | |
caller.run() | |
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 141, in run | |
self.opts) | |
File "/usr/lib/python2.7/dist-packages/salt/output/__init__.py", line 30, in display_output |
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
State: - service | |
Name: tomcat6 | |
Function: running | |
Result: False | |
Comment: An exception occurred in this state: Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1237, in call | |
self.check_refresh(data, ret) | |
File "/usr/lib/python2.7/dist-packages/salt/states/service.py", line 275, in running | |
ret = _available(name, ret) | |
File "/usr/lib/python2.7/dist-packages/salt/states/service.py", line 243, in _available |
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
<?php | |
/** | |
* @package WPMURemoveUsernameLimit | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: WPMU Remove Username Limit | |
Plugin URI: http://uppercase.no | |
Description: WPMU Plugin to Remove Username Limit. Based on blogpost: http://fullthrottledevelopment.com/remove-username-character-limit-from-wordpress-multi-site-multi-user | |
Author: Ole Christian Rynning |
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
require "rubygems" | |
require "sinatra" | |
require "base64" | |
require "zlib" | |
require "cgi" | |
get '/' do | |
content_type :html | |
form = <<-EOS |