This file contains 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
authorName: default | |
experimentName: example_mnist | |
trialConcurrency: 4 | |
maxExecDuration: 1h | |
maxTrialNum: 10 | |
#choice: local, remote, pai | |
trainingServicePlatform: local | |
#choice: true, false | |
useAnnotation: true | |
tuner: |
This file contains 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
// Please review the configuration for your run. Pay careful attention to the runtime environment. | |
// See http://aka.ms/amlrunconfig for further details. | |
{ | |
"script": "mnist-vscode-docs-sample/train.py", | |
"framework": "Python", | |
"communicator": "None", | |
"target": "local", | |
"environment": { | |
"python": { |
This file contains 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 | |
password=1234 | |
for username in eric jeff jesse bella jaeho | |
do | |
useradd $username -m -s /bin/bash | |
echo -e "$password\n$password" |passwd "$username" | |
done |
This file contains 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 read input && [ "$input" != "quit" ] | |
do | |
echo "$input 이 들어왔습니다" | |
done |
This file contains 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
select * from Salaries limit 10; | |
select yearID from Salaries limit 20 order by salary; | |
create table mytable (id integer, name varchar(255), debut DATE); | |
insert into mytable (id, name, debut) values ('1','jeffrey',CURRENT_DATE); | |
update mytable set debut = '2010-09-01' where id=1 |
This file contains 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 yum install -y make gcc wget | |
wget http://download.redis.io/releases/redis-5.0.7.tar.gz | |
tar xzf redis-5.0.7.tar.gz | |
cd redis-5.0.7 | |
cd deps | |
make hiredis jemalloc linenoise lua geohash-int | |
cd .. | |
make |
This file contains 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
# visudo 먼저하기. sudo visudo | |
# jeffrey ALL=(ALL) NOPASSWD:ALL | |
sudo apt-get install -y zsh git | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh | |
#syntax highlighting | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
# autojump | |
git clone git://github.com/wting/autojump.git |
This file contains 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
# visudo 먼저하기. sudo visudo | |
# jeffrey ALL=(ALL) NOPASSWD:ALL | |
sudo yum install -y zsh git | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh | |
#syntax highlighting | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
# autojump | |
git clone git://github.com/wting/autojump.git |
This file contains 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: pod-1 | |
spec: | |
containers: | |
- name: container1 | |
image: kubetm/p8000 | |
ports: | |
- containerPort: 8000 |
This file contains 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
import pymysql | |
from datetime import datetime, timedelta | |
conn = pymysql.connect(host='', user='logger', password='', db='') | |
c = conn.cursor() | |
def insert_summary(instance_id, last ): | |
today = datetime.today() | |
yesterday = datetime.today() - timedelta(days=1) |