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
function replay_lambda() { | |
local profile=$1 | |
local fn=$2 | |
sqs_message="initialising..." | |
dlq_arn=$(aws --profile=$profile lambda get-function --function-name "$fn" | jq -r '.Configuration.DeadLetterConfig.TargetArn') | |
dlq=$(aws --profile=$profile sqs get-queue-url --queue-name "$(echo ${dlq_arn##*:})" --output=text) | |
while [ ! -z "$sqs_message" ]; do |
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
0x659E208C44370AA620e7Cd39d29c8dec030Ae94F |
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
<?php | |
namespace Acme\Serializer\Encoder; | |
use Symfony\Component\Serializer\Encoder\DecoderInterface; | |
use Symfony\Component\Serializer\Encoder\EncoderInterface; | |
class PlainEncoder implements EncoderInterface, DecoderInterface | |
{ | |
const FORMAT = 'plain'; |
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
require File.expand_path("../../Abstract/abstract-php-extension", __FILE__) | |
class Php71Yaml < AbstractPhp71Extension | |
init | |
desc "YAML-1.1 parser and emitter" | |
homepage "https://pecl.php.net/package/yaml" | |
url "https://pecl.php.net/get/yaml-2.0.0.tgz" | |
sha256 "ef13ff56c184290c025a522bf9ae2e1b3ecc8543c3a5161dd02adec90897a221" | |
head "https://github.com/php/pecl-file_formats-yaml.git", :branch => "php7" |
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
require File.expand_path("../../Abstract/abstract-php-extension", __FILE__) | |
class Php71Xdebug < AbstractPhp71Extension | |
init | |
desc "Provides debugging and profiling capabilities." | |
homepage "http://xdebug.org" | |
url "https://pecl.php.net/get/xdebug-2.4.1.tgz" | |
sha256 "23c8786e0f5aae67b1e5035972bfff282710fb84c483887cebceb8ef5bbdf8ef" | |
head "https://github.com/xdebug/xdebug.git" |
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 | |
# Import any playlist (within the script) to Google Music All Access playlist. | |
# | |
# Based on Tim Hutt's script: | |
# https://gist.github.com/Timmmm/6572592 | |
# | |
# Instructions: | |
# 1. Write the playlist down to the file | |
# 2. Install `gmusicapi` using `pip`: `pip install gmusicapi` |
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
<snippet> | |
<content><![CDATA[echo "<pre>"; print_r (${1:variable}); die("</pre>");]]></content> | |
<tabTrigger>dv</tabTrigger> | |
<scope>source.php</scope> | |
<description>PHP: debug with print_r</description> | |
</snippet> |
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 | |
""" | |
To use this you have to include the task ID on the commit message. | |
Example: Fixing typo, #9283764018 | |
You can as well close a task within the commit message. | |
Example: Improving the docs, closes #9823761989 | |
""" |
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
parameters: | |
states: | |
AC: | |
code: AC | |
state: 'Acre' | |
AL: | |
code: AL | |
state: 'Alagoas' | |
AM: | |
code: AM |
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
<?php | |
namespace Acme\CoreBundle\Twig; | |
class DateSinceExtension extends \Twig_Extension | |
{ | |
public function getFilters() | |
{ | |
return array( | |
'date_since' => new \Twig_Filter_Method($this, 'dateSince'), |
NewerOlder