Skip to content

Instantly share code, notes, and snippets.

View armiller's full-sized avatar

Anthony Miller armiller

  • Linkedin
  • Sunnyvale, CA
View GitHub Profile
@meineerde
meineerde / parse_haproxy_logs.py
Created November 29, 2012 14:41
Python Regex to Parse HAProxy's HTTP Logs
# Are quotes escaped?
escaped_quotes = True
haproxy_re = (r'haproxy\[(?P<pid>\d+)\]: '
r'(?P<client_ip>(\d{1,3}\.){3}\d{1,3}):(?P<client_port>\d{1,5}) '
r'\[(?P<date>\d{2}/\w{3}/\d{4}(:\d{2}){3}\.\d{3})\] '
r'(?P<listener_name>\S+) (?P<server_name>\S+) '
r'(?P<Tq>(-1|\d+))/(?P<Tw>(-1|\d+))/(?P<Tc>(-1|\d+))/(?P<Tr>(-1|\d+))/'
r'(?P<Tt>\+?\d+) '
r'(?P<HTTP_return_code>\d{3}) (?P<bytes_read>\d+) '
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active July 14, 2024 15:27
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@jeremiahsnapp
jeremiahsnapp / create_chef11_key_file.rb
Last active March 25, 2016 21:37
Manually download Open Source Chef Server 11 data to migrate to separate Chef Server 12 server
require 'pg'
require 'json'
def pull_chef11_db_credentials
puts "Pulling open source Chef 11 database credentials"
if !File.exists?("/etc/chef-server/chef-server-running.json")
puts "Failed to find /etc/chef-server/chef-server-running.json"
exit 1
end