Skip to content

Instantly share code, notes, and snippets.

View pgburt's full-sized avatar

Paul Burt pgburt

View GitHub Profile
Feature: Evaluate responses to various HTTP methods.
Background:
Given "curl" is installed
And the following profile:
| name | value |
| hostname | google.com |
Scenario Outline: Verify server responds correctly to various HTTP methods
When I launch a "curl" attack with:
Feature: Evaluate responses to various HTTP methods.
Background:
Given "curl" is installed
And the following profile:
| name | value |
<% payload.each do |key, value| %>
<%= "| hostname | #{value} |" %>
<% end %>
require_relative 'bundle/bundler/setup'
require 'json'
require 'iron_worker'
require 'erb'
# Load data
attack_file = File.new('./verbs.erb', 'r').read
payload = IronWorker.payload
# Build the .attack file using payload data
@pgburt
pgburt / hello.go
Created December 11, 2015 19:51
Hey, I'm having some trouble understanding what's happening here.
package main
import "fmt"
func zeroval(ival int) {
ival = 0
fmt.Println("ival:", ival)
}
func zeroptr(iptr *int) {
package main
import (
"fmt"
"math"
)
func main() {
for n := 1; n <= 10; n++ {
leibnizNum := math.Pow(-1, float64(n)) / float64(2 * n + 1)
@pgburt
pgburt / index.js
Last active January 8, 2016 21:00
#!/usr/bin/env node
var validate = require('data-validate');
var valid = validate.len(8)
.isEmail()
.notContains('+')
('pam@example.com')
var invalid = validate.len(8)
.isEmail()
.notContains('+')
@pgburt
pgburt / notes.md
Last active January 20, 2016 02:22
Notes from 1/19/16 SFRails
@pgburt
pgburt / Headlines-and-copy.md
Last active February 17, 2016 00:26
Notes on article titles and writing styles that I enjoy.

##Headlines ###Parse 2.0 Parse:

  • This first bit was in the news the week prior for shutting down.

2.0:

  • Short, sweet, and says exactly what the article is about. "The next things for Parse customers".
  • Also works as a great contrast against other headlines (which are more likely to be wordy).
  • A heading like Parse 1.3 would not work. Not enough oomf to the change.
package main
import (
"fmt"
"math"
"math/big"
//"github.com/iron-io/iron_go/worker"
)
@pgburt
pgburt / main.go
Last active February 29, 2016 22:25
Now reading from the payload file
package main
import (
"fmt"
"math"
"math/big"
"github.com/iron-io/iron_go/worker"
)
func CalcNumerator(num int) int64 {