#Step 1: Update /etc/postfix/main.cf
$ sudo vim /etc/postfix/main.cf
Add the following lines, anywhere really, but preferably under the relayhost section:
relayhost = smtp.gmail.com:587
smtp_sasl_auth_enable = yes
escape_char / | |
comment_char % | |
% This file was generated by taking the LC_TIME section from en_US and | |
% replacing date/time representation with that of sv_SE from the glibc | |
% locale sources | |
% (http://sourceware.org/git/?p=glibc.git;a=tree;f=localedata/locales;hb=HEAD) | |
% (https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html) | |
% This file is part of the GNU C Library and contains locale data. |
#Step 1: Update /etc/postfix/main.cf
$ sudo vim /etc/postfix/main.cf
Add the following lines, anywhere really, but preferably under the relayhost section:
relayhost = smtp.gmail.com:587
smtp_sasl_auth_enable = yes
Load Balancing FTP. | |
If you run an FTP server at scale, you will eventually want to load balance it. This is no mean task as FTP is a notoriously finicky protocol. Those familiar with FTP will know that it uses more than one TCP connection; the first connection is the command channel and the second is the data channel. To successfully load balance FTP, you must address both of these connections. | |
To further complicate matters, the data channel can be established using two methods. FTP Active or FTP Passive. For the rest of this document, I will simply use the terms active and passive to refer to these modes. First, let’s review how the command and data channels are used in FTP. | |
Active FTP. | |
When using FTP in active mode, the FTP client first connects to the server on port 21. This opens the command channel. The client authenticates itself, sets options, retrieves feature support from the server etc. The data channel is not opened until the client makes request that will result in the transfer of data from the |
<? | |
function make_salt($salt_size=32) { | |
//list of possible characters from which to cerate the salt | |
$sea = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | |
//how many possible characters are there | |
$sea_size = strlen($sea); | |
$salt = ""; |
{
address = "irc.twitch.tv";
chatnet = "Twitch";
# | |
# Certificate-Based Repositories | |
# Managed by (rhsm) subscription-manager | |
# | |
# *** This file is auto-generated. Changes made here will be over-written. *** | |
# *** Use "subscription-manager repo-override --help" if you wish to make changes. *** | |
# | |
# If this file is empty and this system is subscribed consider | |
# a "yum repolist" to refresh available repos | |
# |
Lustre 2.5 build
rpmbuild --define 'kversion 2.6.32-358.23.2.el6.x86_64' --define 'kdir /var/chroots/golden/usr/src/kernels/2.6.32-358.23.2.el6.x86_64/' --rebuild --without servers lustre-client-2.5.1-2.6.32_431.5.1.el6.x86_64.src.rpm
Basic sequence to download/build Lustre client rpms...
#!/bin/bash | |
# pre-commit git hook to check the validity of a puppet manifest | |
# | |
# Prerequisites: | |
# gem install puppet-lint puppet | |
# | |
# Install: | |
# /path/to/repo/.git/hooks/pre-comit | |
# Source RVM if needed |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.collectd.collectd</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/opt/local/sbin/collectd</string> | |
<string>-f</string> |