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 -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. |
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
ubuntu@ip-10-59-34-200:/etc$ sudo /etc/init.d/ldirectord start | |
* Running ldirectord start Subroutine main::pack_sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67. | |
at /usr/sbin/ldirectord line 831 | |
Subroutine main::unpack_sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67. | |
at /usr/sbin/ldirectord line 831 | |
Subroutine main::sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67. | |
at /usr/sbin/ldirectord line 831 | |
Subroutine main::pack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060 | |
Subroutine main::unpack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060 | |
Subroutine main::sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060 |
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
$short_hostname = inline_template("<%= @fqdn.split('.').first %>") | |
if $short_hostname =~ /\Ab3dbhub0[12]\z/ { | |
$upload_dir = inline_template("<%= @short_hostname.upcase %>") | |
} | |
else { | |
$upload_dir = 'DBHUB' | |
} | |
notice($upload_dir) |
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
set listchars=tab:~~,eol:$ |
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
node /hub[0-9]+\.example/ { | |
$hub_service_node = 'hub1.example' | |
class { 'base': } | |
class { 'service_a': active_node => $hub_service_node } | |
class { 'service_b': active_node => $hub_service_node } | |
class { 'service_c': active_node => 'hub3.example' } | |
class { 'service_d': active_node => 'hub5.example' } | |
} |
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
class myklass( | |
$mysql_version = '12345', | |
){ | |
class { '::another_class': | |
mysql_version => $mysql_version, | |
} | |
} | |
class another_class( | |
$mysql_version, |
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
class dba_nagios( | |
$active_server_fqdn = undef, | |
){ | |
if ($active_server_fqdn == $fqdn) { | |
$service_enable = true | |
$service_ensure = running | |
} | |
else { | |
$service_enable = false |
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
daemon.log:Aug 21 15:59:45 b2db02 udevd-work[461]: 'watershed sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -a y'' unexpected exit with status 0x000f | |
syslog.1:Aug 21 15:59:45 b2db02 udevd-work[461]: 'watershed sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -a y'' unexpected exit with status 0x000f | |
udev:DM_UUID=LVM-X2m609deIakHl0rQMMSDVE6W2cOZx5JtLpQfQMcdF6f6u12IFQ7QNm2tBNH5qG9c-real | |
udev:DEVLINKS=/dev/block/251:0 /dev/dm-0 /dev/disk/by-id/dm-name-VG00-VG00.1-real /dev/disk/by-id/dm-uuid-LVM-X2m609deIakHl0rQMMSDVE6W2cOZx5JtLpQfQMcdF6f6u12IFQ7QNm2tBNH5qG9c-real | |
udev:DM_UUID=LVM-X2m609deIakHl0rQMMSDVE6W2cOZx5JtPnGbRBBwow2cgj33NnufMk8JeSfj6drB-cow | |
udev:DEVLINKS=/dev/block/251:2 /dev/dm-2 /dev/disk/by-id/dm-name-VG00-lv_mysql_Wed-cow /dev/disk/by-id/dm-uuid-LVM-X2m609deIakHl0rQMMSDVE6W2cOZx5JtPnGbRBBwow2cgj33NnufMk8JeSfj6drB-cow | |
udev:DM_UUID=LVM-X2m609deIakHl0rQMMSDVE6W2cOZx5JtLpQfQMcdF6f6u12IFQ7QNm2tBNH5qG9c | |
udev:DEVLINKS=/dev/block/251:1 /dev/dm-1 /dev/disk/by-id/dm-name-VG00-VG00.1 /dev/disk/by-id/dm-uuid-LVM-X2m609 |
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
--- /home/bentisnis/000-default 2013-08-13 12:51:28.000000000 +0000 | |
+++ 000-default 2013-08-13 12:52:12.000000000 +0000 | |
@@ -40,4 +40,6 @@ | |
Allow from 127.0.0.0/255.0.0.0 ::1/128 | |
</Directory> | |
+ Redirect / http://assets.photobox.com/assets/maintenance20130814/index.html | |
+ | |
</VirtualHost> |
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
$ brew install r | |
==> Installing r dependency: libtiff | |
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.3 --without-x --disable-lzma | |
==> make install | |
🍺 /usr/local/Cellar/libtiff/4.0.3: 254 files, 3.7M, built in 40 seconds | |
==> Installing r | |
==> Downloading http://cran.r-project.org/src/base/R-2/R-2.15.3.tar.gz | |
######################################################################## 100.0% |