I hereby claim:
- I am erran-r7 on github.
- I am err7n (https://keybase.io/err7n) on keybase.
- I have a public key whose fingerprint is 36F0 D12F 87C8 21ED 7D2E 5D26 8314 77F7 80B2 FDD4
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| docker ps -q | xargs -n 1 docker inspect -f "{{$@}}" |
| require 'ostruct' | |
| require 'benchmark/ips' # gem install benchmark-ips | |
| AGE = 21 | |
| USER = 'User'.freeze | |
| HASH = { name: USER, age: AGE }.freeze | |
| User = Struct.new(:name, :age) | |
| def ostruct_slow |
| When(/^I create a copy of the "(.*)" scan template$/) do |template_name| | |
| scan_templates = @nexpose_client.scan_templates | |
| ifnone = -> { raise ArgumentError, "No scan template named '#{template_name}' found." } | |
| template_summary = scan_templates.find(ifnone) do |scan_template| | |
| scan_template.name.eql?(template_name) | |
| end | |
| @scan_template = Nexpose::ScanTemplate.copy(@nexpose_client, template_summary.id) | |
| if scan_templates.map(&:name).include?(@scan_template.name) | |
| @scan_template.name << "via (ControlsInsight automation – #{Time.now.utc.to_i})" |
| def doAssessment | |
| puts 'doing assessment' | |
| true | |
| end | |
| # => :doAssessment | |
| success = false | |
| # => false | |
| success &= doAssessment |
| // Javascript function as an object (class) | |
| var Person = { | |
| sayHello: function (otherPerson) { | |
| console.log("Hello, "+otherPerson.name+"!"); | |
| }, | |
| name: 'Anon', | |
| new: function (name) { | |
| this.name = name; | |
| return this; | |
| } |
| [health_check] --> /opt/rapid7/metasploit-framework//embedded/metasploit-framework/data/isight.bundle | |
| [health_check] DEPENDS ON: CoreAudioKit | |
| [health_check] COUNT: 1 | |
| [health_check] PROVIDED BY: /System/Library/Frameworks/CoreAudioKit.framework/Versions/A/CoreAudioKit | |
| [health_check] FAILED BECAUSE: Unsafe dependency | |
| [health_check] --> /opt/rapid7/metasploit-framework//embedded/metasploit-framework/data/isight.bundle | |
| [health_check] DEPENDS ON: Foundation | |
| [health_check] COUNT: 1 | |
| [health_check] PROVIDED BY: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation | |
| [health_check] FAILED BECAUSE: Unsafe dependency |
| #!/usr/bin/env bash | |
| apt-get -y update | |
| apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
| cd /tmp | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
| tar -xvzf ruby-1.9.3-p125.tar.gz | |
| cd ruby-1.9.3-p125/ | |
| ./configure --prefix=/usr/local | |
| make | |
| make install |
| " If you're using Janus this file is automatically loaded your .vimrc files (some of which are symlinked to Janus' internal vimrc) | |
| set nocompatible | |
| filetype plugin indent on | |
| set hls | |
| " I prefer Mustang, you can pick whatever colorscheme floats your boat | |
| colorscheme Mustang | |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = 'precise64' | |
| client_vagrantfile = File.expand_path('../Vagrantfile.client', __FILE__) | |
| eval File.read(client_vagrantfile) if File.exists?(client_vagrantfile) | |
| config.vm.define :server do |server_config| |