Given that your key has expired.
$ gpg --list-keys
$ gpg --edit-key KEYID
Use the expire command to set a new expire date:
| from django.db.models import OuterRef | |
| weapons = Weapon.objects.filter(unit__player_id=OuterRef('id')) | |
| units = Unit.objects.filter(player_id=OuterRef('id')) | |
| qs = Player.objects.annotate(weapon_count=SubqueryCount(weapons), | |
| rarity_sum=SubquerySum(units, 'rarity')) |
As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.
The problems and solutions described in the examples below have led to the development of sciluigi,
| from sqlalchemy import create_engine | |
| from sqlalchemy.orm import Session | |
| from myapp.models import BaseModel | |
| import pytest | |
| @pytest.fixture(scope="session") | |
| def engine(): | |
| return create_engine("postgresql://localhost/test_database") |
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| var ui = SpreadsheetApp.getUi(); | |
| function onOpen(e){ | |
| ui.createMenu("Gmail Manager").addItem("Get Emails by Label", "getGmailEmails").addToUi(); | |
| } | |
| function getGmailEmails(){ | |
| var input = ui.prompt('Label Name', 'Enter the label name that is assigned to your emails:', Browser.Buttons.OK_CANCEL); | |
| --- | |
| - name: Create Instance in AWS | |
| hosts: localhost | |
| connection: local | |
| gather_facts: false | |
| vars: | |
| aws_access_key: "xxxxxx" | |
| aws_secret_key: "xxxxxx" | |
| security_token: "xxxxxx" |
| --- | |
| # Name: ansible-aws-inventory-main.yml | |
| # Description: this is the main file that calls the worker file (ansible-aws-inventory-worker.yml) to create an inventory of all the | |
| # specific aws resources. | |
| # Below are the resources that will be inventoried | |
| # - vpc | |
| # - subnet | |
| # - igw | |
| # - cgw | |
| # - vgw |
| # Name: ansible-aws-inventory-worker.yml | |
| # Description: this is the worker file that called the main file (ansible-aws-inventory-main.yml) to to create an inventory of all the | |
| # specific aws resources. This file, the worker file and the ansible inventory file must be placed in the same folder | |
| # Prerequisites: | |
| # - the worker file (ansible-aws-inventory-worker.yml) and the ansible hosts file must be present in the same folder as this file (ansible-aws-inventory-main.yml) | |
| # - this script requires read access to all resources it will be querying. An AWS IAM user account must be created with the necessary permissions and with access keys enabled. | |
| # At a minimum, to query all the resources mentioned above, the following permissions are required | |
| # - AmazonVPCReadOnlyAccess | |
| # - AmazonEC2ReadOnlyAccess | |
| # - ElasticLoadBalancingReadOnly |