brew install logrotate
export PATH=${PATH}:/usr/local/sbin
logrotate -?
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
| #!/bin/bash | |
| # Copyright 2017 Théo Chamley | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| # this software and associated documentation files (the "Software"), to deal in the Software | |
| # without restriction, including without limitation the rights to use, copy, modify, merge, | |
| # publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
| # to whom the Software is furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in all copies or |
| "complex_modifications": { | |
| "rules": [ | |
| { | |
| "manipulators": [ | |
| { | |
| "description": "Ctrl+Tab to Cmd+Tab", | |
| "from": { | |
| "key_code": "tab", | |
| "modifiers": { | |
| "mandatory": [ |
| Get vagrant box guest IP from host | |
| VAGRANT IP | |
| vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null | |
| (OS X): copy it to clipboad | |
| vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null | pbcopy |
| 127.0.0.1 adclick.g.doublecklick.net | |
| 127.0.0.1 adeventtracker.spotify.com | |
| 127.0.0.1 ads-fa.spotify.com | |
| 127.0.0.1 analytics.spotify.com | |
| 127.0.0.1 audio2.spotify.com | |
| 127.0.0.1 b.scorecardresearch.com | |
| 127.0.0.1 bounceexchange.com | |
| 127.0.0.1 bs.serving-sys.com | |
| 127.0.0.1 content.bitsontherun.com |