Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# 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+) ' |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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!
\
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 |