Merge branch 'master' of https://git.paco.to/nick/sciencefair
commit
bdbe5e5dec
Binary file not shown.
After Width: | Height: | Size: 6.5 KiB |
|
@ -0,0 +1,10 @@
|
|||
import qrcode
|
||||
from qrcode.image.styledpil import StyledPilImage
|
||||
from qrcode.image.styles.moduledrawers import CircleModuleDrawer
|
||||
|
||||
qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_L)
|
||||
qr.add_data('https://git.paco.to/nick/sciencefair2023')
|
||||
|
||||
img_1 = qr.make_image(image_factory=StyledPilImage,
|
||||
module_drawer=CircleModuleDrawer())
|
||||
img_1.save("img_1.png")
|
|
@ -61,7 +61,7 @@ class VpcBasisStack(cdk.Stack):
|
|||
allow_all_outbound=True, security_group_name='Sci-sg' )
|
||||
self.SciSG.add_ingress_rule(peer=ec2.Peer.ipv4('173.79.190.162/32'),
|
||||
connection=ec2.Port.tcp(22), description="ssh in from home")
|
||||
self.SciSG.add_ingress_rule(peer=ec2.Peer.ipv4('70.164.18.200/29'),
|
||||
self.SciSG.add_ingress_rule(peer=ec2.Peer.ipv4('70.164.19.200/29'),
|
||||
connection=ec2.Port.tcp(22), description="ssh in from nova")
|
||||
self.SciSG.add_ingress_rule(peer=ec2.Peer.any_ipv6(),
|
||||
connection=ec2.Port.tcp(80), description="HTTP open to the world, ipv6")
|
||||
|
|
Loading…
Reference in New Issue