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
asdf |
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
#!/usr/bin/env ruby | |
module Badgers | |
class BlackWhite | |
attr_accessor :name | |
def initialize(name) | |
@name = name | |
end |
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
type ThreatSpec struct { | |
Boundaries map[string]struct { | |
Name string `json:"name"` | |
} `json:"boundaries"` | |
Components map[string]struct { | |
Name string `json:"name"` | |
} `json:"components"` | |
Threats map[string]struct { | |
Name string `json:"name"` | |
Reference string `json:"reference"` |
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
type threatspec struct { | |
boundaries map[string]struct { | |
name string | |
} | |
components map[string]struct { | |
name string | |
} | |
threats map[string]struct { | |
name string | |
reference string |
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
================================================================================ | |
Recipe Compile Error in /tmp/kitchen/cookbooks/sensu_spec/recipes/test_client.rb | |
================================================================================ | |
Chef::Exceptions::ValidationFailed | |
---------------------------------- | |
Option name must be a kind of [Regexp]! You passed "(?-mix:(?:must fail|fails) with message ['\"]?(?<message>.*?)['\"]?)". | |
Cookbook Trace: | |
--------------- |
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
function _track_pwd() { | |
HIST_MAX=25 | |
if [ -z "$PCD_ID" ]; then | |
# Create a new ID | |
export PCD_ID=$(cat /dev/urandom | tr -d -c 'a-f0-9' | fold -w 16 | head -1) | |
echo "$PWD" > "$HOME/.pwd_history.d/${PCD_ID}" | |
fi | |
if [ -e "$HOME/.pwd_history.d/${PCD_ID}" ]; then |
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
#!/usr/bin/env ruby | |
require 'json' | |
trap "SIGINT" do | |
exit 130 | |
end | |
def debug(msg) | |
$stderr.write "DEBUG #{msg}\n" if debug == 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
CREATE TABLE messages ( | |
id INT UNSIGNED NOT NULL AUTO_INCREMENT, | |
created DATE NOT NULL, | |
source VARCHAR(16) NOT NULL, -- entity id | |
destination VARCHAR(16) NOT NULL, -- entity id | |
queue VARCHAR(255) NOT NULL, -- e.g incoming/csrs or outgoing/certs | |
body TEXT NOT NULL -- json message itself (probably encrypted) | |
) | |
CREATE TABLE store ( |
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
package api | |
type Api struct { | |
Id string | |
Path string | |
} | |
type Apier interface { | |
Connect(string) error | |
Authenticate(string, string) error |
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
package main | |
import ( | |
"fmt" | |
log "github.com/cihub/seelog" | |
"github.com/docopt/docopt-go" | |
) | |
// ****************************************************************** | |
// Models - actually probably just what's already in core |
NewerOlder