I hereby claim:
- I am binkoni on github.
- I am binkoni (https://keybase.io/binkoni) on keybase.
- I have a public key ASAADy0qOpC93M3xmHCOnTe0wn4EYHb9hF23LAzVNKoZ4wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| node1 | SUCCESS => { | |
| "hostvars[inventory_hostname]": { | |
| "access_ip": "192.168.10.254", | |
| "ansible_check_mode": false, | |
| "ansible_config_file": "/home/gon/workspace/kubespray/ansible.cfg", | |
| "ansible_diff_mode": false, | |
| "ansible_facts": {}, | |
| "ansible_forks": 5, | |
| "ansible_host": "192.168.10.254", | |
| "ansible_inventory_sources": [ |
| // Scenario: Some event handler is blocking events (event.preventDefault()) that shouldn't be blocked, i.e. because it binds to document instead of a more specific element | |
| // 1) Place this before all other JavaScript | |
| var originalPreventDefault = Event.prototype.preventDefault; | |
| Event.prototype.preventDefault = function () { | |
| // Lookup specific event you're expecting, i.e. pressing space | |
| if (this instanceof KeyboardEvent && this.keyCode === 32) { | |
| // This will log an error with full stack trace | |
| make_error_to_see_stacktrace |
| const fakeDatabase = | |
| [ | |
| { | |
| "id": 1, | |
| "name": "Leanne Graham", | |
| "username": "Bret", | |
| "email": "[email protected]", | |
| "address": { | |
| "street": "Kulas Light", | |
| "suite": "Apt. 556", |
This gist assumes:
www-data (may be apache on other systems)Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| #!/bin/bash | |
| # | |
| BACKUPDEST="$1" | |
| DOMAIN="$2" | |
| MAXBACKUPS="$3" | |
| if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
| echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
| exit 1 |
| from cgi import parse_qs | |
| from wsgiref.simple_server import make_server | |
| def simple_app(environ, start_response): | |
| status = '200 OK' | |
| headers = [('Content-Type', 'text/plain')] | |
| start_response(status, headers) | |
| if environ['REQUEST_METHOD'] == 'POST': | |
| request_body_size = int(environ.get('CONTENT_LENGTH', 0)) | |
| request_body = environ['wsgi.input'].read(request_body_size) |