- 목표: 아래에서는 image를 관리하는 repository에 블로그에 사용할 이미지를 추가하고 github에 저장한 후 추가한 이미지의 URL을 확인하는 방법을 소개합니다. - 이미지 repository에 추가하 이미지의 URL은 블로그 문서 작성시 활용 합니다.
- image는 저장 github repository
- git bash를 실행합니다.
- git bash에서 다음 명령어를 수행합니다.
| import requests | |
| import os | |
| par_prefix_par=os.environ['PAR_PREFIX_URL'] | |
| response = requests.get(par_prefix_par) | |
| print(response.text) |
| import com.oracle.bmc.auth.AuthenticationDetailsProvider; | |
| import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; | |
| import com.oracle.bmc.objectstorage.ObjectStorage; | |
| import com.oracle.bmc.objectstorage.ObjectStorageClient; | |
| String configurationFilePath = "~/.oci/config"; | |
| String profile = "DEFAULT"; | |
| AuthenticationDetailsProvider provider = | |
| new ConfigFileAuthenticationDetailsProvider(configurationFilePath, profile); |
| [opc@demo02 ~]$ bash -c \ | |
| > "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)" | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 13979 100 13979 0 0 55147 0 --:--:-- --:--:-- --:--:-- 55472 | |
| ****************************************************************************** | |
| You have started the OCI CLI Installer in interactive mode. If you do not wish | |
| to run this in interactive mode, please include the --accept-all-defaults option. | |
| If you have the script locally and would like to know more about |
| ~/demo > | |
| $ bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)" | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 13979 100 13979 0 0 8174 0 0:00:01 0:00:01 --:--:-- 8179 | |
| ****************************************************************************** | |
| You have started the OCI CLI Installer in interactive mode. If you do not wish | |
| to run this in interactive mode, please include the --accept-all-defaults option. | |
| If you have the script locally and would like to know more about |
| import torch | |
| torch.cuda.is_available() | |
| #True | |
| torch.cuda.device_count() | |
| #1 | |
| torch.cuda.current_device() | |
| #0 | |
| torch.cuda.get_device_name(0) | |
| #'GeForce GTX 1080' |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "ubuntu/xenial64" | |
| config.vm.network "private_network", ip: "192.168.33.33" | |
| # config.vm.synced_folder "../ipython", "/ipython" | |
| config.vm.provider "virtualbox" do |vb| | |
| # # Display the VirtualBox GUI when booting the machine |