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
from dns.resolver import Resolver | |
import logging | |
import argparse | |
logging.basicConfig(level=logging.INFO) | |
class Locator(Resolver): | |
"""A robust way to identify your public ipv4 / ipv6 without any system dependence | |
usage: |
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_doc: | |
stage: build | |
image: pandoc/latex:2.9.2 | |
script: | |
- echo "---" >> headers.md | |
- "echo 'title: '${CI_PROJECT_TITLE} >> headers.md" | |
- "echo 'date: '$(date +'%m/%d/%Y') >> headers.md" | |
- "echo 'header-includes: |' >> headers.md" | |
- echo " \usepackage{fancyhdr}" >> headers.md | |
- echo " \pagestyle{fancy}" >> headers.md |
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
#!/bin/sh | |
if [ -n "$POSTGRES_DBS" ]; then | |
IFS=\| | |
for s in $POSTGRES_DBS ; do | |
pass=$(echo "$s" | sed 's/.*->//'); | |
user=$(echo "$s" | sed 's/->.*//'); | |
db=$user"_db"; | |
psql --username "$POSTGRES_USER" <<-EOSQL |