plain text
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
.runs[0].results | | |
map( | |
select( | |
.locations[0].physicalLocation.artifactLocation.uri | | |
contains("spec") | | |
not | |
) | |
) | | |
map( | |
.locations[0].physicalLocation.artifactLocation.uri as $filename | |
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
grep TS2578 <<<$(yarn tsc --pretty false 2>/dev/null || true) | | |
cut -d ':' -f 1 | | |
tr "()," " " | | |
awk '{ files[$1] = files [$1] $2 "d;" } END { for (f in files) { print "sed -i \"\" \"" files[f] "\" " f } }' | | |
bash -ex |
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
[ubuntu-s-1vcpu-1gb-nyc1-01] wtf > cat wtf.rb | |
hill = 0 | |
speed = 20 | |
gas = 20 | |
puts "hill,speed,gas,diff_hill,diff_speed,diff_gas" | |
100.times do | |
new_hill = hill + [1, -1].sample | |
new_speed = gas - hill |
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
package main | |
import ( | |
"crypto/rand" | |
"encoding/hex" | |
"fmt" | |
"io" | |
"os" | |
) |
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
[fg-386] tf_sqs_issue_repro > AWS_PROFILE=sandbox TF_LOG=DEBUG terraform apply | |
2021-06-24T14:57:13.379Z [DEBUG] Adding temp file log sink: /tmp/terraform-log988771105 | |
2021-06-24T14:57:13.379Z [INFO] Terraform version: 0.15.5 | |
2021-06-24T14:57:13.379Z [INFO] Go runtime version: go1.16.4 | |
2021-06-24T14:57:13.379Z [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"} | |
2021-06-24T14:57:13.379Z [DEBUG] Attempting to open CLI config file: /home/acoyle/.terraformrc | |
2021-06-24T14:57:13.379Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2021-06-24T14:57:13.379Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2021-06-24T14:57:13.379Z [DEBUG] ignoring non-existing provider search directory /home/acoyle/.terraform.d/plugins | |
2021-06-24T14:57:13.379Z [DEBUG] ignoring non-existing provider search directory /home/acoyle/.local/share/terraform/plugins |
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
[acoyle01] wat > go run yamltojson.go | |
lets turn YAML into JSON | |
here's the naive data structure | |
(map[string]interface {}) (len=1) { | |
(string) (len=3) "top": (map[interface {}]interface {}) (len=4) { | |
(string) (len=5) "super": (map[interface {}]interface {}) (len=1) { | |
(string) (len=5) "duper": (map[interface {}]interface {}) (len=1) { | |
(string) (len=4) "deep": (string) (len=3) "map" | |
} | |
}, |
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
[acoyle01] wat > bundle exec srb tc | |
village.rb:13: This code is unreachable https://srb.help/7006 | |
13 | raise "gtfo #{participant}" | |
^^^^^^^^^^^^^^^^^^^^^ | |
Errors: 1 | |
[acoyle01] wat > bundle exec ruby village.rb | |
time for the festival | |
#<Human:0x000055d9d0f03598> got wine | |
Traceback (most recent call last): | |
3: from village.rb:53:in `<main>' |
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
def name_replay(we, they): | |
return timestamp()+ '_' + we + '_vs_' + they | |
def timestamp(): | |
# not yet implemented | |
return |
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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using std::vector; | |
using std::remove_if; | |
using std::cout; | |
using std::endl; | |
bool smol(vector<int> vec); |