This file contains 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
""" | |
Context manager for environment variables | |
Usage: | |
os.environ['MYVAR'] = 'oldvalue' | |
with EnvironmentContex(MYVAR='myvalue', MYVAR2='myvalue2'): | |
print os.getenv('MYVAR') # Should print myvalue. | |
print os.getenv('MYVAR2') # Should print myvalue2. |
This file contains 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
# | |
# Replace FILESYSTEM-ID-HERE and REGION-ID-HERE | |
# | |
option_settings: | |
- option_name: EFS_VOLUME_ID | |
value: FILESYSTEM-ID-HERE | |
- option_name: EFS_REGION | |
value: REGION-ID-HERE |
This file contains 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
#build us a binary for https://github.com/bitly/oauth2_proxy/pull/277 | |
FROM golang | |
WORKDIR /go/src/github.com/bitly | |
RUN git clone https://github.com/kindlyops/oauth2_proxy.git | |
WORKDIR /go/src/github.com/bitly/oauth2_proxy | |
RUN git checkout github-teams-tweaks | |
RUN go get | |
# include patch from https://github.com/bitly/oauth2_proxy/pull/295 | |
RUN curl https://github.com/donaldguy/oauth2_proxy/commit/8965e6b58a3afd8ad9f0f326f91b25253c88d523.patch | git apply --apply - | |
RUN go build |
This file contains 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
# Virtual Tunnel Interface | |
# 172.196.17.188 - 172.196.17.191 | |
set interfaces vti vti0 address 172.196.17.190/30 | |
set interfaces vti vti0 description 'Virtual tunnel interface for VPN tunnel' | |
# Phase 2 | |
set vpn ipsec esp-group ESP-Default compression 'disable' | |
set vpn ipsec esp-group ESP-Default lifetime '3600' | |
set vpn ipsec esp-group ESP-Default mode 'tunnel' | |
set vpn ipsec esp-group ESP-Default pfs 'dh-group16' |
This file contains 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
param($global:RestartRequired=0, | |
$global:MoreUpdates=0, | |
$global:MaxCycles=10) | |
function Check-ContinueRestartOrEnd() { | |
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" | |
$RegistryEntry = "InstallWindowsUpdates" | |
switch ($global:RestartRequired) { | |
0 { | |
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry |