forked from MarcVillain/Confloose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
confloose_min.sh
executable file
·1 lines (1 loc) · 9.46 KB
/
confloose_min.sh
1
c2NyaXB0cz0oYWxpYXNfbWl4ZXIKYmlnX2Jyb3RoZXIKZ2lmaWxlcHRpYwpyYW5kb21fZWplY3QKc2F5X3BsZWFzZSkKIyEvYmluL2Jhc2gKCkNPTE9SX1JFRD0iXGVbMzFtIgpDT0xPUl9HUkVFTj0iXGVbMzJtIgpDT0xPUl9CTElOSz0iXGVbNW0iCkNPTE9SX1JFU0VUPSJcZVswbSIKCmVycl90b19lcmFzZT0wCmFjdGlvbnM9KCkKb3B0aW9ucz0oKQoKZGlzcGxheV9hY3Rpb25zKCkKewogICAgZWNobyAiQWN0aW9uczoiCiAgICBlY2hvIC1lICIgIDEpICR7Q09MT1JfQkxJTkt9cnVuJHtDT0xPUl9SRVNFVH0iCiAgICBpPTIKICAgIElGUz0iIgogICAgZm9yIGFjdGlvbiBpbiAke2FjdGlvbnNbQF19OyBkbwogICAgICAgIGluZGV4PSQoKGkgLSAyKSkKCiAgICAgICAgIyBDb2xvcgogICAgICAgIGlmIFsgJHtvcHRpb25zWyRpbmRleF19IC1lcSAwIF07IHRoZW4KICAgICAgICAgICAgZWNobyAtbmUgIiRDT0xPUl9SRUQiCiAgICAgICAgZWxzZQogICAgICAgICAgICBlY2hvIC1uZSAiJENPTE9SX0dSRUVOIgogICAgICAgIGZpCgogICAgICAgICMgVGV4dAogICAgICAgIGVjaG8gLW4gIiAgJGkpICRhY3Rpb24iCgogICAgICAgICMgUmVzZXQKICAgICAgICBlY2hvIC1lICIkQ09MT1JfUkVTRVQiCiAgICAgICAgaT0kKChpICsgMSkpCiAgICBkb25lCiAgICBlY2hvCiAgICBlY2hvICIgIDApIGNhbmNlbCIKICAgIGVjaG8KfQoKZXJhc2Vfc3Rkb3V0KCkKewogICAgYW1vdW50PSIkMSIKICAgIHdoaWxlIFsgJGFtb3VudCAtZ3QgMCBdOyBkbwogICAgICAgIHRwdXQgY3V1MQogICAgICAgIHRwdXQgZWwKICAgICAgICBhbW91bnQ9JCgoYW1vdW50IC0gMSkpCiAgICBkb25lCiAgICBlcnJfdG9fZXJhc2U9MAp9Cgpwcm9tcHRfb3B0aW9ucygpCnsKICAgICMgRXh0cmFjdCBnaXZlbiBkYXRhCiAgICB3aGlsZSBbICQjIC1ndCAwIF07IGRvCiAgICAgICAgYWN0aW9ucys9KCIkMSIpCiAgICAgICAgb3B0aW9ucys9KCIkMiIpCiAgICAgICAgc2hpZnQgMgogICAgZG9uZQoKICAgIGFjdGlvbnNfY291bnQ9IiR7I2FjdGlvbnNbQF19IgoKICAgIGRpc3BsYXlfYWN0aW9ucwoKICAgIHdoaWxlIHRydWU7IGRvCiAgICAgICAgIyBBc2sgZm9yIGlucHV0CiAgICAgICAgZWNobyAtbiAiU2VsZWN0OiIKICAgICAgICByZWFkIHNlbGVjdGVkCgogICAgICAgICMgQ2hlY2sgaW5wdXQgaXMgbnVtZXJpYwogICAgICAgIHJlPSdeWzAtOV0rJCcKICAgICAgICBpZiAhIFtbICRzZWxlY3RlZCA9fiAkcmUgXV0gOyB0aGVuCiAgICAgICAgICAgIGVjaG8gImVycm9yOiBOb3QgYSBudW1iZXIiID4mMgogICAgICAgICAgICBzZWxlY3RlZD0tMQogICAgICAgICAgICBjb250aW51ZQogICAgICAgIGZpCgogICAgICAgICMgQ2hlY2sgaW5wdXQgaXMgaW4gYm91bmRzCiAgICAgICAgaWYgWyAkKChzZWxlY3RlZCAtIDEpKSAtZ3QgJGFjdGlvbnNfY291bnQgXTsgdGhlbgogICAgICAgICAgICBlY2hvICJlcnJvcjogSW5wdXQgdmFsdWUgdG9vIGhpZ2giCiAgICAgICAgICAgIHNlbGVjdGVkPS0xCiAgICAgICAgICAgIGVycl90b19lcmFzZT0kKChlcnJfdG9fZXJhc2UgKyAyKSkKICAgICAgICAgICAgY29udGludWUKICAgICAgICBmaQoKICAgICAgICAjIEhhbmRsZSBleGl0IG9wdGlvbiAodmFsdWUgMCkKICAgICAgICBpZiBbICRzZWxlY3RlZCAtZXEgMCBdOyB0aGVuCiAgICAgICAgICAgIGVjaG8gIkNhbmNlbGVkISIKICAgICAgICAgICAgcmV0dXJuIDEKICAgICAgICBmaQoKICAgICAgICAjIEhhbmRsZSBydW4gb3B0aW9uCiAgICAgICAgaWYgWyAkc2VsZWN0ZWQgLWVxIDEgXTsgdGhlbgogICAgICAgICAgICBlY2hvICJSdW5uaW5nLi4uIgogICAgICAgICAgICBicmVhawogICAgICAgIGZpCgogICAgICAgICMgU3dpdGNoIG9wdGlvbgogICAgICAgIGN1cnJfaW5kZXg9JCgoc2VsZWN0ZWQgLSAyKSkKICAgICAgICBjdXJyX29wdGlvbj0ke29wdGlvbnNbJGN1cnJfaW5kZXhdfQogICAgICAgIG9wdGlvbnNbJGN1cnJfaW5kZXhdPSQoKChjdXJyX29wdGlvbiArIDEpICUgMikpCgogICAgICAgICMgT3ZlcnJpZGUgZGlzcGxheQogICAgICAgIGVyYXNlX3N0ZG91dCAkKCg2ICsgYWN0aW9uc19jb3VudCArIGVycl90b19lcmFzZSkpCiAgICAgICAgZGlzcGxheV9hY3Rpb25zCiAgICBkb25lCn0KIyEvYmluL3NoCgp3cml0ZV90b19yYygpCnsKICAgIF93cml0ZV90b19yYygpCiAgICB7CiAgICAgICAgdGVlIC1hIH4vLmJhc2hyYyB+Ly5iYXNoX3Byb2ZpbGUgMj4mMSAxPi9kZXYvbnVsbAogICAgfQoKICAgIF93cml0ZV90b19yYyA8PDwgJChlY2hvICIjID09PSBDb25mbG9vc2UgPT09ICMiKQogICAgX3dyaXRlX3RvX3JjIDwmMAogICAgX3dyaXRlX3RvX3JjIDw8PCAkKGVjaG8gIiMgPT09PT09PT09PT09PT09PT0gIyIpCn0KcnVuX2FsaWFzX21peGVyICgpIHsKcHJvbXB0X29wdGlvbnMgfHwgcmV0dXJuIDEKCndyaXRlX3RvX3JjIDw8LUVPRgpleHBvcnQgUFMxP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