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/sh | |
| if [ -z "$1" ]; then | |
| echo "Usage: `basename $0` hostname [hostname]..." | |
| exit $E_NOARGS | |
| fi | |
| until [ -z "$1" ]; do | |
| host=$1 |
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
| # this ansible/jinja2 filter plugin allows you to use passlib's *_crypt functions | |
| # until ansible 2.0 comes out - see https://github.com/ansible/ansible/issues/11244. | |
| # | |
| # this filter depends on passlib being installed: | |
| # $ pip install passlib | |
| # | |
| # put this into your playbook's `filter_plugins` folder. | |
| # | |
| # usage example: | |
| # - name: create user |
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
| namespace :deploy do | |
| desc "Uploads a comma-separated list of files from ENV['files']" | |
| task :upload do | |
| on roles(:app) do | |
| ENV.fetch('files', ENV['FILES']).split(',').map(&:strip).each do |file| | |
| upload! file, current_path.join(file), recursive: true | |
| end | |
| end | |
| end | |
| end |
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 -i http://t.co/OKqKyWmofP | |
| HTTP/1.1 404 Not Found | |
| Date: Sun, 13 Apr 2014 23:39:33 GMT | |
| Server: Apache/2.2.15 (CentOS) | |
| X-Powered-By: PHP/5.3.3 | |
| Content-Length: 268 | |
| Connection: close | |
| Content-Type: text/html; charset=UTF-8 | |
| <head><noscript><meta http-equiv="refresh" content="0;url=http://fernsehkritik.tv/folge-134/Start/"></noscript><script type="text/javascript">window.location = "http://18tdn.com/r.php?r=http%3A%2F%2Ffernsehkritik.tv%2Ffolge-134%2FStart%2F&ase=d47c5f40"</script></head> |
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
| If you use this code it would be great to receive a credit and link back in your app! Thanks. | |
| -Niels Gabel | |
| PlacePop Inc | |
| http://placepop.com | |
| http://nielsbot.com |
NewerOlder