Hello,
My SO is learning coding. I wanted a convenient way for her to consume the content from roadmap.sh.
I hope it can help someone else.
If you want your own roadmap:
- Fork or Copy-paste the md files you are interested in your own gist.
Hello,
My SO is learning coding. I wanted a convenient way for her to consume the content from roadmap.sh.
I hope it can help someone else.
If you want your own roadmap:
| #!/bin/ash | |
| last_vpn_up=-1 | |
| count=0 | |
| while :; do | |
| ip route list | grep -q "default via .* dev tun0" | |
| vpn_up=$? | |
| count=$(($count+1)) |
| run_drequire 'puppet/parser/functions' | |
| Puppet::Parser::Functions.newfunction(:get_resource_info, | |
| :type => :rvalue, | |
| :doc => <<-'ENDOFDOC' | |
| Takes a resource name and returns a puppet structure of information about that resource | |
| as documented in https://docs.puppetlabs.com/references/3.6.2/man/resource_type.html and | |
| http://docs.puppetlabs.com/puppet/latest/reference/http_api/http_resource_type.html | |
| This function relies on a puppet face to parse the class definitions in the module paths as |
| # Create a map of the deploy server to the haproxy label | |
| server 'A.A.A.A', proxy_label: 'server-01' | |
| server 'B.B.B.B', proxy_label: 'server-02' | |
| # Define our puppet proxy server(s) and role | |
| server 'C.C.C.C', no_release: true, roles: [:proxy] | |
| # We need to override deploy:symlink:linked_dirs | |
| # No way around it - override deploy:symlink:release and rewrite it for rolling deploys | |
| Rake::Task["deploy:symlink:release"].clear_actions |
| class String | |
| def in_groups_of(n) | |
| chars.each_slice(n).map(&:join).join("\n") | |
| end | |
| end | |
| class SSL_Middleware | |
| def initialize(app, options = {}) | |
| @app = app | |
| @options = options |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Copyright (C) 2013 eNovance SAS <[email protected]> | |
| # | |
| # Author: Chmouel Boudjnah <[email protected]> | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may | |
| # not use this file except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # |