- Use SSL. You're passing credentials and private communications over the wire, so you'd better encrypt it.
- Don't be an open relay. Forwarding spammers' mail is a good way to get your IP blacklisted and receive some nastygrams from other webmasters
chroot
if possible.
This file contains hidden or 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 | |
# configure package download environment | |
export PACKAGEROOT="ftp://ftp.freebsd.org" | |
export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/" | |
# install perl to run the installer script | |
pkg_add -r perl | |
# install compat6x-amd64 (or compat6x-i386 if you're on 32-bit) |
This file contains hidden or 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
# /etc/sysconfig/network-scripts/ifcfg-ethX | |
DEVICE=eth0 | |
HWADDR=MA:CA:DD:RE:SS:YO | |
TYPE=Ethernet | |
UUID=<uuid-string-here> | |
BOOTPROTO=static | |
ONBOOT=yes | |
IPADDR=XXX.XXX.XXX.XXX | |
NETMASK=XXX.XXX.XXX.XXX | |
DHCPCLASS= |
This file contains hidden or 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
# Works, but minimally tested. U@YOR. | |
define git::repo($repo, $location, $autoupdate = false) { | |
package { 'git': | |
ensure => installed, | |
} | |
# Clone repository if $location/.git doesn't already exist | |
exec { "clone-$repo": | |
provider => shell, | |
command => "/usr/bin/git clone $repo $location", |
This file contains hidden or 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
*filter | |
:INPUT DROP [0:0] | |
:FORWARD DROP [0:0] | |
:OUTPUT ACCEPT [332:50026] | |
:ICMP - [0:0] | |
:TCP - [0:0] | |
:UDP - [0:0] | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -p icmp -j ICMP |
This file contains hidden or 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
*filter | |
:INPUT DROP [0:0] | |
:FORWARD DROP [0:0] | |
:OUTPUT ACCEPT [33:2996] | |
:ICMP - [0:0] | |
:TCP - [0:0] | |
:UDP - [0:0] | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -p icmpv6 -j ICMP |
This file contains hidden or 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 | |
# Install Pathogen | |
mkdir -p ~/.vim/autoload ~/.vim/bundle && \ | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
# Move into Pathogen bundle dir | |
cd ~/.vim/bundle | |
## Solarized color scheme |
This file contains hidden or 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
C:\Windows\system32>diskpart | |
Microsoft DiskPart version 6.1.7601 | |
Copyright (C) 1999-2008 Microsoft Corporation. | |
DISKPART> list disk | |
Disk ### Status Size Free Dyn Gpt | |
-------- ------------- ------- ------- --- --- | |
Disk 0 Online 465 GB 1024 KB |
OlderNewer