This file contains hidden or 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
index.js |
This file contains hidden or 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
# Set the compiler toolchain to musl-gcc | |
# In gentoo, create the toolchain with crossdev | |
# | |
# crossdev -t x86_64-pc-linux-musl -S | |
# | |
CC = x86_64-pc-linux-musl-gcc | |
# The toolchain sets the ELF Interpreter to /lib/ld-musl-x86_64.so.1 | |
# Either, set the interpreter in the binary to the musl dynamic loader, | |
# which is the same file as the libc, or symlink the expected loader. |
This file contains hidden or 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 | |
set -e | |
git detach origin/master | |
set +e | |
mapfile -t BRANCHES < <(git branch | grep -v -e '\*' -e '\+') | |
for branch in "${BRANCHES[@]}"; do | |
branch_name="$(echo "$branch"|awk '{print $1}')" |
This file contains hidden or 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
fn init_tracer() -> Result<(), tracing_subscriber::util::TryInitError> { | |
let exporter_config = opentelemetry_zipkin::ExporterConfig::builder() | |
.with_service_name("service".to_string()) | |
.with_service_endpoint("127.0.0.1:9411".parse().expect("valid sockaddr")) | |
.build(); | |
let exporter = opentelemetry_zipkin::Exporter::from_config(exporter_config); | |
le |
This file contains hidden or 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 | |
CONTAINER_NAME="$1" | |
exec nsenter --target $( | |
docker inspect --format "{{.State.Pid}}" $( | |
docker ps -q --filter name="${CONTAINER_NAME}" | |
) | |
) --mount --uts --ipc --net --pid |
This file contains hidden or 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
const fs = require("fs").promises; // nodejs 10.x | |
const { b64decode, getGithubClient } = require("./utils"); | |
// If API clients need some async setup, create a placeholder for them. | |
let octokit = undefined; | |
async function main() { | |
// Fill in placeholders first | |
octokit = await getGithubClient(); |
This file contains hidden or 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 | |
cd "$(dirname "$(readlink -f "${BASH_ARGV0}")")" | |
echo "${PWD}" |
This file contains hidden or 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 json | |
import requests | |
from boto3.session import Session as AWSSession | |
from gql_py import Gql | |
from requests import Session | |
from requests_aws4auth import AWS4Auth | |
aws = AWSSession() | |
session = Session() |
This file contains hidden or 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
{ | |
"foo": "bar" | |
} |
This file contains hidden or 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
bencord0@localhost ~/src/f_or_d $ cat Pipfile | |
[[source]] | |
verify_ssl = true | |
name = "pypi" | |
url = "https://pypi.python.org/simple" | |
[requires] | |
python_version = "3.7" | |
[packages] |