Skip to content

Instantly share code, notes, and snippets.

View davidkazuhiro's full-sized avatar
:octocat:
Working

David Somers-Harris davidkazuhiro

:octocat:
Working
  • Rakuten
  • Tokyo, Japan
View GitHub Profile
SACM Charter Proposal
2017-09-12
Securing information and the systems that store, process, and transmit that information is a challenging task for organizations of all sizes, and many security practitioners spend much of their time on manual processes. Standardized protocols and models aiding collection and evaluation of endpoint attributes enable automation, thus freeing practitioners to focus on high priority tasks .
At its core, posture assessment consists of five basic steps, which the working group desires to fulfill in an innovative, automated manner capable of avoiding ad hoc or scheduled assessments:
1. Describe target endpoints
2. Determine specific endpoint elements to assess
3. Collect and make available specified elements' actual values
$ hab pkg build .
hab-studio: Creating Studio at /hab/studios/src (default)
hab-studio: Importing davidkazuhiro secret origin key
» Importing origin key from standard input
★ Imported secret origin key davidkazuhiro-20171015144159.
hab-studio: Building '.' in Studio at /hab/studios/src (default)
hab-studio: Exported: HAB_ORIGIN=davidkazuhiro
Script started, file is /src/results/logs/sinatra-hab.2017-10-15-144216.log
: Loading /src/habitat/plan.sh
sinatra-hab: Plan loaded
@davidkazuhiro
davidkazuhiro / cachet_issue_2888.md
Last active February 20, 2018 10:57
How to Reproduce the Cachet Metrics Bug #2888

How to Reproduce

Start Cachet

Open a shell and do the following

Create docker-compose.yml

cat << EOT > docker-compose.yml

Keybase proof

I hereby claim:

  • I am davidkazuhiro on github.
  • I am davidkazuhiro (https://keybase.io/davidkazuhiro) on keybase.
  • I have a public key ASCQo412Z6WdyaEb7fHK43lYVj2LHbHSqXQ5LHjStu78FAo

To claim this, I am signing this object:

@davidkazuhiro
davidkazuhiro / .bashrc
Created November 29, 2018 01:35 — forked from vsouza/.bashrc
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
start
test_mock (test_upload.UploaderTest) ... FAIL
NoneType: None
======================================================================
FAIL: test_mock (test_upload.UploaderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/mock.py", line 1191, in patched
return func(*args, **keywargs)
import io
import unittest
from unittest.mock import patch
import licenses
import pandas
def mocked_requests_get(*args, **kwargs):
class MockResponse:
@davidkazuhiro
davidkazuhiro / skips.out
Created February 2, 2019 04:36
For some reason, pip doesn't install boxsdk[jwt] if it's preceded by boxsdk in requirements.txt
$ docker run -it python bash
root@4610288c357f:/# echo boxsdk >> requirements.txt
root@4610288c357f:/# echo boxsdk[jwt] >> requirements.txt
root@4610288c357f:/# cat requirements.txt
boxsdk
boxsdk[jwt]
root@4610288c357f:/# pip install -r requirements.txt
Collecting boxsdk (from -r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/7f/fd/561a64bc6ee053fbdd1b55d4fbbc702fe6a6366d29caa53cd0fac773cb22/boxsdk-2.0.0-py2.py3-none-any.whl (119kB)
100% |████████████████████████████████| 122kB 6.5MB/s
@davidkazuhiro
davidkazuhiro / mashed_potatoes.md
Created February 27, 2019 10:59
A Recipe for Mashed Potatoes from "Tasty"

Mashed Potato Recipe

Source: How To Make The Creamiest Mashed Potatoes (YouTube)

Ingredients

  • Yukon Gold Potatoes
    • These are somewhere between a waxy and starchy potato
    • Can be substituted with a similar starchy potato
  • Salt - 3 tsp