zoukankan      html  css  js  c++  java
  • 删habo tag

    curl 'http://store.onlyharbor.com/api/repositories/boss/crm/tags?detail=1'
    -H 'Connection: keep-alive'
    -H 'Pragma: no-cache'
    -H 'Cache-Control: no-cache'
    -H 'Accept: application/json, text/plain, */*'
    -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36'
    -H 'Referer: http://store.onlyharbor.com/harbor/tags/7/boss%2Fstudent'
    -H 'Accept-Language: zh-CN,zh;q=0.9'
    -H 'Cookie: beegosessionID=439c3c88e77448015d8e02bef094bd1d'
    --compressed
    --insecure >crm.txt


    cat crm.txt | grep tag |tr -d " " |sort |uniq|grep -v 2020| cut -d'"' -f4 >crm-end.txt

    cat crm.txt | grep name |tr -d " " |sort |uniq|grep -v 2020| cut -d'"' -f4 >crm-end.txt


    for i in `cat crm-end.txt`;do curl "http://store.onlyharbor.com/api/repositories/boss/crm/tags/$i"
    -X 'DELETE'
    -H 'Connection: keep-alive'
    -H 'Pragma: no-cache'
    -H 'Cache-Control: no-cache'
    -H 'Accept: application/json, text/plain, */*'
    -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36'
    -H 'Origin: http://store.onlyharbor.com'
    -H 'Referer: http://store.onlyharbor.com/harbor/tags/7/boss%2Ffrontend'
    -H 'Accept-Language: zh-CN,zh;q=0.9'
    -H 'Cookie: beegosessionID=439c3c88e77448015d8e02bef094bd1d'
    --compressed
    --insecure;done

    docker run -it --name gc --rm --volumes-from registry vmware/registry:2.6.2-photon garbage-collect  /etc/registry/config.yml

  • 相关阅读:
    How to Change Error Message Colors in Windows 10 PowerShell Console
    How to expand Azure VM OS Disk
    Ubuntu terminal colors
    Docker proxy
    如何对mRemoteNG在进行Linux终端访问时自定义配色
    100阶乘末尾有多少个零
    几道c/c++练习题
    M-BM-
    从FGUI中取一张图片并返回一个Sprite
    为什么手游选择lua热更新方案。
  • 原文地址:https://www.cnblogs.com/alexhjl/p/12874754.html
Copyright © 2011-2022 走看看