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
# checkdiskspaceall.yml | |
--- | |
- hosts: zcoin_masternodes | |
vars_files: vault.yml | |
become: yes | |
become_method: sudo | |
gather_facts: yes | |
tasks: | |
- name: Collect only facts about hardware | |
setup: |
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/sh | |
########################################################################## | |
# Note: you must have set up your Travis CI environment variables for this | |
# project to include both TELEGRAM_TOKEN and TELEGRAM_CHAT_ID | |
# For more details, see the Telegram documentation at: | |
# - https://core.telegram.org/bots/api | |
# and the blog posts at: | |
# - https://ansonvandoren.com/posts/telegram-notification-on-deploy/ | |
# - https://ansonvandoren.com/posts/travis-telegram-integration/ |
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
cd | |
brew update | |
brew cask install docker | |
docker version |
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
-- Debian packages nginx-extras, lua-zlib required | |
ngx.ctx.max_chunk_size = tonumber(ngx.var.max_chunk_size) | |
ngx.ctx.max_body_size = tonumber(ngx.var.max_body_size) | |
function create_error_response (code, description) | |
local message = string.format('{"status":400,"statusReason":"Bad Request","code":%d,"exception":"","description":"%s","message":"HTTP 400 Bad Request"}', code, description) | |
ngx.status = ngx.HTTP_BAD_REQUEST | |
ngx.header.content_type = "application/json" | |
ngx.say(message) |
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
[alias] | |
## pulling | |
# git p: pulls all branches, autostashing and rebasing instead of merging | |
# this is a similiar behaviour to git-up | |
p = pull --rebase --autostash --all --verbose --no-recurse-submodules | |
# git smiu: update all submodules recursively (and init them if necessary) | |
smiu = submodule update --init --recursive | |
# git up: update current project | |
up = "!git p && git smiu" |