Skip to content

Instantly share code, notes, and snippets.

View ontouchstart's full-sized avatar

Sam Liu ontouchstart

  • USA
View GitHub Profile
up:
docker-compose up -d
down:
docker-compose down
rebuild:
docker-compose run web bundle install
docker-compose build
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
[
{
"AccountName": null,
"AdditionalInfo": null,
"AdditionalProperties": null,
"BillableQuantity": null,
"BillingPeriodId": "/subscriptions/2441ec97-42d8-424a-a820-c4aefaa7c958/providers/Microsoft.Billing/billingPeriods/202012",
"BillingPeriodName": "202012",
"ConsumedService": "Microsoft.Compute",
"CostCenter": null,
@ontouchstart
ontouchstart / AzConsumptionUsageDetail.json
Created November 18, 2020 23:23
Get-AzConsumptionUsageDetail | Select-Object -Property UsageQuantity, UsageStart, UsageEnd | ConvertTo-Json | Out-File -Path /home/AzConsumptionUsageDetail.json
[
{
"UsageQuantity": 0.009636,
"UsageStart": "2020-11-17T00:00:00Z",
"UsageEnd": "2020-11-17T23:59:59Z"
},
{
"UsageQuantity": 0.004827,
"UsageStart": "2020-11-16T00:00:00Z",
"UsageEnd": "2020-11-16T23:59:59Z"
@ontouchstart
ontouchstart / AzConsumptionUsageDetail.json
Created November 18, 2020 23:27
Get-AzConsumptionUsageDetail | Select-Object -Property UsageQuantity, UsageStart, UsageEnd | Sort-Object -Property UsageQuantity | ConvertTo-Json | Out-File -Path /home/AzConsumptionUsageDetail.json
[
{
"UsageQuantity": 0.000008,
"UsageStart": "2020-11-16T00:00:00Z",
"UsageEnd": "2020-11-16T23:59:59Z"
},
{
"UsageQuantity": 0.000008,
"UsageStart": "2020-11-17T00:00:00Z",
"UsageEnd": "2020-11-17T23:59:59Z"
@ontouchstart
ontouchstart / AzConsumptionUsageDetail.json
Created November 18, 2020 23:37
Get-AzConsumptionUsageDetail | Select-Object -Property InstanceName, ConsumedService, UsageQuantity, UsageStart, UsageEnd | Sort-Object -Property UsageQuantity | ConvertTo-Json | Out-File -Path /home/AzConsumptionUsageDetail.json
[
{
"InstanceName": "win2016VM",
"ConsumedService": "Microsoft.Compute",
"UsageQuantity": 0.000008,
"UsageStart": "2020-11-16T00:00:00Z",
"UsageEnd": "2020-11-16T23:59:59Z"
},
{
"InstanceName": "ontouchstart",