Skip to content

Instantly share code, notes, and snippets.

View big-samantha's full-sized avatar

Samantha Smith big-samantha

View GitHub Profile
[/var/log/samba] # cd var
[/var/log/samba/var] # cd var
[/var/log/samba/var/var] # cd var
[/var/log/samba/var/var/var] # cd var
[/var/log/samba/var/var/var/var] # cd var
[/var/log/samba/var/var/var/var/var] # cd var
[/var/log/samba/var/var/var/var/var/var] # cd var
[/var/log/samba/var/var/var/var/var/var/var] # cd var
[/var/log/samba/var/var/var/var/var/var/var/var] # cd var
[/var/log/samba/var/var/var/var/var/var/var/var/var] # cd var
@big-samantha
big-samantha / rsnapshot.log
Created June 6, 2012 02:52
rsnapshot tries to do the same thing 3 times
root@springfield ~ # /usr/bin/rsnapshot -vt -c /etc/rsnapshot/rsnapshot-nas.conf hourly
echo 26899 > /var/run/rsnapshot-nas.pid
/bin/rm -rf /media/backup/userdata/nas/hourly.8/
mv /media/backup/userdata/nas/hourly.7/ \
/media/backup/userdata/nas/hourly.8/
mkdir -m 0755 -p /media/backup/userdata/nas/hourly.0/
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded \
--exclude=entermarketing/Clients-by-name/ --exclude=*.db \
--exclude=*.ds_store \
--link-dest=/media/backup/userdata/nas/hourly.7/snowballii/ \
╭─@entermac01.local ~
╰─ rvm requirements
Notes for Mac OS X 10.7.4, Xcode 4.3.2.
For MacRuby: Install LLVM first.
For JRuby: Install the JDK. See http://developer.apple.com/java/download/ # Current Java version "1.6.0_26"
For IronRuby: Install Mono >= 2.6
For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba'
2.6.1. The apache::install class
Firstly, we install Apache via the apache::install class:
class apache::install {
package { [ "apache2" ]:
ensure => present,
}
}
rockets: I'm going to try to just use the user resource for now
fluxrad: rockets, I'm going to nth using an LDAP server for user management (for non-system users). *much* easier to manage ("i forgot my password" etc).
rockets: I have an unreasonable fear of LDAP failing
jra___: same
Mousey: ditto
## We need to push a custom config for openssh.
## Mainly so that we uncomment #AuthorizedKeysFile %h/.ssh/authorized_keys
class ssh::config {
include ssh::params
file {'/etc/ssh/sshd_config':
ensure => present,
source => "$ssh::params::sshd_config",
owner => 'root',
group => 'root',
path /run
auth yes
allow command.enterawesome.com
@big-samantha
big-samantha / gist:3763249
Created September 21, 2012 19:00
ufw allows
ufw::allow { 'allow-all-trusted-ips':
from => 'foo',
from => 'foo',
from => 'foo',
from => 'foo',
from => 'foo',
from => 'foo',
from => 'foo',
from => 'foo',
from => 'foo',
class apache::mod::php {
apache::mod { 'php5': }
file { "${apache::params::moddir}/php.conf":
ensure => link,
target => "$apache::params::modsource/php5.conf",
}
}
#Include all vhosts to push to apache servers
class apache_manage::vhosts {
include
'apache_manage::vhosts::zachary_enterawesome_com'
}
class { 'apache_manage::vhosts': require => Class['apache_manage'] }