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
"General stuff | |
syntax on | |
set nocompatible | |
filetype off | |
set pastetoggle=<F2> "paste mode shortcut | |
set cursorline cursorcolumn "crosshair where cursor is | |
set nobackup nowritebackup noswapfile autoread "no cruft. | |
set ruler "always show ruler in statusline | |
"set number "line numbers for akrug | |
set textwidth=120 "deal with it. |
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
def get_known_cis_users_paginated(self): | |
""" | |
Call CIS Person API and return a list of all known profiles | |
return: list of dict JSON profiles | |
""" |
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 github import Github | |
import pprint | |
import time | |
import os | |
### WARNING WARNING WARNING WARNING WARNING | |
# This is a VERY CRUDE script with NO WARRANTIES | |
# It performs DANGEROUS operations. | |
# | |
# That script will list all open PRs to repositories matching the filter, which are created by `bot_user` below |
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 python2 | |
# See https://github.com/jpf/okta-jwks-to-pem (Apache License) | |
# This is, essentially, the reverse of "jwks_to_pem.py". | |
# Given a PEM encoded public key, it will extract the modulus and exponent | |
# from the key and return JWKS formatted JSON | |
input_key = "" | |
import struct | |
import base64 |
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
hgmaster> TASK [docker-hg-ssh : copy requirements.txt] *********************************** | |
hgmaster> changed: [localhost] | |
hgmaster> TASK [docker-hg-ssh : populate virtualenv /var/hg/venv_testing] **************** | |
hgmaster> changed: [localhost] | |
hgmaster> TASK [docker-hg-ssh : install unifyrepo testing config] ************************ | |
hgmaster> changed: [localhost] | |
hgmaster> RUNNING HANDLER [ldap-system-auth : restart sshd] ****************************** | |
hgmaster> fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find the requested service sshd: host"} | |
hgmaster> ...ignoring | |
hgmaster> RUNNING HANDLER [hg-ssh-server : restart rsyslogd] ***************************** |
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
vct> Successfully built 2b3c91b13108 | |
Error running mach: | |
['build-all'] | |
The error occurred in code that was called by the mach command. This is either | |
a bug in the called code itself or in the way that mach is calling it. | |
You should consider filing a bug for this issue. |
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
>> images | |
[{u'Created': 1542662598, u'Labels': None, u'VirtualSize': 188075713, u'SharedSize': -1, u'ParentId': u'', u'Size': 188075713, u'RepoDigests': [u'ubuntu@sha256:f961d3d101e66017fc6f0a63ecc0ff15d3e7b53b6a0ac500cd1619ded4771bd6'], u'Id': u'sha256:f17b6a61de28594fb3ec53b1cca7164fba66357d1635b414eeed4d586744342e', u'Containers': -1, u'RepoTags': [u'ubuntu:14.04']}, {u'Created': 1542662442, u'Labels': None, u'VirtualSize': 86178190, u'SharedSize': -1, u'ParentId': u'', u'Size': 86178190, u'RepoDigests': [u'ubuntu@sha256:6d0e0c26489e33f5a6f0020edface2727db9489744ecc9b4f50c7fa671f23c49'], u'Id': u'sha256:93fd78260bd1495afb484371928661f63e64be306b7ac48e2d13ce9422dfee26', u'Containers': -1, u'RepoTags': [u'ubuntu:latest']} ..... |
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
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
dockerd 25964 root cwd DIR 254,0 4096 2 / | |
dockerd 25964 root rtd DIR 254,0 4096 2 / | |
dockerd 25964 root txt REG 254,0 89454472 15347768 /usr/bin/dockerd | |
dockerd 25964 root mem REG 254,0 88200 21774183 /usr/lib/libresolv-2.28.so | |
dockerd 25964 root mem REG 254,0 274224 21770263 /usr/lib/libnss_resolve.so.2 | |
dockerd 25964 root mem REG 254,0 274224 21770221 /usr/lib/libnss_mymachines.so.2 | |
dockerd 25964 root mem REG 254,0 55200 21773204 /usr/lib/libnss_files-2.28.so | |
dockerd 25964 root mem REG 254,0 26528 21772903 /usr/lib/libnss_dns-2.28.so | |
dockerd 25964 root mem REG 254,0 75664 21769856 /usr/lib/libnss_myhostname.so.2 |
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
Python 2.7.15 (default, Jun 27 2018, 13:05:28) | |
[GCC 8.1.1 20180531] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import docker | |
>>> client = docker.from_env() | |
>>> client.containers.run("ubuntu", "echo hello world") | |
'hello world\n' | |
>>> |
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
v git-core/git-cinnabar-helper git-cinnabar-helper | |
Building Docker images. | |
This could take a while and may consume a lot of internet bandwidth. | |
If you don't want Docker images, it is safe to hit CTRL+c to abort this. | |
Error running mach: | |
['build-all'] | |
The error occurred in code that was called by the mach command. This is either |