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
| gem install fpm | |
| gem environment (find gem path, find fpm) | |
| /var/lib/gems/1.8/bin/fpm -s gem -t deb -a i386 fpm | |
| /var/lib/gems/1.8/bin/fpm -s gem -t deb -a i386 json | |
| yes | gem uninstall fpm | |
| dpkg -i rubygem-json_1.5.1_i386.deb rubygem-fpm_0.2.12_i386.deb |
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
| objectClasses: ( 2.16.840.1.113719.1.203.6.1 NAME 'dhcpService' DESC 'Service object that represents the actual DHCP Service configuration. This is a container object.' SUP top STRUCTURAL MUST cn MAY ( dhcpPrimaryDN $ dhcpSecondaryDN $ dhcpServerDN $ dhcpSharedNetworkDN $ dhcpSubnetDN $ dhcpGroupDN $ dhcpHostDN $ dhcpClassesDN $ dhcpOptionsDN $ dhcpZoneDN $ dhcpKeyDN $ dhcpFailOverPeerDN $ dhcpStatements $ dhcpComments $ dhcpOption ) X-ORIGIN 'user defined' ) | |
| objectClasses: ( 2.16.840.1.113719.1.203.6.2 NAME 'dhcpSharedNetwork' DESC 'This stores configuration information for a shared network.' SUP top STRUCTURAL MUST cn MAY ( dhcpSubnetDN $ dhcpPoolDN $ dhcpOptionsDN $ dhcpZoneDN $ dhcpStatements $ dhcpComments $ dhcpOption ) X-ORIGIN 'user defined' ) | |
| objectClasses: ( 2.16.840.1.113719.1.203.6.3 NAME 'dhcpSubnet' DESC 'This class defines a subnet. This is a container object.' SUP top STRUCTURAL MUST ( cn $ dhcpNetMask ) MAY ( dhcpRange $ dhcpPoolDN $ dhcpGroupDN $ dhcpHostDN $ dhcpClassesDN $ dhcpLeasesDN $ d |
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
| root@loki:~# pupprun | |
| Already up-to-date. | |
| Already up-to-date. | |
| info: Loading facts in is_loghost | |
| info: Loading facts in main_cf | |
| Error loading fact ./facter/autotest/discover.rb no such file to load -- autotest | |
| Error loading fact ./facter/autotest/facter_rspec.rb no such file to load -- autotest | |
| Error loading fact ./facter/autotest/rspec.rb no such file to load -- autotest | |
| /usr/lib/ruby/1.8/rdoc/dot/dot.rb:28: warning: already initialized constant NODE_OPTS | |
| /usr/lib/ruby/1.8/rdoc/dot/dot.rb:46: warning: already initialized constant EDGE_OPTS |
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
| /var/cache/git/puppet-strings/facts/05_ldap_facts.rb:77:in `+': can't convert nil into String (TypeError) | |
| from /var/cache/git/puppet-strings/facts/05_ldap_facts.rb:77 | |
| from /usr/lib/ruby/site_ruby/1.8/facter/util/fact.rb:38:in `instance_eval' | |
| from /usr/lib/ruby/site_ruby/1.8/facter/util/fact.rb:38:in `add' | |
| from /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:35:in `add' | |
| from /usr/lib/ruby/site_ruby/1.8/facter.rb:105:in `add' | |
| from /var/cache/git/puppet-strings/facts/05_ldap_facts.rb:75 | |
| from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:73:in `load' | |
| from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:73:in `load_file' | |
| ... 13 levels... |
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
| [root@vili ~]# export FACTERLIB=$FACTERLIB:/var/cache/git/puppet-strings/facts; puppet --debug --modulepath=/var/cache/git/puppet-strings/modules/ /var/cache/git/puppet-strings/hosts/$(hostname -f).pp | |
| Error loading fact /var/cache/git/puppet-strings/facts/11_patrons.rb no such file to load -- ldap | |
| /var/cache/git/puppet-strings/facts/05_ldap_facts.rb:77:in `+': can't convert nil into String (TypeError) | |
| from /var/cache/git/puppet-strings/facts/05_ldap_facts.rb:77 | |
| from /usr/lib/ruby/site_ruby/1.8/facter/util/fact.rb:38:in `instance_eval' | |
| from /usr/lib/ruby/site_ruby/1.8/facter/util/fact.rb:38:in `add' | |
| from /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:35:in `add' | |
| from /usr/lib/ruby/site_ruby/1.8/facter.rb:105:in `add' | |
| from /var/cache/git/puppet-strings/facts/05_ldap_facts.rb:75 | |
| from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:73:in `load' |
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/bash | |
| i=$1 | |
| mplayer -vo xv $(curl -s "http://www.youtube.com/get_video_info?&video_id=$i" | echo -e $(sed 's/%/\\x/g;s/.*\(v[0-9]\.lscache.*\)/http:\/\/\1/g') | grep -oP '^[^|,]*') | |
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
| #!/usr/local/bin/perl -wT | |
| BEGIN { unshift @INC, './lib'; } | |
| use strict; | |
| eval { | |
| require tumble; | |
| my $tumble = tumble->new( |
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/bash | |
| NETWORK=$1 | |
| if [ -z ${NETWORK} ]; then | |
| echo "Usage: $0 10.20.30 (for 10.20.30.x)" | |
| exit 1; | |
| fi | |
| for h in `seq 1 254`; do | |
| NAME=''; | |
| ping -i c3 -w3 ${NETWORK}.${h} >/dev/null 2>&1 || \ |
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
| 192.168.7.3 | |
| 192.168.7.12 | |
| 192.168.7.18 | |
| 192.168.7.20 | |
| 192.168.7.27 | |
| 192.168.7.30 | |
| 192.168.7.31 | |
| 192.168.7.32 | |
| 192.168.7.34 | |
| 192.168.7.35 |
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/bash | |
| NETWORK=$1 | |
| if [ -z ${NETWORK} ]; then | |
| echo "Usage: $0 10.20.30 (for 10.20.30.x)" | |
| exit 1; | |
| fi | |
| for h in `seq 1 254`; do | |
| NAME=''; | |
| ping -i c3 -w3 ${NETWORK}.${h} >/dev/null 2>&1 || \ |