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
| # http://ezprompt.net/ | |
| # get current branch in git repo | |
| function parse_git_branch() { | |
| BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
| if [ ! "${BRANCH}" == "" ] | |
| then | |
| STAT=`parse_git_dirty` | |
| echo "[${BRANCH}${STAT}]" | |
| else | |
| echo "" |
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
| wsadmin>AdminApp.install('/home/wasadmin/HelloWorld3.ear', ['-cluster', 'AppTarget', '-filepermission', '.*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755', '-MapModulesToServers', [['.*', '.*', 'WebSphere:cell=DEVCELL,cluster=AppTarget,node=WPSDEV00,server=WebApp00']], '-MapWebModToVH', [['.*', '.*', 'default_host']]]) | |
| ADMA5016I: Installation of HelloWorld3 started. | |
| ADMA5058I: Application and module versions are validated with versions of deployment targets. | |
| ADMA5005I: The application HelloWorld3 is configured in the WebSphere Application Server repository. | |
| ADMA5005I: The application HelloWorld3 is configured in the WebSphere Application Server repository. | |
| ADMA5081I: The bootstrap address for client module is configured in the WebSphere Application Server repository. | |
| ADMA5053I: The library references for the installed optional package are created. | |
| ADMA5005I: The application HelloWorld3 is configured in the WebSphere Application Server repository. | |
| ADMA5001I: The application binaries are saved in /opt/IBM/WebSphere/ |
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
| /** | |
| * | |
| * http://stackoverflow.com/q/20293977/2009612 | |
| */ | |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" |
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
| PS> knife opc org user remove csm user01 | |
| ERROR: You authenticated successfully to https://chefserver01:443 as user01 but you are not authorized for this action | |
| Response: Please remove user01 from this organization's admins group before removing him or her from the organization. |
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
| --- | |
| # This is the configuration file for the Razor server. For each | |
| # environment, the file contains a hash of configuration values. The | |
| # special environment 'all' is used to set configuration values for all | |
| # environments | |
| # | |
| # The *database_url* setting must be a connection URL for | |
| # (Sequel)[http://sequel.rubyforge.org/rdoc/files/doc/opening_databases_rdoc.html] | |
| production: |
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
| sudo -u zabbix -- cat /proc/diskstats | /bin/grep dm-`dmsetup ls | grep \`cat /etc/fstab | grep /u01/app/oracle/admin/mybi_domain/mserver/applications | awk '{print $1}' | awk -F/ '{print $NF}'\` | awk '{print $3}' | sed s'/.$//'` | awk '{print $13}' |
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
| [vagrant@centos6 vagrant]$ chef exec knife cookbook upload confluence_install | |
| ERROR: Could not find cookbook confluence_install in your cookbook path, skipping it | |
| ERROR: Failed to upload 1 cookbook. | |
| [vagrant@centos6 vagrant]$ chef exec knife cookbook upload confluence_install -o ./cookbooks/ | |
| ERROR: Could not find cookbook confluence_install in your cookbook path, skipping it | |
| ERROR: Failed to upload 1 cookbook. | |
| [vagrant@centos6 vagrant]$ chef exec knife cookbook upload confluence_install -o /vagrant/cookbooks/ | |
| ERROR: Could not find cookbook confluence_install in your cookbook path, skipping it | |
| ERROR: Failed to upload 1 cookbook. | |
| [vagrant@centos6 vagrant]$ chef exec knife cookbook upload confluence_install -o /vagrant/cookbooks/ --verbose |
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
| USE zabbix_proxy; | |
| TRUNCATE TABLE proxy_history; | |
| DELETE FROM ids; | |
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
| certs_loc = File.expand_path('.', File.dirname(__FILE__)) | |
| puts "Certificates are loacted here: #{certs_loc}" | |
| log_level :info | |
| log_location STDOUT | |
| node_name 'pd028300' | |
| client_key "#{certs_loc}/PD028300.pem" | |
| validation_client_name 'chef-validator' | |
| validation_key "#{certs_loc}/chef-validator.pem" | |
| chef_server_url 'https://chefserver.local.net:443' | |
| syntax_check_cache_path 'C:/Users/PD028300/.chef/syntax_check_cache' |
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
| [Unit] | |
| Description=Zabbix MariaDB for 2.4 | |
| Requires=docker.service | |
| After=docker.service | |
| [Service] | |
| TimeoutStartSec=0 | |
| Restart=always | |
| ExecStart=/usr/bin/docker run -d --name zabbix-db -v /backups:/backups --volumes-from zabbix-db-storage --env="MARIADB_USER=zabbix" --env="MARIADB_PASS=my_password" zabbix/zabbix-db-mariadbserver-2.4 | |
| ExecStop=/usr/bin/docker stop -t 2 zabbix-db |