Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| # Mount image desintion to /home/partimag as desired | |
| # No wizards from here. Use the Clonezilla command line | |
| # Abort script on any failures, print out commands for debugging | |
| set -e | |
| set -x | |
| # Partition to clone | |
| [ -n "$VG_NAME" ] || VG_NAME="systemvg" | |
| [ -n "$LV_NAME" ] || LV_NAME="rootlv" |
| #!/bin/bash | |
| # | |
| # Yury V. Zaytsev <yury@shurup.com> (C) 2011 | |
| # | |
| # This work is herewith placed in public domain. | |
| # | |
| # Use this script to cleanly restart the default libvirt network after its | |
| # definition have been changed (e.g. added new static MAC+IP mappings) in order | |
| # for the changes to take effect. Restarting the network alone, however, causes | |
| # the guests to lose connectivity with the host until their network interfaces |
| # Block Skype ads | |
| 127.0.0.1 *.msads.net | |
| 127.0.0.1 *.msecn.net | |
| 127.0.0.1 *.rad.msn.com | |
| 127.0.0.1 a.ads2.msads.net | |
| 127.0.0.1 ac3.msn.com | |
| 127.0.0.1 ad.doubleclick.net | |
| 127.0.0.1 adnexus.net | |
| 127.0.0.1 adnxs.com | |
| 127.0.0.1 ads1.msn.com |
| # Marker Subtitle Script For Blender | |
| # | |
| # Exports Blender Timecodes to a | |
| # .txt or .srt file. | |
| # 2015 Nathan Craddock | |
| # Type the location here that you would like to save the file | |
| # on windows devices make sure to double backslash \\ so python | |
| # reads it as a \ |
| Byobu is a suite of enhancements to tmux, as a command line | |
| tool providing live system status, dynamic window management, | |
| and some convenient keybindings: | |
| F1 * Used by X11 * | |
| Shift-F1 Display this help | |
| F2 Create a new window | |
| Shift-F2 Create a horizontal split | |
| Ctrl-F2 Create a vertical split | |
| Ctrl-Shift-F2 Create a new session |
| 23.21.150.121:3478 | |
| iphone-stun.strato-iphone.de:3478 | |
| numb.viagenie.ca:3478 | |
| s1.taraba.net:3478 | |
| s2.taraba.net:3478 | |
| stun.12connect.com:3478 | |
| stun.12voip.com:3478 | |
| stun.1und1.de:3478 | |
| stun.2talk.co.nz:3478 | |
| stun.2talk.com:3478 |
| Question: | |
| . How to run Ansible without specifying the inventory but the host directly? | |
| . Run a playbook or command with arbitrary host not in the inventory hosts list? | |
| . run ansible with arbitrary host/ip without inventory? | |
| Answer: | |
| Surprisingly, the trick is to append a , | |
| The host parameter preceding the , can be either a hostname or an IPv4/v6 address. | |
| ansible all -i example.com, |
| #!/bin/bash | |
| ANSIBLE_ROOT=${ANSIBLE_ROOT:-/opt/ansible} | |
| DISTR_ROOT=${DISTR_ROOT:-/vagrant} | |
| yum install -y python-setuptools python-devel libffi-devel openssl-devel | |
| easy_install virtualenv | |
| virtualenv "$ANSIBLE_ROOT" | |
| . "$ANSIBLE_ROOT/bin/activate" | |
| # PY_LIBS can contain a space-separated list of Python libraries your playbooks require to run (e.g., "dnspython shade") |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| # download source https://www.python.org/downloads/release/python-2712/ | |
| wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz | |
| tar -zxvf Python-2.7.12.tgz | |
| cd Python-2.7.12 | |
| # install | |
| ./configure | |
| make | |
| sudo make install |