Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ateoto on github.
  • I am mattmccants (https://keybase.io/mattmccants) on keybase.
  • I have a public key whose fingerprint is 5CB7 3D1D AB24 3D2D FF41 EC37 7F71 3294 87FE 6427

To claim this, I am signing this object:

import requests
import csv
from bs4 import BeautifulSoup
rows = []
for page_num in range(1, 11):
r = requests.get("http://www.sos.arkansas.gov/corps/search_corps.php?SEARCH=1&run={}&corp_name=%27".format(page_num))
if r.status_code == requests.codes.ok:
res = r.content
soup = BeautifulSoup(res)
import requests
import csv
from bs4 import BeautifulSoup
def is_alt_or_light(css_class):
if css_class is not None:
if css_class == 'alt':
return True
elif css_class == 'light':
import requests
import csv
from bs4 import BeautifulSoup
for page_num in range(1, 11):
r = requests.get("http://www.sos.arkansas.gov/corps/search_corps.php?SEARCH=1&run={}&corp_name=%27".format(page_num))
if r.status_code == requests.codes.ok:
res = r.content
soup = BeautifulSoup(res)
type Tag struct {
Major int
Minor int
Name string
}
type Tags []Tag
func (slice Tags) Len() int {
return len(slice)
@ateoto
ateoto / 1_example.yml
Last active August 29, 2015 14:10
Template Error in 1.8
---
- hosts: all
tasks:
- name: Determining database status
shell: "docker inspect --format '{% raw %}{{ .State.Running }}{% endraw %}' mongodb"
register: db_up
- debug: var=db_up
input {
syslog {
port => 5140
type => "docker"
}
}
output {
stdout {
codec => rubydebug
@ateoto
ateoto / gist:5168d78920fd6ca26085
Created October 22, 2014 17:27
Amazon describe-security-group
"Description": "Enable this sg to allow CircleCI SSH Access",
"IpPermissions": [
{
"ToPort": 22,
"IpProtocol": "tcp",
"IpRanges": [
{
"CidrIp": "72.44.32.0/19"
},
{
#!/bin/bash
git clone git@github.com:ateoto/notes.git