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!
\
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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+) ' |