https://github.com/google/cadvisor/search?q=ionice&unscoped_q=ionice
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
sudo git clone https://github.com/ahmetb/kubectx /opt/kubectx | |
sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx | |
sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens | |
echo "source /opt/kubectx/completion/kubectx.bash" >> ~/.bashrc | |
echo "source /opt/kubectx/completion/kubens.bash" >> ~/.bashrc |
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 | |
# Dependencies: | |
# - docker (obviously) | |
# - jq (json parsing) | |
docker_patch_usage() { | |
echo 'Usage: docker-patch' | |
echo ' CONTAINER=$(docker-patch start your/tag)' | |
echo ' # apply patch to $CONTAINER (docker container)' | |
echo ' docker-patch commit ${CONTAINER} your/patched-tag' |
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
#@ def group_alpha(): | |
name: alpha | |
#@ end | |
groups: &all_groups | |
- #@ group_alpha() | |
foo: | |
groups: *all_groups |
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
k get node -lkubernetes.io\/role=standard -o json | jq -r '[.items[] | .status.allocatable .cpu | .[0:-1] | tonumber | .] | add' | |
k get node -lkubernetes.io\/role=standard -o json | jq -r '[.items[] | .status.allocatable .memory | .[0:-1] | tonumber | .] | add'c |
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
docker run -n monkey -it --entrypoint bash docker.onedata.org/oneprovider:ID-62ae5b73f6 | |
docker cp storage_sync_engine.beam monkey:/usr/lib/op_worker/lib/op_worker-20.02.0-beta3/ebin | |
docker commit --change='ENTRYPOINT ["/root/oneprovider.sh"]' monkey docker.onedata.org/oneprovider:ID-62ae5b73f6_kk | |
#TODO | |
f() { fpath=$(k exec -it $1 -- find /usr -iname $2 | tr -d $'\r' ) ; echo -n $fpath ; k cp $2 $1:/ ; m1=$(k exec -it $1 -- md5sum /$2) ; m2=$(k exec -it $1 -- md5sum $fpath) ; echo $m1 ; echo $m2 ; k exec -it $1 -- mv /$2 $fpath ; k exec -it $1 -- md5sum $fpath } |
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
--- | |
# Official Onedata Github | |
cluster-worker: | |
src: ssh://[email protected]:7999/vfs/cluster-worker.git | |
dst: ssh://[email protected]/onedata/cluster-worker.git | |
did: /onedata_github | |
sid: /onedata_github | |
branches: | |
- master | |
- develop |
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
while IFS=',' read -r name sched ready compl initf ; do | |
name=$(echo $name | cut -d= -f2) ; | |
ready=$(echo $ready | cut -d= -f2); | |
sched=$(echo $sched | cut -d= -f2) ; | |
compl=$(echo $compl | cut -d= -f2) ; | |
initf=$(echo $initf | cut -d= -f2) ; | |
[ "$initf" = "null" ] && initf="" ; | |
s=$sched; | |
e=$ready; | |
[ "$initf" != "" ] && s=$initf ; |
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
#!/usr/bin/env bash | |
export URL='https://cloud.plgrid.pl/api/v1/' | |
#export PASS=~/.certs/user.pem:userpass | |
export PASS=~/.ssh/user.pem | |
plc_api() { | |
curl --cert $PASS ${URL}"$@" 2>/dev/null | |
} | |
# 220 - ubuntu 16 |
curl -v -sS --tlsv1.2 -vv -H "X-Auth-Token: MDAxNWxvY2F00aW9uIG9uZXpvbmUKMDAzMGlkZW500aWZpZXIgYTE2ZTcwM2NlZjlmOTEwZjhjNDFlOGQ2NzhkM2Q00NDEKMDAxYWNpZCB00aW1lIDwgMTU2ODEzNDAzOAowMDJmc2lnbmF00dXJlIMOUMjuA6Yypw7AB7uHbprktjA7JeWFARwNW00hoMWb1VCg" -X GET "https://release18020-rc11-oneprovider-krakow/api/v3/oneprovider/files/krk-3/"
curlv -sS -H "Accept: application/rdf+xml" --tlsv1.2 -vv -H "X-Auth-Token: MDAxNWxvY2F00aW9uIG9uZXpvbmUKMDAzMGlkZW500aWZpZXIgYTE2ZTcwM2NlZjlmOTEwZjhjNDFlOGQ2NzhkM2Q00NDEKMDAxYWNpZCB00aW1lIDwgMTU2ODEzNDAzOAowMDJmc2lnbmF00dXJlIMOUMjuA6Yypw7AB7uHbprktjA7JeWFARwNW00hoMWb1VCg" -X GET "https://release18020-rc11-oneprovider-krakow/api/v3/oneprovider/metadata-id/000000000046DD3267756964236432396539376362316335333661303536646165373336646165623865343030236336313535326466333762353463363465353566616161353861343135663133?metadata_type=rdf"
NewerOlder