Skip to content

Instantly share code, notes, and snippets.

View Azrael808's full-sized avatar

Peter Green Azrael808

View GitHub Profile
@Azrael808
Azrael808 / circle.yml
Last active November 22, 2017 14:15
CircleCI: Automatically Deploy WordPress to Elastic Beanstalk
machine:
<machine_config>
dependencies:
pre:
- pip install awsebcli
- <other_project_dependencies>
database:
<database_setup>
test:
<test_config>
@Azrael808
Azrael808 / master.php
Created September 13, 2016 21:45
Configuring W3 Total Cache with Environment Variables
<?php
return array(
'version' => '0.9.4.1',
'cluster.messagebus.debug' => false,
'cluster.messagebus.enabled' => false,
'cluster.messagebus.sns.region' => '',
'cluster.messagebus.sns.api_key' => '',
'cluster.messagebus.sns.api_secret' => '',
'cluster.messagebus.sns.topic_arn' => '',
@Azrael808
Azrael808 / assets.confg
Last active June 25, 2017 00:26
Automatically Publishing Files to CloudFront in Elastic Beanstalk
container_commands:
01_upload_to_cdn:
command: |
export REGION=`curl -s http://169.254.169.254/latest/dynamic/instance-identity/document |grep region |cut -d: -f2 | sed -e 's/[\",]//g'`
export INCLUDES=`echo $W3TC_CF_FILE_EXTENSIONS | sed 's/;/\ /g'`
for INC in $INCLUDES; do
aws s3 sync wp-includes/ s3://${W3TC_CF_BUCKET_NAME}/wp-includes/ --exclude "*" --include "${INC}" --region $REGION
aws s3 sync wp-content/ s3://${W3TC_CF_BUCKET_NAME}/wp-content/ --exclude "*" --include "${INC}" --region $REGION
done
@Azrael808
Azrael808 / gist:93910e44d008bfaab4dd4075f6e9adb8
Created September 23, 2022 13:39
Retreive FLDC reward transactions and format as CSV - useful for importing to Koinly
curl -s https://xchain.io/api/sends/{address} | jq '.data[] | "\(.timestamp),\(.quantity),\(.asset),Airdrop,\(.tx_hash)"' | tr -d '"'