This file contains 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
every 1.day, :at => '12:00 pm' do | |
command "backup perform -t backup" | |
end |
This file contains 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
export PATH="/opt/android-sdk-linux/tools:${PATH}" |
This file contains 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
--- | |
- hosts: all | |
vars: | |
UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx' | |
UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx' | |
UBUNTU_COMMON_LOGWATCH_EMAIL: [email protected] | |
ubuntu_common_deploy_user_name: deploy | |
ubuntu_common_deploy_public_keys: | |
- ~/.ssh/id_rsa.pub |
This file contains 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
mysql> select count(*) from radacct where TimeStop is NULL; | |
+----------+ | |
| count(*) | | |
+----------+ | |
| 47318 | | |
+----------+ | |
1 row in set (0.04 sec) | |
mysql> select distinct username from radacct where TimeStop is NULL; | |
... |
This file contains 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 | |
# OSX friendly version by jeff donovan | |
# | |
# Grep for a pattern through a Postfix mail log, collect the message ids into a temporary | |
# file and then grep for all occurrences of the ID's in the maillog. | |
# This is a very intensive operation since it requires 1+N greps through the entire log file, | |
# where N is the number of unique ID's returned from the first grep. | |
# | |
# Usage sample: |
This file contains 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
Alias /mail /srv/mail/public | |
<Directory /srv/mail/public> | |
Options FollowSymLinks | |
AllowOverride None | |
# For Apache <= 2.3: | |
Order allow,deny | |
allow from all |