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
[{"operationName":"IssuesByControlTable","variables":{"first":20,"filterBy":{}},"query":"query IssuesByControlTable($filterBy: ControlFilters, $first: Int, $after: String) { | |
controls(filterBy: $filterBy, first: $first, after: $after, orderBy: {field: SEVERITY, direction: ASC}) { | |
nodes { | |
id | |
name | |
severity | |
matchingEntityCount | |
issues(first: 5, filterBy: {status: [IN_PROGRESS, OPEN]}, orderBy: {field: SEVERITY, direction: ASC}) { | |
nodes { | |
...IssueQuery |
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
2017-02-20 17:37:35.872 924 ERROR nova.compute.manager [req-fb6581cc-cb12-4b18-a7a6-0a5d043044fe tempest-ServerRescueNegativeTestJSON-1551099904 tempest-ServerRescueNegativeTestJSON-1551099904] [instance: 520a9093-1280-47ae-b21d-59afaa6bb9e7] Failed to detach volume 6eb6d1ed-fac3-49b8-80b4-a34849477e26 from /dev/vdb | |
Traceback (most recent call last): | |
File "/opt/stack/new/nova/nova/compute/manager.py", line 4823, in _driver_detach_volume | |
encryption=encryption) | |
Local variables: | |
'instance': Instance(access_ip_v4=None,access_ip_v6=None,architecture=None,auto_disk_config=False,availability_zone=None,cell_name=None,cleaned=False,config_drive='',created_at=2017-02-20T15:33:00Z,default_ephemeral_device=None,default_swap_device=None,deleted=False,deleted_at=None,device_metadata=<?>,disable_terminate=False,display_description='tempest-ServerRescueNegativeTestJSON-server-707607157',display_name='tempest-ServerRescueNegativeTestJSON-server-707607157',ec2_ids=<?>,ephemeral_gb=0,ephemeral_key_uuid=None,fau |
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
import gevent | |
import gipc | |
import time | |
def main(): | |
with gipc.pipe(duplex=True) as (cend, pend): | |
# `cend` is the channel end for the child, `pend` for the parent. | |
p = gipc.start_process(writer_process, args=(cend,)) | |
# Synchronize with child process. |
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
Show hidden characters
{ | |
"auto_complete_delay": true, | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": ".", | |
"selector": "source.python" | |
} | |
], | |
"auto_indent": true, |
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 version is None and not options.accept_buildout_test_releases: | |
# Figure out the most recent final version of zc.buildout. | |
import setuptools.package_index | |
_final_parts = '*final-', '*final' | |
def _final_version(parsed_version): | |
for part in parsed_version: | |
if (part[:1] == '*') and (part not in _final_parts): | |
return False | |
return True |
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/zsh | |
rm -rf "${ZDOTDIR:-$HOME}/.zprezto" | |
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" | |
setopt EXTENDED_GLOB | |
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do | |
ln -sf "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}" | |
done | |
echo ' | |
autoload -U promptinit |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.097792483870000002</real> | |
<key>Green Component</key> | |
<real>0.1152475402</real> |
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
# Install Mac OS X | |
# Install Xcode Command Line Tools | |
# homebrew | |
sudo ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" | |
sudo echo " | |
/usr/local/bin | |
/usr/local/sbin | |
/usr/local/share/python | |
/usr/local/share/ruby/bin |
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
from infi.pyvisdk import Vim | |
client = Vim() | |
managed_object = client.getHostSystems()[0] | |
def some_vmware_op() | |
# This does something with the host | |
raise NotImplementedError() | |
def simple_operation(): |