$ du -h filename # shows the size in kiB/MiB/GiB (1024 increments) $ du -h --si filename # shows the size in kB/MB/GB (1000 increments)
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
$ terraform apply | |
An execution plan has been generated and is shown below. | |
Resource actions are indicated with the following symbols: | |
+ create | |
Terraform will perform the following actions: | |
# aws_s3_bucket.encrypted will be created | |
+ resource "aws_s3_bucket" "encrypted" { |
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
2019/05/24 17:44:02 [INFO] Terraform version: 0.12.0 | |
2019/05/24 17:44:02 [INFO] Go runtime version: go1.12.4 | |
2019/05/24 17:44:02 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"} | |
2019/05/24 17:44:02 [DEBUG] Attempting to open CLI config file: /Users/maviemarcos/.terraformrc | |
2019/05/24 17:44:02 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/05/24 17:44:02 [INFO] CLI command args: []string{"apply"} | |
2019/05/24 17:44:02 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config | |
2019/05/24 17:44:02 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory | |
2019/05/24 17:44:02 [DEBUG] New state was assigned lineage "0eb1377e-4a69-a17b-5ddf-f4d25de5d570" | |
2019/05/24 17:44:02 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend) |
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
#!/bin/bash | |
awk '/^func Test/' aws/structure_test.go | sed "s/func \(Test[a-zA-Z0-9_]*\)(.*$/make testacc TESTARGS='-run=\1'/" > tests.sh |
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
2018/10/01 13:41:49 [INFO] Terraform version: 0.11.8 7a5c1d221ac209bbac66947c369815cd9ca70ed5 | |
2018/10/01 13:41:49 [INFO] Go runtime version: go1.10.1 | |
2018/10/01 13:41:49 [INFO] CLI args: []string{"/usr/local/bin/terraform", "init", "-input=false"} | |
2018/10/01 13:41:49 [DEBUG] Attempting to open CLI config file: /Users/yakdriver/.terraformrc | |
2018/10/01 13:41:49 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2018/10/01 13:41:49 [INFO] CLI command args: []string{"init", "-input=false"} | |
2018/10/01 13:41:49 [DEBUG] command: loading backend config file: /Users/yakdriver/dev/fardvag/sg_bug | |
2018/10/01 13:41:49 [INFO] command: empty terraform config, returning nil | |
2018/10/01 13:41:49 [DEBUG] command: no data state file found for backend config | |
2018/10/01 13:41:49 [DEBUG] New state was assigned lineage "44b3fe01-e94a-ab5c-dde8-904093ff412d" |
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
sudo su | |
yum install epel-release | |
yum --enablerepo=epel install docker-io | |
# centos 7 | |
systemctl start docker | |
# centos 6 | |
service docker start |
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
shasum -a 256 filename.txt |
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
import sys | |
import os | |
import glob | |
for path in sys.path: | |
for afile in glob.glob(os.path.join(path, '*')): | |
print(os.path.join(path, afile)) |
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
# named operation | |
query GetRelease($owner: String!, $repo: String!, $tag: String!) { | |
repository( | |
owner: $owner, | |
name: $repo | |
) { | |
release(tagName: $tag) { | |
name | |
id | |
releaseAssets(first:10) { |
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
query { | |
repository( | |
owner: "YakDriver", | |
name: "pyppyn" | |
) { | |
release(tagName: "0.2.3") { | |
name | |
id | |
releaseAssets(first:10) { | |
nodes { |