Skip to content

Instantly share code, notes, and snippets.

View taewanme's full-sized avatar

Taewan Kim taewanme

View GitHub Profile
@taewanme
taewanme / gist:d2d17ab740f1974d581462f5b8692d6f
Created April 12, 2021 00:29
read file list with PAR URL of OCI Object storage
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
@taewanme
taewanme / gist:7d2221b96fb26a5c63fdb4a0493d7e13
Last active February 19, 2020 06:28
Log of Installation with OCI CLI
~/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'
  • 목표: 아래에서는 image를 관리하는 repository에 블로그에 사용할 이미지를 추가하고 github에 저장한 후 추가한 이미지의 URL을 확인하는 방법을 소개합니다.  - 이미지 repository에 추가하 이미지의 URL은 블로그 문서 작성시 활용 합니다.

이미지 저장 repository

이미지 저장 repository를 클론하기

  • git bash를 실행합니다.
  • git bash에서 다음 명령어를 수행합니다.
@taewanme
taewanme / team_meeting.md
Last active April 18, 2017 04:22
team 블러그 준비사항

사전 준비사항

  • github 계정  - mail

    • password
  • 주의 사항: 네트웍은 clear guest 혹은 사외 네트웍을 사용할 것

hugo installation

  • 디렉터리 생성
  • C:\Hugo

title

sub title

동해물과 백두산이 마르고 닳도

@taewanme
taewanme / gist:5aec347b6fbfdc96495d3cc522b906cd
Created October 19, 2016 14:40
Vagrant File 4 Data Science on Python
# -*- 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