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
$ TF_LOG=DEBUG terraform apply | |
2020/04/15 15:16:50 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility. | |
Use TF_LOG=TRACE to see Terraform's internal logs. | |
---- | |
2020/04/15 15:16:50 [INFO] Terraform version: 0.12.24 | |
2020/04/15 15:16:50 [INFO] Go runtime version: go1.12.13 | |
2020/04/15 15:16:50 [INFO] CLI args: []string{"/usr/local/bin/terraform-0.12.24", "apply"} | |
2020/04/15 15:16:50 [DEBUG] Attempting to open CLI config file: /home/invertigo/.terraformrc | |
2020/04/15 15:16:50 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/04/15 15:16:50 [DEBUG] checking for credentials in "/home/invertigo/.terraform.d/plugins" |
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
Wed Mar 20 23:51:31 UTC 2019 |
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
#!/usr/bin/env python2 | |
#-*- coding: utf-8 -*- | |
# NOTE FOR WINDOWS USERS: | |
# You can download a "exefied" version of this game at: | |
# http://hi-im.laria.me/progs/tetris_py_exefied.zip | |
# If a DLL is missing or something like this, write an E-Mail (me@laria.me) | |
# or leave a comment on this gist. | |
# Very simple tetris implementation |
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
#!/usr/bin/env python | |
'''clear "ssh-temp" and create a new rule for all traffic from current IP''' | |
def get_my_public_ip(): | |
'''returns outbound (public) IP address in string format''' | |
from httplib import HTTPConnection | |
ipconn = HTTPConnection('icanhazip.com') | |
ipconn.request('GET', '/') | |
myip = ipconn.getresponse() |
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
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
# thanks to /u/Qurtys_Lyn | |
'''Convert words into phonetic alphabet''' | |
import sys | |
def get_opts(): |
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
def is_ip4addr(some_string): | |
'''True if some_string is an IPv4 address''' | |
try: | |
octets = [int(o) for o in some_string.split('.')] | |
except ValueError: # because some element cannot be cast to integer | |
return False | |
# ip addresses have between one and four octets | |
if len(octets) > 4: |
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
#!/usr/bin/env python | |
'''clear "ssh-temp" and create a new rule for all traffic from current IP''' | |
def get_my_public_ip(): | |
'''returns outbound (public) IP address in string format''' | |
from httplib import HTTPConnection | |
ipconn = HTTPConnection('icanhazip.com') | |
ipconn.request('GET', '/') | |
myip = ipconn.getresponse() |
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
BLACK="\[\033[0;30m\]" | |
BLACKBOLD="\[\033[1;30m\]" | |
RED="\[\033[0;31m\]" | |
REDBOLD="\[\033[1;31m\]" | |
GREEN="\[\033[0;32m\]" | |
GREENBOLD="\[\033[1;32m\]" | |
YELLOW="\[\033[0;33m\]" | |
YELLOWBOLD="\[\033[1;33m\]" | |
BLUE="\[\033[0;34m\]" | |
BLUEBOLD="\[\033[1;34m\]" |