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 | |
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 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 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 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 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 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 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 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] |
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 | |
BOSEMAC="28:xx:xx:xx:xx:xx" | |
SONYMAC="70:xx:xx:xx:xx:xx" | |
if [[ $1 == "--sony" ]]; then | |
MAC=$SONYMAC | |
elif [[ $1 == "--bose" ]]; then | |
MAC=$BOSEMAC | |
else | |
echo "usage: ./connect-headphones.sh <--sony|--bose>" |
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
map $server_port $onioned { | |
800 "yep"; | |
default "nope"; | |
} | |
server { | |
listen 127.0.0.1:443 ssl http2; # web | |
listen 127.0.0.1:800 ssl http2; # onion | |
server_name dl.condi.me; |