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
#if($is_signed_in && $permissionChecker.isCommunityAdmin($group_id)) | |
#dockbar() | |
#end |
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 | |
/usr/bin/ftp -iv centos << EOF 2> ftp.error | |
binary | |
put testfile | |
quit | |
EOF | |
test -s ftp.error && echo "FTP failed" && exit 1 || rm -f ftp.error |
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
$real_extract_command = $extract_command ? { | |
'' => $source_filetype ? { | |
'.tgz' => 'tar -zxf', | |
'.tar.gz' => 'tar -zxf', | |
'.gz' => 'tar -zxf', | |
'.tar.bz2' => 'tar -jxf', | |
'.tar' => 'tar -xf', | |
'.zip' => 'unzip', | |
}, |
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
#!/usr/bin/php | |
<?php | |
// by Jean-Bernard Addor 2011 | |
if (1 != assert_options(ASSERT_ACTIVE) or 1 != assert_options(ASSERT_WARNING)): | |
trigger_error('Assertion ignored'); | |
endif; | |
$return_var = 0; | |
echo passthru('mkdir --parents '.'/tmp'.getcwd(), $return_var); |
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
dn: cn=module{1},cn=config | |
objectClass: olcModuleList | |
cn: module{1} | |
olcModulePath: /usr/lib64/openldap | |
olcModuleLoad: slapd-sha2 | |
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
# | |
# str2sha512password.rb | |
# | |
module Puppet::Parser::Functions | |
newfunction(:str2sha512password, :type => :rvalue, :doc => <<-EOS | |
This converts a string to a salted-SHA512 password hash for linux and unix systems | |
given any simple string, you will get a sha512 hash that can be insert directly into | |
the shadow file. | |
EOS |
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
# | |
# generatepassword.rb | |
# | |
module Puppet::Parser::Functions | |
newfunction(:generatepassword, :type => :rvalue, :doc => <<-EOS | |
This converts a string to a salted-SHA512 password hash for linux and unix systems | |
given any simple string, you will get a sha512 hash that can be insert directly into | |
the shadow file. | |
EOS |
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
<plugins> | |
<statisticsBrokerPlugin/> | |
<simpleAuthenticationPlugin> | |
<users> | |
<authenticationUser username="mcollective" password="marionette" groups="mcollective,everyone"/> | |
<authenticationUser username="admin" password="secret" groups="mcollective,admin,everyone"/> | |
</users> | |
</simpleAuthenticationPlugin> | |
<authorizationPlugin> | |
<map> |
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
iscsid.conf | |
node.startup = automatic | |
#set chap names | |
iscsiadm -m discovery -t sendtargets -p <ip>:<port> -n node.startup -v automatic | |
# show for verification |
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 | |
FILE=$1 | |
if [ -z $1 ] | |
then | |
echo "No file given" | |
exit 1 | |
fi |
OlderNewer