🗨️ Have a question? Join Chat! | 🇯🇵 Learn Japanese | 📚 Resources | ❓ FAQ |
---|
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
#!/bin/env bash | |
# Lookup section meaning in `man man`. | |
sections='1,8,6,5,7' | |
show_manual () { | |
man -- "${1%% *}" 2> /dev/null | |
} | |
export -f show_manual |
Current version of Ansible (1.7.1) does not merge hashes in the include_vars
task even if told so via hash_behaviour = merge
in your ansible.cfg. ansible/ansible#9116
This action plugin will merge hashes no matter how you have configured your hash_behaviour
.
Save include_vars_merged.py to library/plugins/action/include_vars_merged.py
Save include_vars_merged to library/custom/include_vars_merged
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
#!/bin/bash | |
PUTIO_USERNAME="your put.io username" | |
PUTIO_PASSWORD="your put.io password" | |
wget --http-user=${PUTIO_USERNAME} --http-password=${PUTIO_PASSWORD} --content-disposition -c $@ |
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 'aws/s3' # gem name is 'aws-sdk' | |
class BucketSyncService | |
attr_reader :from_bucket, :to_bucket, :logger | |
attr_accessor :debug | |
DEFAULT_ACL = :public_read | |
# from_credentials and to_credentials are both hashes with these keys: | |
# * :aws_access_key_id |
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
#!/bin/bash | |
# Chrome Refresh | |
# | |
# nik cubrilovic - nikcub.appspot.com | |
# | |
# Simple applescript browser reloader for Google Chrome. It will either open a | |
# new tab with the url passed in as an argument or refresh an existing tab. | |
# | |
# Link this up with watchr to auto-refresh browser windows when you save files |