├── .github └── workflows │ └── ibm.yml ├── .gitmodules ├── IBM_Cloud_CLI ├── CF_CLI_Notices.txt ├── CF_CLI_SLC_Notices.txt ├── LICENSE ├── NOTICE ├── autocomplete │ ├── bash_autocomplete │ └── zsh_autocomplete ├── ibmcloud ├── ibmcloud-analytics ├── ibmcloud-analytics.sig └── ibmcloud.sig ├── README.docx ├── README.md ├── README.pdf ├── fping-msys2.0 ├── 1-自动查找100个丢包最少的IP.bat ├── 2-对100个丢包最少的IP测速.bat ├── 3-单IP测速.bat ├── 使用说明.txt └── 自动查找最优CF节点-懒人专用.bat ├── img └── README │ ├── image-20200615175949804.png │ ├── image-20200615175950024.png │ ├── image-20200615180817619.png │ ├── image-20200615183425453.png │ ├── image-20200615184231212.png │ ├── image-20200615184239713.png │ ├── image-20200615184327329.png │ ├── image-20200615184426979.png │ ├── image-20200615184703280.png │ ├── image-20200615185015130.png │ ├── image-20200615185614978.png │ ├── image-20200615191035212.png │ ├── image-20200615191100959.png │ ├── image-20200615192854218.png │ ├── image-20200615193004495.png │ ├── image-20200615193052842.png │ ├── image-20200615193202810.png │ ├── image-20200615193340241.png │ ├── image-20200615210821081.png │ ├── image-20200615210944753.png │ ├── image-20200615211154143.png │ ├── image-20200615211339053.png │ ├── image-20200615211851731.png │ ├── image-20200615211949359.png │ ├── image-20200615212537944.png │ ├── image-20200615214101750.png │ ├── image-20200615214140306.png │ ├── image-20200615214339159.png │ ├── image-20200615214543839.png │ ├── image-20200615214722195.png │ ├── image-20200615215104775.png │ ├── image-20200615215120033.png │ ├── image-20200615215435278.png │ ├── image-20200615215741422.png │ ├── image-20200615215820188.png │ ├── image-20200615220201165.png │ ├── image-20200615235426917.png │ └── image-20200615235540567.png └── install.sh /.github/workflows/ibm.yml: -------------------------------------------------------------------------------- 1 | name: IBM Cloud Auto Restart 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | pull_request: 7 | branches: [ master ] 8 | schedule: 9 | - cron: '0 12 * * FRI' 10 | 11 | jobs: 12 | ibm-cloud-restart: 13 | runs-on: ubuntu-latest 14 | 15 | steps: 16 | - uses: actions/checkout@v2 17 | 18 | - name: Init 19 | run: | 20 | chmod -R 777 ./IBM_Cloud_CLI/ 21 | - name: Login IBM Cloud 22 | env: 23 | IBM_ACCOUNT: ${{ secrets.IBM_ACCOUNT }} 24 | REGION_NUM: ${{ secrets.REGION_NUM }} 25 | run: | 26 | ./IBM_Cloud_CLI/ibmcloud login <), Google), 288 | CYPHAR/FILEPATH-SECUREJOIN (Copyright (C) 2014-2015 Docker Inc & Go 289 | Authors), HAMCREST-CORE [JUnit] (Copyright (c) 2000-2006, 290 | www.hamcrest.org All rights reserved.), OGNL [JUnit] (Copyright (c) 291 | 2004, Drew Davidson and Luke Blanshard All rights reserved.), UGLIFYJS 292 | [Bootstrap] (No copyright found), GORILLA/MUX (Copyright (c) 2012 293 | Rodrigo Moraes. All rights reserved.), GORILLA/WEBSOCKET (Copyright (c) 294 | 2013 The Gorilla WebSocket Authors. All rights reserved.), SINON 295 | [jQuery] (Copyright (c) 2010-2017, Christian Johansen, 296 | christian@cjohansen.no), X/TOOLS [cloudfoundry/bosh-cli] (Copyright (c) 297 | 2009 The Go Authors. All rights reserved.), TOMB.V1 (Copyright (c) 298 | 2010-2011 - Gustavo Niemeyer ), X/NET (Copyright 299 | (c) 2009 The Go Authors. All rights reserved.), MARKDOWN.PL [JUnit] 300 | (Copyright (c) 2003-2004 John Gruber), KARDIANOS/OSEXT (Copyright (c) 301 | 2012 The Go Authors. All rights reserved.), PKCS11 [moby/moby] 302 | (Copyright (c) 2013 Miek Gieben. All rights reserved.), CHECK.V1 303 | [docker/distribution] (Copyright (c) 2010-2013 Gustavo Niemeyer 304 | ), X/OAUTH2 [cloudfoundry/bosh-cli] (Copyright (c) 305 | 2009 The Go Authors. All rights reserved.), GO-MSGPACK [moby/moby] 306 | (Copyright (c) 2012, 2013 Ugorji Nwoke), NEWRELIC_PLATFORM_GO 307 | [docker/distribution] (Copyright (c) 2013 Yuriy Vasiyarov. All rights 308 | reserved.), WEBKIT [x/net] (Copyright (C) 2009 Apple Inc), 309 | BMATCUK/DOUBLESTAR [cloudfoundry/bosh-cli] (Copyright (c) 2014 Bob 310 | Matcuk), GO-DIFFLIB [moby/moby] (Copyright (c) 2013, Patrick Mezard), 311 | GOTTY [moby/moby] (Copyright 2012 Neal van Veen. All rights reserved.), 312 | GOLANG/PROTOBUF (Copyright 2010 The Go Authors. All rights reserved.), 313 | MUX [moby/moby] (Copyright (c) 2012 Rodrigo Moraes. All rights 314 | reserved.), GO-ZOOKEEPER [moby/moby] (Copyright (c) 2013, Samuel 315 | Stauffer), MIEKG/DNS (Copyright 2013 The Go Authors. All rights 316 | reserved.), MOUSETRAP [docker/distribution] (Copyright 2014 Alan 317 | Shreve), LIBSECCOMP-GOLANG [moby/moby] (Copyright (c) 2015 Matthew Heon; 318 | Copyright (c) 2015 Paul Moore), GOLANG/CRYPTO (Copyright (c) 2009 The Go 319 | Authors.), JSDUMP [Bootstrap] (Copyright (c) 2008 Ariel Flesler), 320 | JESSEVDK/GO-FLAGS (Copyright (c) 2012 Jesse van den Kieboom. All rights 321 | reserved.), GOGO/PROTOBUF (Copyright (c) 2013 The GoGo Authors.), 322 | TAR-SPLIT [moby/moby] (Copyright (c) 2015 Vincent Batts, Raleigh, NC, 323 | USA), PKG/ERRORS (Copyright (c) 2015, Dave Cheney All 324 | rights reserved.), GETGO [cloudfoundry/bosh-cli] (Copyright (c) 2017 The 325 | Go Authors.), GAX-GO [moby/moby] (Copyright 2016, Google Inc.), 326 | FSNOTIFY.V1 [cloudfoundry/bosh-cli] (Copyright (c) 2012 fsnotify 327 | Authors. All rights reserved.), GO [moby/moby] (Copyright (c) 2012 The 328 | Go Authors. All rights reserved.), SRSLOG [moby/moby] (Copyright (c) 329 | 2015 Rackspace. All rights reserved.), CFSSL [moby/moby] (Copyright (c) 330 | 2014 CloudFlare Inc.), GOCAPABILITY [moby/moby] (Copyright 2013 331 | Suryandaru Triandana), MERGO [moby/moby] (Copyright (c) 2013 Dario 332 | Castañé. All rights reserved. Copyright (c) 2012 The Go Authors. All 333 | rights reserved.), JS-INDENT-LEVEL [Bootstrap] (Copyright 2011 Mozilla 334 | Foundation and contributors), GOOGLE/GO-QUERYSTRING (Copyright (c) 2013 335 | Google. All rights reserved.), X/TEXT (Copyright (c) 2009 The Go 336 | Authors. All rights reserved.), X/CRYPTO (Copyright (c) 2009 The Go 337 | Authors. All rights reserved.), FSNOTIFY (Copyright (c) 2012 The Go 338 | Authors. All rights reserved.), GOFMT [CLI] (Copyright 2012 The Go 339 | Authors.), FS.GO [moby/moby] (Copyright (c) 2014-2017 The Docker & Go 340 | Authors. All rights reserved.), GOOGLEAPIS/GAX-GO 341 | [cloudfoundry/bosh-cli] (Copyright 2016, Google Inc.) 342 | 343 | 344 | BSD 2-CLAUSE 345 | 346 | Redistribution and use in source and binary forms, with or without 347 | modification, are permitted provided that the following conditions are 348 | met: 349 | 350 | * Redistributions of source code must retain the above copyright notice, 351 | this list of conditions and the following disclaimer. 352 | * Redistributions in binary form must reproduce the above copyright 353 | notice, this list of conditions and the following disclaimer in the 354 | documentation and/or other materials provided with the distribution. 355 | 356 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 357 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 358 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 359 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 360 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 361 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 362 | TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 363 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 364 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 365 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 366 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 367 | 368 | 369 | 370 | BSD 3-CLAUSE 371 | 372 | Redistribution and use in source and binary forms, with or without 373 | modification, are permitted provided that the following conditions are 374 | met: 375 | 376 | * Redistributions of source code must retain the above copyright notice, 377 | this list of conditions and the following disclaimer. 378 | * Redistributions in binary form must reproduce the above copyright 379 | notice, this list of conditions and the following disclaimer in the 380 | documentation and/or other materials provided with the distribution. 381 | * Neither the name of the nor the names of its 382 | contributors may be used to endorse or promote products derived from 383 | this software without specific prior written permission. 384 | 385 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 386 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 387 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 388 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 389 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 390 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 391 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 392 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 393 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 394 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 395 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 396 | 397 | END OF BSD 3-CLAUSE LICENSE NOTICES AND INFORMATION 398 | 399 | 400 | 401 | BSD 4-CLAUSE 402 | 403 | Redistribution and use in source and binary forms, with or without 404 | modification, is permitted provided that the following conditions are 405 | met: 406 | 407 | * Redistributions of source code must retain the above copyright notice, 408 | this list of conditions and the following disclaimer. 409 | * Redistributions in binary form must reproduce the above copyright 410 | notice, this list of conditions and the following disclaimer in the 411 | documentation and/or other materials provided with the distribution. 412 | * All advertising materials mentioning features or use of this software 413 | must display the following acknowledgement: 414 | This product includes software developed by the . 415 | * Neither the name of the nor the names of its 416 | contributors may be used to endorse or promote products derived from 417 | this software without specific prior written permission. 418 | 419 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 420 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 421 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 422 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 423 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 424 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 425 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 426 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 427 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 428 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 429 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 430 | 431 | END OF BSD 4-CLAUSE LICENSE NOTICES AND INFORMATION 432 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 433 | 434 | 435 | BSD-EQUIVALENT 436 | 437 | BSD + GOOGLE PATENTS FILE 438 | 439 | The Program includes some or all of the following works licensed under 440 | the BSD + GOOGLE PATENTS FILE 441 | 442 | X/NET, X [moby], GRPC [moby] 443 | 444 | Redistribution and use in source and binary forms, with or without 445 | modification, are permitted provided that the following conditions are 446 | met: 447 | 448 | * Redistributions of source code must retain the above copyright 449 | notice, this list of conditions and the following disclaimer. 450 | * Redistributions in binary form must reproduce the above 451 | copyright notice, this list of conditions and the following disclaimer 452 | in the documentation and/or other materials provided with the 453 | distribution. 454 | * Neither the name of Google Inc. nor the names of its 455 | contributors may be used to endorse or promote products derived from 456 | this software without specific prior written permission. 457 | 458 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 459 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 460 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 461 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 462 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 463 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 464 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 465 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 466 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 467 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 468 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 469 | 470 | Additional IP Rights Grant (Patents) 471 | 472 | "This implementation" means the copyrightable works distributed by 473 | Google as part of the Go project. 474 | 475 | Google hereby grants to You a perpetual, worldwide, non-exclusive, 476 | no-charge, royalty-free, irrevocable (except as stated in this section) 477 | patent license to make, have made, use, offer to sell, sell, import, 478 | transfer and otherwise run, modify and propagate the contents of this 479 | implementation of Go, where such license applies only to those patent 480 | claims, both currently owned or controlled by Google and acquired in 481 | the future, licensable by Google that are necessarily infringed by this 482 | implementation of Go. This grant does not include claims that would be 483 | infringed only as a consequence of further modification of this 484 | implementation. If you or your agent or exclusive licensee institute or 485 | order or agree to the institution of patent litigation against any 486 | entity (including a cross-claim or counterclaim in a lawsuit) alleging 487 | that this implementation of Go or any code incorporated within this 488 | implementation of Go constitutes direct or contributory patent 489 | infringement, or inducement of patent infringement, then any patent 490 | rights granted to you under this License for this implementation of Go 491 | shall terminate as of the date such litigation is filed. 492 | 493 | 494 | CRYPTOGAMS 495 | 496 | Copyright (c) 2006-2017, CRYPTOGAMS by 497 | 498 | Redistribution and use in source and binary forms, with or without 499 | modification, are permitted provided that the following conditions 500 | are met: 501 | 502 | * Redistributions of source code must retain copyright notices, 503 | this list of conditions and the following disclaimer. 504 | 505 | * Redistributions in binary form must reproduce the above 506 | copyright notice, this list of conditions and the following 507 | disclaimer in the documentation and/or other materials 508 | provided with the distribution. 509 | 510 | * Neither the name of the CRYPTOGAMS nor the names of its 511 | copyright holder and contributors may be used to endorse or 512 | promote products derived from this software without specific 513 | prior written permission. 514 | 515 | ALTERNATIVELY, provided that this notice is retained in full, this 516 | product may be distributed under the terms of the GNU General Public 517 | License (GPL), in which case the provisions of the GPL apply INSTEAD OF 518 | those given above. 519 | 520 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS 521 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 522 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 523 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 524 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 525 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 526 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 527 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 528 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 529 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 530 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 531 | 532 | 533 | END OF BSD-EQUIVALENT LICENSE NOTICES AND INFORMATION 534 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 535 | 536 | ECLIPSE PUBLIC LICENSE, VERSION 1 537 | 538 | The Program includes some or all of the following that IBM obtained 539 | under the Eclipse Public License (source code available via the 540 | indicated URL): 541 | 542 | JUNIT (http://maven.ibiblio.org/maven2/junit/junit/4.12/junit-4.12.jar) 543 | 544 | END OF ECLIPSE PUBLIC LICENSE, VERSION 1 NOTICES AND INFORMATION 545 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 546 | 547 | ISC LICENSE 548 | 549 | The Program includes some or all of the following that IBM obtained 550 | under the ISC License. 551 | 552 | DAVECGH/GO-SPEW (Copyright (c) 2012-2013 Dave Collins ) 553 | 554 | ISC License 555 | 556 | Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC") 557 | Copyright (c) 1995-2003 by Internet Software Consortium 558 | 559 | Permission to use, copy, modify, and/or distribute this software for any 560 | purpose with or without fee is hereby granted, provided that the above 561 | copyright notice and this permission notice appear in all copies. 562 | 563 | THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 564 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 565 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY 566 | SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 567 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 568 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 569 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 570 | 571 | END OF ISC LICENSE NOTICES AND INFORMATION 572 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 573 | 574 | MIT LICENSE 575 | 576 | The Program includes some or all of the following that IBM obtained 577 | under the MIT License: 578 | 579 | DUSTIN/GO-HUMANIZE [cloudfoundry/bosh-cli] (Copyright (c) 2005-2008 580 | Dustin Sallings ), GOLANG-SET [moby/moby] (Copyright (c) 581 | 2013 Ralph Caraveo (deckarep@gmail.com)), NORMALIZE.CSS [Bootstrap] 582 | (Copyright © Nicolas Gallagher and Jonathan Neal), MDEFINE [Bootstrap] 583 | (Copyright (c) 2011, The Dojo Foundation All Rights Reserved.), 584 | SERMODIGITAL/JOSE (Copyright (c) 2015 Sermo Digital LLC), JWT-GO 585 | [docker/distribution] (Copyright (c) 2012 Dave Grijalva), URITEMPLATES 586 | [cloudfoundry/bosh-cli] (Copyright (c) 2013 Joshua Tacoma), 587 | BOOTSTRAP-CUSTOMIZE.MIN.JS [Bootstrap] (Feross Aboukhadijeh), MUSTERMANN 588 | (Copyright (c) 2013-2017 Konstantin Haase), HCSSHIM [moby/moby] 589 | (Copyright (c) 2015 Microsoft), LEGO [docker/distribution] (Copyright 590 | (c) 2015 Sebastian Erhart), CUCUMBER-JAVA (Copyright (c) The Cucumber 591 | Organisation), PMEZARD/GO-DIFFLIB (Copyright (c) 2013 Patrick Mezard), 592 | QUNIT [Bootstrap] (Copyright 2013 jQuery Foundation and other 593 | contributors), LUNIXBOCHS/VTCLEAN (Copyright (c) 2015 Ryan Hileman), 594 | GHERKIN (Copyright (c) Cucumber Ltd, Gaspar Nagy, Björn Rasmusson, Peter 595 | Sergeant), ONSI/GOMEGA (Copyright (c) 2013-2014 Onsi Fakhouri), PERKS 596 | [moby/moby] (Copyright (C) 2013 Blake Mizerany), TESTIFY [moby/moby] 597 | (Copyright (c) 2012 - 2013 Mat Ryer and Tyler Bunnell), STRETCHR/TESTIFY 598 | (Copyright (c) 2012 - 2013 Mat Ryer and Tyler Bunnell), RC2 (Copyright 599 | 2015 The Go Authors), MAXBRUNSFELD/COUNTERFEITER [cloudfoundry/bosh-cli] 600 | (Copyright (c) 2014 maxbrunsfeld), GO-WINIO [moby/moby] (Copyright (c) 601 | 2015 Microsoft), ZEROCLIPBOARD V1.3.5 [Bootstrap] (Copyright (c) 2014 602 | Jon Rohan, James M. Greene), GO-ANSITERM [moby/moby] (Copyright (c) 2015 603 | Microsoft Corporation), RSPEC-MOCKS (Copyright � 2012 David Chelimsky; 604 | Myron Marston), SIRUPSEN/LOGRUS (Copyright (c) 2014 Simon Eskildsen), 605 | GO-GELF [moby/moby] (Copyright 2012 SocialCode), SABHIRAM/GO-GITIGNORE 606 | (Copyright (c) 2015 Shaba Abhiram), ANGULAR ((c) 2010-2018 Google, 607 | Inc.), DIFF-LCS (Copyright 2004–2013 Austin Ziegler), JSZIP 608 | [Bootstrap] ((c) 2009-2014 Stuart Knightley), ARMON/GO-SOCKS5 (Copyright 609 | (c) 2014 Armon Dadgar), RSPEC-EXPECTATIONS (Copyright � 2012 David 610 | Chelimsky; Myron Marston), AWS_SIGNING_CLIENT (Copyright (c) 2016 611 | Anthony Atkinson), CPPFORLIFE/GO-PATCH (Copyright (c) 2016 Dmitriy 612 | Kalinin), HPCLOUD/TAIL (Copyright 2015 Hewlett Packard Enterprise 613 | Development LP), GO-COLORABLE (Copyright (c) 2016 Yasuhiro Matsumoto), 614 | MSGP [moby/moby] (Copyright (c) 2014 Philip Hofer Portions Copyright (c) 615 | 2009 The Go Authors), FATIH/COLOR (Copyright (c) 2013 Fatih Arslan), 616 | CLOUDFOUNDRY/GO-SOCKS5 [cloudfoundry/bosh-cli] (Copyright (c) 2014 Armon 617 | Dadgar), LIBYAML [cloudfoundry/bosh-cli] (Copyright (c) 2006 Kirill 618 | Simonov), GOMEGA [cloudfoundry/bosh-cli] (Copyright (c) 2013-2014 Onsi 619 | Fakhouri), I18N.JS (Copyright (c) 2010-2011, The Dojo Foundation), 620 | BOOTSTRAP (Copyright (c) 2011-2015 Twitter, Inc ), CUCUMBER-JUNIT (No 621 | Copyright Found), BMATCUK/DOUBLESTAR (Copyright (c) 2014 Bob Matcuk), 622 | DOOZERD (Copyright (c) 2010 Blake Mizerany, Keith Rarick), LE_GO 623 | [moby/moby] (Copyright (c) 2017 Gal Ben-Haim), VITO/GO-INTERACT 624 | (Copyright (c) 2009 The Go Authors. All rights reserved.Copyright (c) 625 | 2015-2016 Alex Suraci), RSPEC (Copyright � 2009 Chad Humphries; David 626 | Chelimsky), HOLDERM [Bootstrap] (© 2015 Ivan Malopinsky), 627 | MATTN/GO-COLORABLE (Copyright (c) 2016 Yasuhiro Matsumoto), 628 | OLIVERE/ELASTIC (Copyright � 2012-2015 Oliver Eilhard), LOGRUS 629 | [moby/moby] (Copyright (c) 2014 Simon Eskildsen), MASTERMINDS/SEMVER 630 | (Copyright (C) 2014-2015; Matt Butcher and Matt Farina), MAILRU/EASYJSON 631 | (Copyright (c) 2016 Mail.Ru Group), AMDEFINE [Bootstrap] (Copyright (c) 632 | 2011, The Dojo Foundation All Rights Reserved.), GORAPH (No Copyright 633 | Found), RSPEC-CORE (Copyright � 2012 Chad Humphries; David Chelimsky; 634 | Myron Marston), FATIH/STRUCTS (Copyright (c) 2014 Fatih Arslan), 635 | MOBY/MOBY (Copyright 2012-2017 Docker, Inc.), BACKOFF (Copyright (c) 636 | 2014 Cenk Altı), FSNOTIFY.V1 (Copyright (c) 2012 fsnotify Authors. All 637 | rights reserved.), DOCKER-CREDENTIAL-HELPERS [moby/moby] (Copyright (c) 638 | 2016 David Calavera), BOLTDB/BOLT (Copyright (c) 2013 Ben Johnson), 639 | AZURE/GO-ANSITERM (Copyright (c) 2015 Microsoft Corporation), PROTOTYPE 640 | [JSON (Ruby)] (Copyright (c) 2005-2007 Sam Stephenson), S3CLI 641 | [docker/distribution] (Copyright (c) 2013 Damien Le Berrigaud and Nick 642 | Wade), MITCHELLH/GO-HOMEDIR (Copyright (c) 2013 Mitchell Hashimoto), 643 | LAFIKL/BACKOFF (Copyright (c) 2014 Cenk Altı), MATTN/GO-RUNEWIDTH 644 | (Copyright (c) 2016 Yasuhiro Matsumoto), GO-RADIX [moby/moby] (Copyright 645 | (c) 2014 Armon Dadgar), YUI-EXT [JSON (Ruby)] (No Copyright Found), 646 | LAFIKL/FLUENT (Copyright (c) 2014 Khalid Lafi), SEGMENTIO/BACKO-GO 647 | (Copyright (c) 2015 Segment Inc.), GO-JOSE.V1 [docker/distribution] 648 | (Copyright 2014 Square Inc.), RSPEC-SUPPORT (Copyright � 2013 David 649 | Chelimsky; Myron Marston; Jon Rowe; Sam Phippen; Xavier Shay; Bradley 650 | Schaefer), REQUIRE.JS (Copyright (c) 2010-2011, The Dojo Foundation All 651 | Rights Reserved.), PFLAG [docker/distribution] (Copyright (c) 2012 The 652 | Go Authors. All rights reserved.), SEGMENTIO/ANALYTICS-GO (Copyright (c) 653 | 2016 Segment Inc.), HAXX [moby/moby] (Copyright (c) 1996 - 2017, Daniel 654 | Stenberg), GO-INI (Copyright (c) 2013 Vaughan Newton), TILT (Copyright 655 | (c) 2010-2016 Ryan Tomayko), BLOB.JS [Bootstrap] (Copyright © 2014 Eli 656 | Grey.), CUCUMBER-HTML (No Copyright Found), BLANG/SEMVER (Copyright (c) 657 | 2014 Benedikt Lang), NU7HATCH/GOUUID (Copyright (C) 2011 by Krzysztof 658 | Kowalik ), LOGRUS-LOGSTASH-HOOK [docker/distribution] 659 | (Copyright (c) 2016 Boaz Shuster), XMLRPC (Copyright (C) 2012 Dmitry 660 | Maksimov), TEDSUO/RATA (Copyright (c) 2014 Ted Young), BUFFER 661 | [Bootstrap] (Author:Feross Aboukhadijeh), ES5-SHIM [Bootstrap] (No 662 | copyright found), CHARLIEVIETH/FS (Copyright (c) 2016 Charlie Vieth), 663 | CUCUMBER-CORE (No Copyright Found), MAPSTRUCTURE [moby/moby] (Copyright 664 | (c) 2013 Mitchell Hashimoto), SWIFT [docker/distribution] (Copyright (C) 665 | 2012 by Nick Craig-Wood), GLYPHICONS HALFLINGS FONT [Bootstrap] (No 666 | copyright found), ANCHORJS [Bootstrap] (Copyright (c) 2016 Bryan Braun), 667 | CLOUDFOUNDRY/CLI (Copyright (c) 2013 Joshua Tacoma), 668 | NATEFINCH/LUMBERJACK.V2 (Copyright (c) 2014 Nate Finch), SIZZLE.JS 669 | [Require.js] (Copyright 2011, The Dojo Foundation), FILESAVER.JS 670 | [Bootstrap] (Copyright © 2016 Eli Grey.), GO-PATRICIA [moby/moby] 671 | (Copyright (c) 2014 The AUTHORS), CUCUMBER-JAVA8 (No Copyright Found), 672 | SINATRA (Copyright (c) 2007, 2008, 2009 Blake Mizerany), RAINBOW 673 | (Copyright (c) Marcin Kulik), FWD [moby/moby] (Copyright (c) 2014-2015, 674 | Philip Hofer), KR/PTY (Copyright (c) 2011 Keith Rarick), THE BUFFER 675 | MODULE FROM NODE.JS [Bootstrap] (No copyright found), BOLT [moby/moby] 676 | (Copyright (c) 2013 Ben Johnson), FUNCTION PROCESS [Bootstrap] 677 | (Copyright Joyent, Inc. and other Node contributors.), 678 | INCONSHREVEABLE/MOUSETRAP (Copyright 2014 Alan Shreve), GO-SHELLWORDS 679 | [moby/moby] (Copyright (c) 2017 Yasuhiro Matsumoto), SAJARI/FUZZY 680 | (Copyright (c) 2014 Sajari Pty Ltd), BASE64.JS, [Bootstrap] (Copyright 681 | Joyent, Inc. and other Node contributors.), LIBRARY PAKO [Bootstrap] (no 682 | copyright found), ATEXIT (Copyright (c) 2012 Miki Tebeka), RATELIMITER 683 | [cloudfoundry/bosh-cli] (Copyright (C) 2013 99designs), JQUERY 684 | [Bootstrap] (Copyright JS Foundation and other contributors, 685 | https://js.foundation), GRUNT-CONTRIB-QUNIT [Bootstrap] (Copyright (c) 686 | 2014 Cowboy" Ben Alman, contributors), GO-RUNEWIDTH 687 | [cloudfoundry/bosh-cli] (Copyright (c) 2016 Yasuhiro Matsumoto), 688 | MATTN/GO-ISATTY (Copyright (c) 2016 Yasuhiro Matsumoto), URFAVE/CLI 689 | (Copyright (c) 2016 Jeremy Saenz & Contributors), 690 | CPPFORLIFE/GO-SEMI-SEMANTIC [cloudfoundry/bosh-cli] (Copyright (c) 2014 691 | Dmitriy Kalinin), JQUERY JAVASCRIPT LIBRARY V1.7.1 [Require.js] 692 | (Copyright 2011, John Resig), CODEGANGSTA/CLI (Copyright (C) 2013 Jeremy 693 | Saenz), RESPONSERECORDER (No Copyright Found), RACK (Copyright (c) 694 | 2007-2016 Christian Neukirchen), FIFO [moby/moby] (Copyright (C) 2016 695 | Tõnis Tiigi), BURNTSUSHI/TOML (Copyright (c) 2013 TOML authors), 696 | BMIZERANY/PAT (Copyright (C) 2012 by Keith Rarick Blake Mizerany), 697 | MREIFERSON/GO-HTTPCLIENT (Copyright (c) 2012 Matt Reiferson), GO 698 | [moby/moby] (Copyright (c) 2012-2015 Ugorji Nwoke), XTGO/UUID (Copyright 699 | (c) 2012 The gocql Authors. All rights reserved.), PTY [moby/moby] 700 | (Copyright (c) 2011 Keith Rarick), GO-ISATTY (Copyright (c) 2016 701 | Yasuhiro Matsumoto), ONSI/GINKGO (Copyright (c) 2013-2014 Onsi 702 | Fakhouri), GINKGO (Copyright (c) 2013-2014 Onsi Fakhouri), JAVASCRIPT 703 | DIFF ALGORITHM [Bootstrap] (No copyright found), NICKSNYDER/GO-I18N 704 | (Copyright (c) 2014 Nick Snyder), RACK-PROTECTION (Copyright (c) 705 | 2015-2017 Zachary Scott), SPF13/PFLAG (Copyright (c) 2012 Alex Ogier) 706 | 707 | Permission is hereby granted, free of charge, to any person obtaining a 708 | copy of this software and associated documentation files (the 709 | "Software"), to deal in the Software without restriction, including 710 | without limitation the rights to use, copy, modify, merge, publish, 711 | distribute, sublicense, and/or sell copies of the Software, and to 712 | permit persons to whom the Software is furnished to do so, subject to 713 | the following conditions: 714 | 715 | The above copyright notice and this permission notice shall be included 716 | in all copies or substantial portions of the Software. 717 | 718 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 719 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 720 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 721 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 722 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 723 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 724 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 725 | 726 | END OF MIT LICENSE NOTICES AND INFORMATION 727 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 728 | 729 | MOZILLA PUBLIC LICENSE, VERSION 2.0 730 | 731 | The Program includes some or all of the following that IBM obtained 732 | under the Mozilla Public License, Version 2.0 (source code available via 733 | the indicated URL): 734 | 735 | GOLANG-LRU [cloudfoundry/bosh-cli] (http://mozilla.org/MPL/2.0/.), 736 | ERRWRAP [cloudfoundry/bosh-cli] (http://mozilla.org/MPL/2.0/.), 737 | GO-MULTIERROR [cloudfoundry/bosh-cli] (http://mozilla.org/MPL/2.0/.), 738 | HASHICORP [moby/moby] (https://github.com/hashicorp) 739 | 740 | END OF MOZILLA PUBLIC LICENSE, VERSION 2.0 NOTICES AND INFORMATION 741 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 742 | 743 | RUBY LICENSE 744 | 745 | The Program includes some or all of the following that IBM obtained 746 | under the Ruby License (source code available via the indicated URL): 747 | 748 | JSON (RUBY) (http://rubygems.org/downloads/json-2.1.0.gem) 749 | 750 | NOTE: MANUAL CORRECTION REQUIRED - READ AND DELETE TEXT BELOW!! 751 | 752 | This entry is for packages licensed as Ruby pre-release 1.9.3 753 | 754 | There are various versions of the Ruby License that have been 755 | used, but, unfortunately, the license author didn't assign version 756 | numbers to the extent that IBM legal are aware. In addition to minor 757 | wording differences which should not impact on IBM's use of Ruby 758 | licensed software, some versions include a specific disclaimer that 759 | there are separately licensed components in the RUBY package, and refer 760 | the user to a "LEGAL" or another file for details. For ALL Ruby 761 | versions, regardless of whether the license specifically mentions 762 | separately licensed code, you should check the LEGAL or other named file 763 | to ensure that you have identified all relevant licenses for the code 764 | you are distributing. 765 | 766 | If you are distributing the code in source code form, include a copy of 767 | the Ruby license (two examples are included in extra_licenses. 768 | Otherwise, there is no need to include a copy of the license - you can 769 | delete all text following the list of packages above, leaving the END OF 770 | RUBY LICENSE NOTICES statement intact. 771 | 772 | (see https://w3-connections.ibm.com/wikis/home?lang=en-us#!/wiki/SWGLegal/page/Ruby%20License 773 | for more information) 774 | 775 | END OF RUBY LICENSE NOTICES AND INFORMATION 776 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 777 | 778 | UNIQUE 779 | 780 | 781 | rfc7159 782 | 783 | Copyright Notice 784 | 785 | Copyright (c) 2014 IETF Trust and the persons identified as the 786 | document authors. All rights reserved. 787 | 788 | This document is subject to BCP 78 and the IETF Trust's Legal 789 | Provisions Relating to IETF Documents 790 | (http://trustee.ietf.org/license-info) in effect on the date of 791 | publication of this document. Please review these documents 792 | carefully, as they describe your rights and restrictions with respect 793 | to this document. Code Components extracted from this document must 794 | include Simplified BSD License text as described in Section 4.e of 795 | the Trust Legal Provisions and are provided without warranty as 796 | described in the Simplified BSD License. 797 | 798 | This document may contain material from IETF Documents or IETF 799 | Contributions published or made publicly available before November 800 | 10, 2008. The person(s) controlling the copyright in some of this 801 | material may not have granted the IETF Trust the right to allow 802 | modifications of such material outside the IETF Standards Process. 803 | Without obtaining an adequate license from the person(s) controlling 804 | the copyright in such materials, this document may not be modified 805 | outside the IETF Standards Process, and derivative works of it may 806 | not be created outside the IETF Standards Process, except to format 807 | it for publication as an RFC or to translate it into languages other 808 | than English. 809 | 810 | 811 | END OF UNIQUE LICENSE NOTICES AND INFORMATION 812 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 813 | 814 | W3C SOFTWARE LICENSE 815 | 816 | The Program includes some or all of the following that IBM obtained 817 | under the W3C Software Notice and License: 818 | 819 | TESTDATA [x/net] 820 | 821 | W3C® SOFTWARE NOTICE AND LICENSE 822 | 823 | Copyright © 1994-2001 World Wide Web Consortium, (Massachusetts 824 | Institute of Technology, Institut National de Recherche en Informatique 825 | et en Automatique, Keio University). All Rights Reserved. 826 | http://www.w3.org/Consortium/Legal/ 827 | 828 | This W3C work (including software, documents, or other related items) is 829 | being provided by the copyright holders under the following license. By 830 | obtaining, using and/or copying this work, you (the licensee) agree that 831 | you have read, understood, and will comply with the following terms and 832 | conditions: 833 | 834 | Permission to use, copy, modify, and distribute this software and its 835 | documentation, with or without modification, for any purpose and without 836 | fee or royalty is hereby granted, provided that you include the 837 | following on ALL copies of the software and documentation or portions 838 | thereof, including modifications, that you make: 839 | 840 | 841 | 1. The full text of this NOTICE in a location viewable to users of 842 | the redistributed or derivative work. 843 | 844 | 2. Any pre-existing intellectual property disclaimers, notices, or 845 | terms and conditions. If none exist, a short notice of the 846 | following form (hypertext is preferred, text is permitted) should 847 | be used within the body of any redistributed or derivative code: 848 | "Copyright © [$date-of-software] World Wide Web Consortium, 849 | (Massachusetts Institute of Technology, Institut National de 850 | Recherche en Informatique et en Automatique, Keio University). 851 | All Rights Reserved. http://www.w3.org/Consortium/Legal/" 852 | 853 | 3. Notice of any changes or modifications to the W3C files, 854 | including the date changes were made. (We recommend you provide 855 | URIs to the location from which the code is derived.) 856 | 857 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT 858 | HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, 859 | INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS 860 | FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR 861 | DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, 862 | TRADEMARKS OR OTHER RIGHTS. 863 | 864 | COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL 865 | OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR 866 | DOCUMENTATION. 867 | 868 | The name and trademarks of copyright holders may NOT be used in 869 | advertising or publicity pertaining to the software without specific, 870 | written prior permission. Title to copyright in this software and any 871 | associated documentation will at all times remain with copyright 872 | holders. 873 | 874 | END OF W3C SOFTWARE LICENSE NOTICES AND INFORMATION 875 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 876 | 877 | END OF IBM NOTICES AND INFORMATION 878 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 879 | 880 | END OF NOTICE FILE 881 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 882 | 883 | -------------------------------------------------------------------------------- /IBM_Cloud_CLI/CF_CLI_SLC_Notices.txt: -------------------------------------------------------------------------------- 1 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 | NOTICES AND INFORMATION FOR EXCLUDED COMPONENTS 3 | 4 | cloudfoundry_cli 5 | 6 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 7 | 8 | TABLE OF CONTENTS 9 | 10 | THE REMAINDER OF THIS IBM NOTICES FILE CONSISTS OF THE FOLLOWING 11 | SECTIONS: 12 | 13 | CC-BY-3.0 14 | 15 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 16 | 17 | CREATIVE COMMONS ATTRIBUTION 3.0 GENERIC 18 | 19 | The Program includes some or all of the following works licensed under 20 | the Creative Commons. 21 | The url to the license is https://creativecommons.org/licenses/by/3.0/legalcode 22 | 23 | BOOTSTRAP DOCS (https://github.com/twbs/bootstrap/tree/v3.3.2) 24 | 25 | END OF CREATIVE COMMONS ATTRIBUTION 3.0 GENERIC NOTICES AND INFORMATION 26 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 27 | 28 | END OF IBM NOTICES AND INFORMATION 29 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 30 | 31 | END OF NOTICE FILE 32 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 33 | 34 | -------------------------------------------------------------------------------- /IBM_Cloud_CLI/LICENSE: -------------------------------------------------------------------------------- 1 | LICENSE INFORMATION 2 | 3 | The Programs listed below are licensed under the following License Information terms and conditions in addition to the Program license terms previously agreed to by Client and IBM. If Client does not have previously agreed to license terms in effect for the Program, the International License Agreement for Non-Warranted Programs (Z125-5589-05) applies. 4 | 5 | Program Name (Program Number): 6 | IBM Cloud Command Line Interface (Tool) 7 | 8 | The following standard terms apply to Licensee's use of the Program. 9 | 10 | Prohibited Uses 11 | 12 | Licensee may not use or authorize others to use the Program if failure of the Program could lead to death, bodily injury, or property or environmental damage. 13 | 14 | L/N: L-JJYU-BDAD79 15 | D/N: L-JJYU-BDAD79 16 | P/N: L-JJYU-BDAD79 17 | -------------------------------------------------------------------------------- /IBM_Cloud_CLI/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Software License 2.0 2 | The Program includes some or all of the following that IBM obtained under the Apache License Version 2.0: 3 | * github.com/cloudfoundry/cli 4 | * github.com/cloudfoundry/jibber_jabber 5 | 6 | 7 | BSD License 8 | The Program includes some or all of the following that IBM obtained under the BSD License: 9 | * golang.org/x/crypto 10 | * golang.org/x/sys 11 | 12 | 13 | MIT License 14 | The Program includes some or all of the following that IBM obtained under the MIT License: 15 | * github.com/blang/semver 16 | * github.com/mattn/go-colorable 17 | * github.com/mattn/go-isatty 18 | * github.com/nicksnyder/go-i18n -------------------------------------------------------------------------------- /IBM_Cloud_CLI/autocomplete/bash_autocomplete: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | _bash_autocomplete() { 4 | local cur opts 5 | COMPREPLY=() 6 | cur="${COMP_WORDS[COMP_CWORD]}" 7 | opts=$( "${COMP_WORDS[@]:0:$COMP_CWORD}" --generate-bash-completion ) 8 | COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) 9 | return 0 10 | } 11 | 12 | PROGS=("bluemix" "bx" "ibmcloud") 13 | for p in "${PROGS[@]}"; 14 | do 15 | complete -o default -F _bash_autocomplete "$p" 16 | done 17 | -------------------------------------------------------------------------------- /IBM_Cloud_CLI/autocomplete/zsh_autocomplete: -------------------------------------------------------------------------------- 1 | if ! (( $+functions[compdef] )) ; then 2 | autoload -U +X compinit && compinit 3 | fi 4 | 5 | autoload -U +X bashcompinit && bashcompinit 6 | 7 | script_dir=$(dirname $0) 8 | source ${script_dir}/bash_autocomplete -------------------------------------------------------------------------------- /IBM_Cloud_CLI/ibmcloud: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/IBM_Cloud_CLI/ibmcloud -------------------------------------------------------------------------------- /IBM_Cloud_CLI/ibmcloud-analytics: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/IBM_Cloud_CLI/ibmcloud-analytics -------------------------------------------------------------------------------- /IBM_Cloud_CLI/ibmcloud-analytics.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/IBM_Cloud_CLI/ibmcloud-analytics.sig -------------------------------------------------------------------------------- /IBM_Cloud_CLI/ibmcloud.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/IBM_Cloud_CLI/ibmcloud.sig -------------------------------------------------------------------------------- /README.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/README.docx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # IBMYes 2 | 3 | 本项目包括3部分 4 | 5 | 1. IBM Cloud Fonudray搭建V2Ray ws 6 | 2. 利用Github的Actions 每周重启 IBM Cloud Fonudray 7 | 3. Cloudflare 高速节点中转 8 | 9 | # 使用IBM Cloud Fonudray搭建V2Ray 10 | 11 | 首先注册https://cloud.ibm.com/ 12 | 13 | 注册步骤略过 14 | 15 | 登录后点击右侧 创建资源 16 | 17 | ![image-20200615192854218](img/README/image-20200615192854218.png) 18 | 19 | 可以找到Cloud Foundray 20 | 21 | ![image-20200615193004495](img/README/image-20200615193004495.png) 22 | 23 | 创建公共应用程序 24 | 25 | ![image-20200615193052842](img/README/image-20200615193052842.png) 26 | 27 | 填写相关信息 28 | 29 | ![image-20200615193202810](img/README/image-20200615193202810.png) 30 | 31 | 区域必须达拉斯,只有那里有免费的。 32 | 33 | ![image-20200615193340241](img/README/image-20200615193340241.png) 34 | 35 | 填写应用名称 36 | 37 | 接着进入右上角命令行 38 | 39 | ![image-20200615210821081](img/README/image-20200615210821081.png) 40 | 41 | 打开命令行,右上角选择相应的地区(Dallas),粘贴一键安装脚本: 42 | 43 | ```shell 44 | wget --no-check-certificate -O install.sh https://raw.githubusercontent.com/CCChieh/IBMYes/master/install.sh && chmod +x install.sh && ./install.sh 45 | ``` 46 | 47 | ![image-20200615210944753](img/README/image-20200615210944753.png) 48 | 49 | 在配置的时候需要输入应用名称(这里就是我创建应用的时候输入应用名称我输入的是ibmyes,你需要改成你自己的名称)和应用内存大小(我们刚刚选择的是256) 50 | 51 | ![image-20200615211154143](img/README/image-20200615211154143.png) 52 | 53 | 配置好,等待几分钟,便可自动完成安装。完成安装后,将输出随机的UUID 、WebSocket路径以及对应的配置链接: 54 | 55 | ![image-20200615211339053](img/README/image-20200615211339053.png) 56 | 57 | 然后访问我们刚刚的应用的域名,如果不记得可以返回我们刚才的资源,点击访问应用程序 58 | 59 | ![image-20200615211851731](img/README/image-20200615211851731.png) 60 | 61 | URL后加上生成的WebSocket路径,看到`Bad Request`便成功了 62 | 63 | ![image-20200615211949359](img/README/image-20200615211949359.png) 64 | 65 | 这里请记下你的域名 66 | 67 | 把完成安装后输出的配置链接复制到你的v2rayN或v2rayNg中,修改地址为你的应用的域名(前面我们`Bad Request`那个网页的域名。 68 | 69 | ![image-20200615212537944](img/README/image-20200615212537944.png) 70 | 71 | 至此我们已经有一个可用的v2ray了,但是他每10天会重启一次,而且网速延迟很差,所以接下来会解决这个问题。 72 | 73 | # 利用Github的Actions 每周重启 IBM Cloud Fonudray 74 | 75 | IBM Cloud 10天不操作就会关机,所以我们需要 十天内对其重启一次,避免关机。 76 | 77 | 首先登录IBM Cloud 78 | 79 | 点击又上角的命令行 80 | 81 | 在这一步我们主要是记录4个值 82 | 83 | ``` 84 | IBM_ACCOUNT // IBM Cloud的登录邮箱和密码 85 | IBM_APP_NAME // 应用的名称 86 | REGION_NUM // 区域编码 87 | RESOURSE_ID // 资源组ID 88 | ``` 89 | 90 | 具体后面会一步一步完成 91 | 92 | ![image-20200615175949804](img/README/image-20200615175949804.png) 93 | 94 | 进入命令行先执行 95 | 96 | ```shell 97 | ibmcloud login 98 | ``` 99 | 100 | 输入邮箱和密码。 101 | 102 | 之后记录下区域(Region) 103 | 104 | ![image-20200615180817619](img/README/image-20200615180817619.png) 105 | 106 | ``` 107 | #1. au-syd 108 | #2. in-che 109 | #3. jp-tok 110 | #4. kr-seo 111 | #5. eu-de 112 | #6. eu-gb 113 | #7. us-south 114 | #8. us-east 115 | ``` 116 | 117 | 这里需要记下和区域对应的编号也就是`REGION_NUM`,比如我这里是us-south,那么我的区域编号是`7` 118 | 119 | 接下来获取资源组id`RESOURSE_ID` 120 | 121 | ```shell 122 | ibmcloud resource groups 123 | ``` 124 | 125 | ![image-20200615183425453](img/README/image-20200615183425453.png) 126 | 127 | 图中所指向便是`RESOURSE_ID` 128 | 129 | 现在返回github,到本项目 130 | 131 | ``` 132 | https://github.com/CCChieh/IBMYes 133 | ``` 134 | 135 | ![image-20200615184239713](img/README/image-20200615184239713.png) 136 | 137 | 右上角fork到自己的github下,然后进入setting 138 | 139 | ![image-20200615184327329](img/README/image-20200615184327329.png) 140 | 141 | 选择Secrets 142 | 143 | ![image-20200615184426979](img/README/image-20200615184426979.png) 144 | 145 | New secret 146 | 147 | 分别建立四个secret 148 | 149 | ``` 150 | IBM_ACCOUNT // IBM Cloud的登录邮箱和密码 151 | IBM_APP_NAME // 应用的名称 152 | REGION_NUM // 区域编码 153 | RESOURSE_ID // 资源组ID 154 | ``` 155 | 156 | 157 | 158 | 以`IBM_ACCOUNT`为例![image-20200615184703280](img/README/image-20200615184703280.png) 159 | 160 | 第一行为邮箱,第二行为密码。 161 | 162 | 这里需要邮箱和密码所以中间换行 ,其他的不需要换行 。 163 | 164 | 把四个secret补充完成 165 | 166 | ![image-20200615185015130](img/README/image-20200615185015130.png) 167 | 168 | 之后点击上方Actions,在这里你就会看到有个IBM Cloud Auto Restart在执行。 169 | 170 | ![image-20200615185614978](img/README/image-20200615185614978.png) 171 | 172 | 如果没有看见Action的话到自己仓库的`/.github/workflows/ibm.yml` 173 | 174 | ![image-20200615235426917](img/README/image-20200615235426917.png) 175 | 176 | 编辑下,随意增添个空行然后commit下 177 | 178 | ![image-20200615235540567](img/README/image-20200615235540567.png) 179 | 180 | 就可以看见有action了 181 | 182 | 第一次可能因为secret没添加导致workflow执行失败,只需要点下 183 | 184 | ![image-20200615191100959](img/README/image-20200615191100959.png) 185 | 186 | 进去后按照下图 187 | 188 | ![image-20200615191035212](img/README/image-20200615191035212.png) 189 | 190 | 找到 `Re-run jobs`重新执行一次即可,至此自动重启已经ok了。 191 | 192 | > 感谢药油@[My Flavor](https://yaohuo.me/bbs/userinfo.aspx?touserid=24109),原本打算弄bash在自己服务器定期执行脚本,现在看了他的帖子,发现用Actions是一个更好的选择。 193 | 194 | # Cloudflare 高速节点中转 195 | 196 | > 此部分贡献来自药油@[Joyace](https://yaohuo.me/bbs/userinfo.aspx?touserid=5461)、@[老婆](https://yaohuo.me/bbs/userinfo.aspx?touserid=21843)以及@[小俊博客](https://www.xjisme.com/) 197 | 198 | cloudflare官网:https://www.cloudflare.com/ 199 | 200 | 注册,登录这里不再累述。 201 | 202 | 登录后左上角点击菜单找到workers 203 | 204 | ![image-20200615214101750](img/README/image-20200615214101750.png) 205 | 206 | 创建Worker 207 | 208 | ![image-20200615214140306](img/README/image-20200615214140306.png) 209 | 210 | 打开和复制脚本 211 | 212 | ``` 213 | addEventListener( 214 | "fetch",event => { 215 | let url=new URL(event.request.url); 216 | url.hostname="ibmyes.us-south.cf.appdomain.cloud"; 217 | let request=new Request(url,event.request); 218 | event. respondWith( 219 | fetch(request) 220 | ) 221 | } 222 | ) 223 | ``` 224 | 225 | 修改第四行为你的应用的域名 226 | 227 | ![image-20200615214339159](img/README/image-20200615214339159.png) 228 | 229 | 点击发送,测试是否出现`Bad Request`,出现则成功,点击保存并部署。 230 | 231 | ![image-20200615214543839](img/README/image-20200615214543839.png) 232 | 233 | ![image-20200615214722195](img/README/image-20200615214722195.png) 234 | 235 | 这里会给一个网址,\*.\*.workers.dev,这就是你的cloudflare中转后的域名。 236 | 237 | 然后我们去v2的客户端中修改地址 238 | 239 | ![image-20200615215120033](img/README/image-20200615215120033.png) 240 | 241 | 现在已经使用了cloudflare的代理。 242 | 243 | 下面我们将筛选cloudflare的高速节点。 244 | 245 | 克隆本项目到你的电脑上。 246 | 247 | 打开项目下的`fping-msys2.0`目录运行`自动查找最优CF节点-懒人专用.bat` 248 | 249 | ![image-20200615215435278](img/README/image-20200615215435278.png) 250 | 251 | 这里假设我获取的最优ip是`104.17.188.91` 252 | 253 | 在客户端把地址换成ip,伪装域名换成我们cloudflare的workers的域名即可 254 | 255 | ![image-20200615215820188](img/README/image-20200615215820188.png) 256 | 257 | 如果不方便用电脑优选ip也可以把地址设为`cloudflare.com`或`icook.tw`,这两个一个cloudflare官网,自然也是使用自家cdn,另外一家是台湾省的一个网站,域名指向的ip一般也是比较好的线路。 258 | 259 | ![image-20200615220201165](img/README/image-20200615220201165.png) 260 | 261 | 这里稍微提下原理吧,主要涉及CDN和请求头部,CDN识别流量是访问哪个网站的是根据请求头的Host来识别,所以这里要么host用我们的域名 ,要么我们伪装成我们的域名,这样都可以达到回源我们网站的请求。如果自己有域名也可以换自己的域名,域名也可以从第三方接入商cname,有兴趣的同学可以自己研究下。 -------------------------------------------------------------------------------- /README.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/README.pdf -------------------------------------------------------------------------------- /fping-msys2.0/1-自动查找100个丢包最少的IP.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/fping-msys2.0/1-自动查找100个丢包最少的IP.bat -------------------------------------------------------------------------------- /fping-msys2.0/2-对100个丢包最少的IP测速.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/fping-msys2.0/2-对100个丢包最少的IP测速.bat -------------------------------------------------------------------------------- /fping-msys2.0/3-单IP测速.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/fping-msys2.0/3-单IP测速.bat -------------------------------------------------------------------------------- /fping-msys2.0/使用说明.txt: -------------------------------------------------------------------------------- 1 | 推荐使用半自动方式查找 2 | 3 | 第一步 执行 1-自动查找100个丢包最少的IP.bat 4 | 设置对IP丢包测试PING的次数,默认100次,可手动设定,推荐50次上。运行完毕后命令行窗口会自动关闭再进行下一步操作 5 | 6 | 第二步 执行 2-对100个丢包最少的IP测速.bat 7 | 此过程是利用curl下载托管与cloudflare的大文件,默认每个IP下载时间为10秒钟。下载结束后到temp文件夹根据文件大小排序查看下载文件的大小。文件越大,代表单位时间内传输的数据越多,速度就越快。其中文件名是以IP地址的名称命名的。如果想要对IP单线程测速,可参考第三步。如果第三步找不到好用的IP,可重新执行第二步,再此完整测速分析。 8 | 9 | 第三步 执行 3-单IP测速.bat 10 | 输入第二部筛选出来的IP地址,回车后进行文件下载速度测试 11 | 12 | 13 | 如果觉得上述过程过于繁琐 请参照最后一步 14 | 15 | 最后一步 懒人版全自动处理 执行 自动查找最优CF节点-懒人专用.bat 16 | 等待运行完毕后自动弹出IP速度从大到小的排名文本文件。 17 | 该测试的结果不一定能达到预期的效果 -------------------------------------------------------------------------------- /fping-msys2.0/自动查找最优CF节点-懒人专用.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/fping-msys2.0/自动查找最优CF节点-懒人专用.bat -------------------------------------------------------------------------------- /img/README/image-20200615175949804.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615175949804.png -------------------------------------------------------------------------------- /img/README/image-20200615175950024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615175950024.png -------------------------------------------------------------------------------- /img/README/image-20200615180817619.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615180817619.png -------------------------------------------------------------------------------- /img/README/image-20200615183425453.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615183425453.png -------------------------------------------------------------------------------- /img/README/image-20200615184231212.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615184231212.png -------------------------------------------------------------------------------- /img/README/image-20200615184239713.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615184239713.png -------------------------------------------------------------------------------- /img/README/image-20200615184327329.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615184327329.png -------------------------------------------------------------------------------- /img/README/image-20200615184426979.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615184426979.png -------------------------------------------------------------------------------- /img/README/image-20200615184703280.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615184703280.png -------------------------------------------------------------------------------- /img/README/image-20200615185015130.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615185015130.png -------------------------------------------------------------------------------- /img/README/image-20200615185614978.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615185614978.png -------------------------------------------------------------------------------- /img/README/image-20200615191035212.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615191035212.png -------------------------------------------------------------------------------- /img/README/image-20200615191100959.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615191100959.png -------------------------------------------------------------------------------- /img/README/image-20200615192854218.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615192854218.png -------------------------------------------------------------------------------- /img/README/image-20200615193004495.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615193004495.png -------------------------------------------------------------------------------- /img/README/image-20200615193052842.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615193052842.png -------------------------------------------------------------------------------- /img/README/image-20200615193202810.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615193202810.png -------------------------------------------------------------------------------- /img/README/image-20200615193340241.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615193340241.png -------------------------------------------------------------------------------- /img/README/image-20200615210821081.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615210821081.png -------------------------------------------------------------------------------- /img/README/image-20200615210944753.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615210944753.png -------------------------------------------------------------------------------- /img/README/image-20200615211154143.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615211154143.png -------------------------------------------------------------------------------- /img/README/image-20200615211339053.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615211339053.png -------------------------------------------------------------------------------- /img/README/image-20200615211851731.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615211851731.png -------------------------------------------------------------------------------- /img/README/image-20200615211949359.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615211949359.png -------------------------------------------------------------------------------- /img/README/image-20200615212537944.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615212537944.png -------------------------------------------------------------------------------- /img/README/image-20200615214101750.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615214101750.png -------------------------------------------------------------------------------- /img/README/image-20200615214140306.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615214140306.png -------------------------------------------------------------------------------- /img/README/image-20200615214339159.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615214339159.png -------------------------------------------------------------------------------- /img/README/image-20200615214543839.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615214543839.png -------------------------------------------------------------------------------- /img/README/image-20200615214722195.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615214722195.png -------------------------------------------------------------------------------- /img/README/image-20200615215104775.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615215104775.png -------------------------------------------------------------------------------- /img/README/image-20200615215120033.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615215120033.png -------------------------------------------------------------------------------- /img/README/image-20200615215435278.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615215435278.png -------------------------------------------------------------------------------- /img/README/image-20200615215741422.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615215741422.png -------------------------------------------------------------------------------- /img/README/image-20200615215820188.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615215820188.png -------------------------------------------------------------------------------- /img/README/image-20200615220201165.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615220201165.png -------------------------------------------------------------------------------- /img/README/image-20200615235426917.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615235426917.png -------------------------------------------------------------------------------- /img/README/image-20200615235540567.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptsboy/IBMYes/3b3b6c5a81eb8e28744934146763682c74b75bed/img/README/image-20200615235540567.png -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | SH_PATH=$(cd "$(dirname "$0")";pwd) 3 | cd ${SH_PATH} 4 | 5 | create_mainfest_file(){ 6 | echo "进行配置。。。" 7 | read -p "请输入你的应用名称:" IBM_APP_NAME 8 | echo "应用名称:${IBM_APP_NAME}" 9 | read -p "请输入你的应用内存大小(默认256):" IBM_MEM_SIZE 10 | if [ -z "${IBM_MEM_SIZE}" ];then 11 | IBM_MEM_SIZE=256 12 | fi 13 | echo "内存大小:${IBM_MEM_SIZE}" 14 | UUID=$(cat /proc/sys/kernel/random/uuid) 15 | echo "生成随机UUID:${UUID}" 16 | WSPATH=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16) 17 | echo "生成随机WebSocket路径:${WSPATH}" 18 | 19 | cat > ${SH_PATH}/IBMYes/v2ray-cloudfoundry/manifest.yml << EOF 20 | applications: 21 | - path: . 22 | name: ${IBM_APP_NAME} 23 | random-route: true 24 | memory: ${IBM_MEM_SIZE}M 25 | EOF 26 | 27 | cat > ${SH_PATH}/IBMYes/v2ray-cloudfoundry/v2ray/config.json << EOF 28 | { 29 | "inbounds": [ 30 | { 31 | "port": 8080, 32 | "protocol": "vmess", 33 | "settings": { 34 | "clients": [ 35 | { 36 | "id": "${UUID}", 37 | "alterId": 4 38 | } 39 | ] 40 | }, 41 | "streamSettings": { 42 | "network":"ws", 43 | "wsSettings": { 44 | "path": "${WSPATH}" 45 | } 46 | } 47 | } 48 | ], 49 | "outbounds": [ 50 | { 51 | "protocol": "freedom", 52 | "settings": {} 53 | } 54 | ] 55 | } 56 | EOF 57 | echo "配置完成。" 58 | } 59 | 60 | clone_repo(){ 61 | echo "进行初始化。。。" 62 | git clone https://github.com/CCChieh/IBMYes 63 | cd IBMYes 64 | git submodule update --init --recursive 65 | cd v2ray-cloudfoundry/v2ray 66 | # Upgrade V2Ray to the latest version 67 | rm v2ray v2ctl 68 | 69 | # Script from https://github.com/v2fly/fhs-install-v2ray/blob/master/install-release.sh 70 | # Get V2Ray release version number 71 | TMP_FILE="$(mktemp)" 72 | if ! curl -s -o "$TMP_FILE" 'https://api.github.com/repos/v2fly/v2ray-core/releases/latest'; then 73 | rm "$TMP_FILE" 74 | echo 'error: 获取最新V2Ray版本号失败。请重试' 75 | exit 1 76 | fi 77 | RELEASE_LATEST="$(sed 'y/,/\n/' "$TMP_FILE" | grep 'tag_name' | awk -F '"' '{print $4}')" 78 | rm "$TMP_FILE" 79 | echo "当前最新V2Ray版本为$RELEASE_LATEST" 80 | # Download latest release 81 | DOWNLOAD_LINK="https://github.com/v2fly/v2ray-core/releases/download/$RELEASE_LATEST/v2ray-linux-64.zip" 82 | if ! curl -L -H 'Cache-Control: no-cache' -o "latest-v2ray.zip" "$DOWNLOAD_LINK"; then 83 | echo 'error: 下载V2Ray失败,请重试' 84 | return 1 85 | fi 86 | unzip latest-v2ray.zip v2ray v2ctl geoip.dat geosite.dat 87 | rm latest-v2ray.zip 88 | 89 | chmod 0755 ./* 90 | cd ${SH_PATH}/IBMYes/v2ray-cloudfoundry 91 | echo "初始化完成。" 92 | } 93 | 94 | install(){ 95 | echo "进行安装。。。" 96 | cd ${SH_PATH}/IBMYes/v2ray-cloudfoundry 97 | ibmcloud target --cf 98 | ibmcloud cf install 99 | ibmcloud cf push 100 | echo "安装完成。" 101 | echo "生成的随机 UUID:${UUID}" 102 | echo "生成的随机 WebSocket路径:${WSPATH}" 103 | VMESSCODE=$(base64 -w 0 << EOF 104 | { 105 | "v": "2", 106 | "ps": "ibmyes", 107 | "add": "ibmyes.us-south.cf.appdomain.cloud", 108 | "port": "443", 109 | "id": "${UUID}", 110 | "aid": "4", 111 | "net": "ws", 112 | "type": "none", 113 | "host": "", 114 | "path": "${WSPATH}", 115 | "tls": "tls" 116 | } 117 | EOF 118 | ) 119 | echo "配置链接:" 120 | echo vmess://${VMESSCODE} 121 | 122 | } 123 | 124 | clone_repo 125 | create_mainfest_file 126 | install 127 | exit 0 --------------------------------------------------------------------------------