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
delegator.py==0.1.1 | |
requests==2.22.0 |
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/bash | |
# | |
# Gets a temporary token from STS and stores it in the default AWS profile. | |
# | |
# The script needs two environment variables set: | |
# * AWS_MFA_ARN: ARN of your MFA device (look up in IAM) | |
# * AWS_STS_PROFILE: aws cli user profile that allows you to call STS | |
# | |
# To use it, you also need to have two profiles in your ~/.aws/credentials file. The default and the | |
# one that contains your permanent access tokens. Like this for example: |
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
select pg_stat_ssl.pid, client_addr, datname, usename, application_name, ssl | |
from pg_stat_activity | |
join pg_stat_ssl | |
on pg_stat_activity.pid = pg_stat_ssl.pid; |
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
import logging | |
from django.utils import translation | |
class SubdomainLanguageMiddleware(object): | |
""" | |
Set the language for the site based on the subdomain the request | |
is being served on. For example, serving on 'fr.domain.com' would | |
make the language French (fr). |
OlderNewer