# launch pry
/opt/opscode/embedded/bin/pry
[1] pry(main)> require 'chef/rest'
=> true
# create a Chef::REST object pointed at localhost with the pivotal user and pivotal.pem (required for admin operations)
[2] pry(main)> chef_rest = Chef::REST.new('https://localhost/', 'pivotal', '/etc/opscode/pivotal.pem')- The Chef Server runbook: https://docs.chef.io/runbook.html
- Tuning the Chef Server for scale: http://irvingpop.github.io/blog/2015/04/20/tuning-the-chef-server-for-scale
- pgAdmin 3: https://www.pgadmin.org/
- Brendan Gregg - Linux Performance: http://www.brendangregg.com/linuxperf.html
- Brendan Gregg - USE method: http://www.brendangregg.com/usemethod.html
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
| from django.conf import settings | |
| from django.core.management.base import BaseCommand | |
| #### pyflakes.scripts.pyflakes, modified: | |
| ## - return array of warnings instead of printing them | |
| ## - honour pyflakes:ignore comments | |
| import compiler, sys | |
| import os | |
| import pyflakes.checker |
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/bin/env python | |
| import json | |
| import sys | |
| def pp(vv, prefix='$'): | |
| if isinstance(vv, (list,tuple)): | |
| for i, v in enumerate(vv): | |
| pp(v, "{0}[{1}]".format(prefix, i)) | |
| elif isinstance(vv, dict): |
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/bin/env perl -w | |
| # | |
| # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| # Version 2, December 2004 | |
| # | |
| # Copyright (C) 2013 Maciej Pasternacki <[email protected]> | |
| # | |
| # Everyone is permitted to copy and distribute verbatim or modified | |
| # copies of this license document, and changing it is allowed as long | |
| # as the name is changed. |
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
| INFO: 18-May-2015 Starting the HS Sweeper now | |
| java.lang.NoClassDefFoundError: org/objectweb/asm/Type | |
| at com.yahoo.monitoring.metric.core.chain.AggregateBuilder.<clinit>(AggregateBuilder.java:85) | |
| at com.yahoo.monitoring.metric.core.chain.AggregateFactory.getAggregateConstructor(AggregateFactory.java:42) | |
| at com.yahoo.monitoring.metric.core.chain.Binding.getAggregateTemplate(Binding.java:146) | |
| at com.yahoo.monitoring.metric.core.chain.Binding.<init>(Binding.java:133) | |
| at com.yahoo.monitoring.metric.core.Registry.createBindingFromChain(Registry.java:286) | |
| at com.yahoo.monitoring.metric.core.Registry.getDefaultCounterBinding(Registry.java:290) | |
| at com.yahoo.monitoring.metric.core.Registry.<init>(Registry.java:322) | |
| at com.yahoo.monitoring.metric.core.Registry.<init>(Registry.java:347) |
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
| -bash-4.1$ df -khP | |
| Filesystem Size Used Avail Use% Mounted on | |
| /dev/mapper/sys-root 9.9G 3.1G 6.4G 33% / | |
| tmpfs 7.6G 0 7.6G 0% /dev/shm | |
| /dev/sda1 473M 72M 378M 16% /boot | |
| /dev/mapper/sys-home 429G 2.1G 405G 1% /home | |
| /dev/mapper/sys-tmp 4.0G 137M 3.7G 4% /tmp | |
| /dev/mapper/sys-var 4.0G 1.1G 2.8G 27% /var | |
| nfsarchive19603.mail.gq1.yahoo.com:/ifs/mail/as196003 14T 4.9M 14T 1% /home/as/v3 | |
| nfsarchive19603.mail.gq1.yahoo.com:/ifs/mail/as196019 14T 4.9M 14T 1% /home/as/v19 |
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
| log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. | |
| ---> Type : A | |
| ---> Address : as123.mail.vip.bf1.yahoo.com | |
| ---> SID : 2039253347 | |
| ---> Volume : v0 | |
| ---> Filename : Archive-2039253347-1393042402 | |
| ---> Offset : 60611 | |
| ---> Length : 0 | |
| ---> Ymumid : null | |
| ---> HS Cluster : hs106.mail.vip.bf1.yahoo.com |
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
| nfsarchive19303.mail.gq1.yahoo.com:/ifs/mail/as193003 /home/as/v3 nfs rw,intr,bg,tcp,nolock,nfsvers=3,rsize=32768,wsize=32768 0 0 | |
| nfsarchive19303.mail.gq1.yahoo.com:/ifs/mail/as193019 /home/as/v19 nfs rw,intr,bg,tcp,nolock,nfsvers=3,rsize=32768,wsize=32768 0 0 | |
| nfsarchive19303.mail.gq1.yahoo.com:/ifs/mail/as193035 /home/as/v35 nfs rw,intr,bg,tcp,nolock,nfsvers=3,rsize=32768,wsize=32768 0 0 | |
| nfsarchive19303.mail.gq1.yahoo.com:/ifs/mail/as193051 /home/as/v51 nfs rw,intr,bg,tcp,nolock,nfsvers=3,rsize=32768,wsize=32768 0 0 | |
| nfsarchive19303.mail.gq1.yahoo.com:/ifs/mail/as193067 /home/as/v67 nfs rw,intr,bg,tcp,nolock,nfsvers=3,rsize=32768,wsize=32768 0 0 | |
| nfsarchive19303.mail.gq1.yahoo.com:/ifs/mail/as193083 /home/as/v83 nfs rw,intr,bg,tcp,nolock,nfsvers=3,rsize=32768,wsize=32768 0 0 | |
| nfsarchive19303.mail.gq1.yahoo.com:/ifs/mail/as193099 /home/as/v99 nfs rw,intr,bg,tcp,nolock,nfsvers=3,rsize=32768,wsize=32768 0 0 | |
| nfsarchive19303.mail.gq1.yahoo.com:/ifs/mail/as193115 /home/as/v115 nfs rw,intr,bg,tcp,nolock,nfsvers=3,rsiz |
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
| BS/smoke/deploy/deploy.bim:deploy_pogo_cookbook: ../../../../../common/lightsaber_joy_of_cooking.yaml | |
| CI/Deploy/Makefile: /home/y/bin/pogo run --api 'http://mail.pogo.corp.yahoo.com:4080/pogo/v3' --pk-file /home/y/var/deployment_keys/ymeng/private_key --use-keydb --byauth-user by_tortuga --run_as ymeng --sshagent --unconstrained --namespace mail --targets @mail.lsg.set.gq1-qa-4on6 -C https://git.corp.yahoo.com/mail-storage/storage_services/raw/master/common/lightsaber_joy_of_cooking.yaml -R igor_restore_nohooks | |
| CI/Deploy/deploy.bim:deploy_pogo_cookbook: https://git.corp.yahoo.com/mail-storage/storage_services/raw/master/common/lightsaber_joy_of_cooking.yaml | |
| HS/HS4on6/smoke/deploy/deploy.bim:deploy_pogo_cookbook: ../../../../common/lightsaber_joy_of_cooking.yaml | |
| HS/smoke/4on6deploy/deploy.bim:deploy_pogo_cookbook: ../../../../../common/lightsaber_joy_of_cooking.yaml | |
| HS/smoke/ASV4/deploy/deploy.bim:deploy_pogo_cookbook: ../../../../../common/lightsaber_joy_of_cooking.yaml | |
| HS/smoke/ArchiveCrawler/deploy/deploy.b |
NewerOlder