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
| #!/usr/bin/env python3 | |
| import time | |
| import uuid | |
| import random | |
| import requests | |
| # This script is tested and working as of November 2020. | |
| # It is only a slightly modified version of leezu's script: https://gist.github.com/leezu/2efb1533d453b70db406b58eb6e3a2af | |
| # leezu gets 99.9% of the credit |
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
| ####### Certificates ####### | |
| desc "Installs the certificates and profiles locally" | |
| lane :certificates do |options| | |
| if options[:use_temporary_keychain] | |
| create_temporary_keychain | |
| end | |
| readonly = (options[:refresh_certificates] ? false : true) | |
| force_for_new_devices = !readonly |
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
| kind: Ingress | |
| apiVersion: extensions/v1beta1 | |
| metadata: | |
| name: redirect-ingress | |
| annotations: | |
| ingress.kubernetes.io/configuration-snippet: | | |
| if ($host ~ ^(.+)\.somedomain\.io$) { | |
| return 301 https://$1.domain.io$request_uri; | |
| } | |
| spec: |
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
| case $operatingsystem { | |
| 'windows': { | |
| Package { | |
| provider => chocolatey, | |
| } | |
| } | |
| } | |
| # ensure Chocolatey is installed - host the package internally | |
| class {'chocolatey': |
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
| <style> | |
| .header { | |
| background-image: url(http://local.dev/wp-content/uploads/2016/04/image-300x151.png) | |
| } | |
| @media only screen and (min-width: 300px) {.header { | |
| background-image: url(http://local.dev/wp-content/uploads/2016/04/image-768x386.png) | |
| }} | |
| @media only screen and (min-width: 768px) {.header { | |
| background-image: url(http://local.dev/wp-content/uploads/2016/04/image-1024x515.png) | |
| }} |