Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| #!/bin/sh | |
| # Install apt-cacher-ng | |
| apt-get install -y apt-cacher-ng | |
| # This will be a caching server on local network. Change IP to private or leave listening | |
| echo "BindAddress: 0.0.0.0" >> /etc/apt-cacher-ng/acng.conf | |
| echo "Port:3142" >> /etc/apt-cacher-ng/acng.conf | |
| echo "PidFile: /var/run/apt-cacher-ng/pid" >> /etc/apt-cacher-ng/acng.conf |
| Put this in your `local-configure.yml` file, add as many users as you need: | |
| users: | |
| - name: fulvio | |
| sudoer: yes | |
| auth_key: ssh-rsa blahblahblahsomekey this is actually the public key in cleartext | |
| - name: plone_buildout | |
| group: plone_group | |
| sudoer: no | |
| auth_key: ssh-rsa blahblahblah ansible-generated on default |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |