Skip to content

Instantly share code, notes, and snippets.

View frodera's full-sized avatar

frodera frodera

  • 13:59 (UTC +10:00)
View GitHub Profile
@frodera
frodera / dag.py
Last active April 15, 2019 06:03
# -*- coding: utf-8 -*-
from datetime import datetime
from airflow import DAG
from airflow.operators import BashOperator
from airflow.contrib.operators.ecs_operator import ECSOperator
from acme.utils.datetime import LOCAL_TZ
DAG_ID = 'dag_test_ecs'
@frodera
frodera / ripgrep-in-emacs.md
Last active December 4, 2018 10:13 — forked from pesterhazy/ripgrep-in-emacs.md
Using ripgrep in Emacs using helm-ag (Spacemacs)

Why

Ripgrep is a fast search tool like grep. It's mostly a drop-in replacement for ag, also know as the Silver Searcher.

helm-ag is a fantastic package for Emacs that allows you to display search results in a buffer. You can also jump to locations of matches. Despite the name, helm-ag works with ripgrep (rg) as well as with ag.

How

Keybase proof

I hereby claim:

  • I am frodera on github.
  • I am frodera (https://keybase.io/frodera) on keybase.
  • I have a public key whose fingerprint is AD58 3C92 CD65 C180 85F9 C87C 78AA B769 7DDB A340

To claim this, I am signing this object:

@frodera
frodera / Error
Created January 21, 2011 10:02
create_tags error
I, [2011-01-21T10:55:16.783488 #11240] INFO -- : New RightAws::Ec2 using shared connections mode
I, [2011-01-21T10:55:16.784474 #11240] INFO -- : Opening new HTTPS connection to eu-west-1.ec2.amazonaws.com:443
-> i-d09985a7 ec2-46-137-17-195.eu-west-1.compute.amazonaws.com
W, [2011-01-21T10:55:19.213078 #11240] WARN -- : ##### RightAws::Ec2 returned an error: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidParameterCombination</Code><Message>The parameter 'Value' may only be specified once.</Message></Error></Errors><RequestID>d6d4fddb-279b-48b3-beb3-4c3a574b60b7</RequestID></Response> #####
W, [2011-01-21T10:55:19.213232 #11240] WARN -- : ##### RightAws::Ec2 request: https://eu-west-1.ec2.amazonaws.com:443/?AWSAccessKeyId=XXXXXXXXXXXXXXXXXXXXX&Action=CreateTags&ResourceId.1=i-12345678&SignatureMethod=HmacSHA256&SignatureVersion=2&Tag.1.Key.1=myKey1&Tag.1.Key.2=myValue1&Tag.1.Value.1=myKey2&Tag.1.Value.2=myValue2&Timestamp=2011-01-21T09%3A55%3A17.000Z&Version=