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
upstream nodes { | |
# server 198.211.114.109:8080 weight=1 max_fails=3 fail_timeout=30s; | |
server 127.0.0.1:80 weight=1 max_fails=3 fail_timeout=30s; | |
} | |
server { | |
listen 80; ## listen for ipv4; this line is default and implied | |
listen 127.0.0.1:80; | |
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6 |
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
Host <alias>* | |
Hostname <hostname of server> | |
User <username> | |
Port <port> | |
[user@local] (~) $ ssh alias | |
Last login: ... | |
[user@host] (~) $ |
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
server { | |
listen 198.211.104.30:80; ## listen for ipv4; this line is default and implied | |
root /home/ziber/public_html/load.liber.in/; | |
index index.html index.htm index.php; | |
server_name load.liber.in; | |
location / { | |
# try_files $uri $uri/; |
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
server { | |
listen 198.211.104.30:80; ## listen for ipv4; this line is default and implied | |
root /home/ziber/public_html/load.liber.in; | |
index load.php; | |
server_name load.liber.in; | |
access_log /var/log/nginx/load.liber.in/access.log; | |
error_log /var/log/nginx/load.liber.in/error.log; |
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
#!/bin/bash | |
sudo chgrp -R www-data /home/git/public_html/ | |
sudo chmod -R g+rx /home/git/public_html/ |
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
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
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
ok: [hostname] => (item=['user', None]) => { | |
"item": [ | |
"user", | |
null | |
], | |
"user": "user" | |
} |
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
$ ansible-playbook -i inventory.txt site.yml --tags 'sudo' --limit 'webutl' -e 'target=*' | |
ERROR! no action detected in task | |
The error appears to have been in '/home/JC/admin.ju/git/jcscripts/ansible/roles/common/tasks/main.yml': line 1, column 3, but may | |
be elsewhere in the file depending on the exact syntax problem. | |
The offending line appears to be: | |
- name: Add all groups |
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
$ ansible-playbook -i hosts users.yml --check | |
Traceback (most recent call last): | |
File "/home/JC/admin.ju/git/ansible/bin/ansible-playbook", line 324, in <module> | |
sys.exit(main(sys.argv[1:])) | |
File "/home/JC/admin.ju/git/ansible/bin/ansible-playbook", line 210, in main | |
force_handlers=options.force_handlers, | |
File "/home/JC/admin.ju/git/ansible/lib/ansible/playbook/__init__.py", line 180, in __init__ | |
(self.playbook, self.play_basedirs) = self._load_playbook_from_file(playbook, vars) | |
File "/home/JC/admin.ju/git/ansible/lib/ansible/playbook/__init__.py", line 276, in _load_playbook_from_file | |
inc_vars, inc_path = self._get_include_info(play, basedir, play_vars) |
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
#!/usr/bin/python | |
import urllib2 | |
import simplejson as json | |
class HipChat: | |
def __init__(self, auth): | |
self.auth = auth | |
self.baseurl = "https://api.hipchat.com/v2" | |
def Send(self, data, url): | |
headers = { 'Content-type':'application/json' } |
OlderNewer