Skip to content

Instantly share code, notes, and snippets.

View chrisjones's full-sized avatar

Chris Jones chrisjones

  • Birmingham, AL USA
View GitHub Profile
@chrisjones
chrisjones / spf-dmarc-dkim.py
Created June 25, 2021 21:31
SPF - DMARC - DKIM scanner
#!/usr/bin/python
## Dependencies
import re
import subprocess, sys
## Variables
selectors = ["selector1", "selector2", "google", "default", "dkim", "k1", "mail", "mxvault" ]
@chrisjones
chrisjones / main.rb
Created November 1, 2010 01:09
qbrating.rb
require 'qbrating'
#Order: Completions, Attempts, Yards Completed, TDs, Interceptions
qb = QBRating.new(26,45,212,4,1)
puts "\nThe QB Rating is #{qb}."
1. The country with the highest population (1,210,004,956 people) is China.
2. Top 5 countries sorted by inflation rate:
Belarus - 244%
Turkey - 94%
Azerbaijan - 85%
Malawi - 83.3%
Yemen - 71.3%
3a. 6 continents found in factbook:
@chrisjones
chrisjones / polynomial.rb
Created November 27, 2009 09:23
Solution for RPCFN #4
#!/usr/bin/ruby
class Polynomial
def initialize(coefficients)
if coefficients.length < 2
raise ArgumentError, 'Need at least 2 coefficients.'
end
order = coefficients.length - 1
@poly = ""