- Login via SSH keys only
-
apt-get update && apt-get upgrade
- Create normal user for logins
- Set up configuration management
- Ensure IPv6 is up and running
- Set up
iptables
rules and boot scripts
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
# 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 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 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 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 |
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/bash | |
# Install libbind and bind9 ports | |
# - bind9 is installed disabled by default | |
sudo port -v install libbind bind9 | |
curl -Lsso /tmp/dnsperf.tar.gz ftp://ftp.nominum.com/pub/nominum/dnsperf/2.0.0.0/dnsperf-src-2.0.0.0-1.tar.gz | |
cd /tmp | |
tar xzvf dnsperf.tar.gz | |
cd /tmp/dnsperf-src-2.0.0.0-1 |
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
Science Traveller International 1X/1.0 | |
Mozilla/3.0 (compatible) | |
amaya/9.52 libwww/5.4.0 | |
amaya/9.51 libwww/5.4.0 | |
amaya/9.1 libwww/5.4.0 | |
amaya/6.2 libwww/5.3.1 | |
AmigaVoyager/3.4.4 (MorphOS/PPC native) | |
Debian APT-HTTP/1.3 (0.9.7.5ubuntu5.1) | |
Ubuntu APT-HTTP/1.3 (0.7.23.1ubuntu2) | |
Ubuntu APT-HTTP/1.3 |
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/bash | |
dnf -y install docker | |
groupadd -r docker | |
usermod -a -G docker $(id -un) | |
systemctl enable docker | |
systemctl start docker | |
echo "Please log off and log back in again to apply group changes..." | |
exit 0 |
- 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.
OlderNewer