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
# Just replace the release name with your release name. Like `20.04 = focal`. I have used `focal` here. | |
# To know the release name visit the link: https://en.wikipedia.org/wiki/Ubuntu_version_history | |
deb mirror://mirrors.ubuntu.com/mirrors.txt focal main restricted universe multiverse | |
deb mirror://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted universe multiverse | |
deb mirror://mirrors.ubuntu.com/mirrors.txt focal-backports main restricted universe multiverse | |
deb mirror://mirrors.ubuntu.com/mirrors.txt focal-security main restricted universe multiverse | |
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted | |
deb http://security.ubuntu.com/ubuntu/ focal-security universe |
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
backend httpbin | |
balance roundrobin | |
mode http | |
server master 192.168.50.10:32009 check check-sni httpbin.example.com sni str(httpbin.example.com) ssl verify none | |
http-request set-header Host httpbin.example.com | |
http-request set-header X-Forwarded-For %[src] | |
http-request set-header X-Forwarded-Port %[dst_port] | |
http-request add-header X-Forwarded-Proto https if { ssl_fc } |
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
slackResponse = null | |
pipeline { | |
agent any | |
environment { | |
GIT_COMMIT_MESSAGE = """${sh( | |
returnStdout: true, | |
script: "git --no-pager show -s --format='%s' ${GIT_COMMIT}" | |
)}""" |
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
def camel_to_underscore(name): | |
""" | |
Convert a name from camel case convention to underscore lower case convention. | |
Args: | |
name (str): name in camel case convention. | |
Returns: | |
name in underscore lowercase convention. | |
""" | |
camel_pat = compile(r'([A-Z])') |
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
// semantic-ui-form.js | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Form, Input } from 'semantic-ui-react'; | |
export default function semanticFormField ({ input, type, label, placeholder, meta: { touched, error, warning }, as: As = Input, ...props }) { | |
function handleChange (e, { value }) { | |
return input.onChange(value); | |
} |