I hereby claim:
- I am clux on github.
- I am clux (https://keybase.io/clux) on keybase.
- I have a public key ASAy9nUjl9_rP6YrGWmB7UYnCUzYrrIhnTHeaokQz_wJ8Qo
To claim this, I am signing this object:
#!/bin/bash | |
export TERM=xterm-256color | |
show_cwd() { | |
local dir_limit="3" | |
local truncation="⋯" | |
local first_char | |
local part_count=0 | |
local formatted_cwd="" | |
local dir_sep=" " |
pub fn http_download_to_path(url: &str, save: &PathBuf) -> Result<()> { | |
let client = Client::with_connector(HttpsConnector::new(NativeTlsClient::new().unwrap())); | |
let mut res = client.get(url).send()?; | |
if res.status != hyper::Ok { | |
return Err(Error::SomeError))); | |
} | |
let use_progress = true; | |
if use_progress { | |
use indicatif::{ProgressBar, ProgressStyle}; |
target |
I hereby claim:
To claim this, I am signing this object:
cat <<EOF | yq . -y | kubectl apply -n kube-system -f - | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: { name: filebeat-config } | |
data: | |
filebeat.yml: |- | |
$(kubectl get cm -n kube-system filebeat-config -oyaml \ | |
| yq '.data["filebeat.yml"]' -r \ | |
| sed -n "/output/q;p" \ | |
| sed -e "\$aoutput.console:\n pretty: false" |
Thank you for your interest in the kube-rs project ("Kube") by Eirik 'clux' Albrigtsen (the "Owner"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Owner must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Kube, the Owner and its users; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Owner. In return, the Owner shall not use Your Contributions in a way that is contrary to the public benefit. Except for the license granted herein to the Owner and recipients of software distributed by the Owner, You reserve all right, title, and interest in and to Your Contributions.
# kubectl < 1.21 | |
ky() { | |
local -r resource="${1:-$(kubectl api-resources --no-headers | choose 0 | fzf)}" | |
local -r name="${2:-$(kubectl get ${resource} --no-headers | choose 0 | fzf)}" | |
kubectl get "${resource}" "${name}" -oyaml \ | |
| yq 'del(.metadata.managedFields)' -y \ | |
| bat -l=yaml --plain --theme=DarkNeon | |
} | |
# kubectl >= 1.21 |
me goofing around in inkscape |
use k8s_openapi::api::core::v1::Pod; | |
use serde_json::json; | |
use tracing::*; | |
use kube::{ | |
api::{Api, DeleteParams, ListParams, Patch, PatchParams, PostParams, ResourceExt}, | |
runtime::wait::{await_condition, conditions::is_pod_running}, | |
Client, | |
}; |