Skip to content

Instantly share code, notes, and snippets.

View jsrimr's full-sized avatar

Jungsub Lim jsrimr

  • SNU
  • Seoul, Dongjak-gu
View GitHub Profile
authorName: default
experimentName: example_mnist
trialConcurrency: 4
maxExecDuration: 1h
maxTrialNum: 10
#choice: local, remote, pai
trainingServicePlatform: local
#choice: true, false
useAnnotation: true
tuner:
// 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": {
@jsrimr
jsrimr / makeuser.sh
Last active October 28, 2019 05:30
makeuser.sh
#!/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
@jsrimr
jsrimr / while_read.sh
Created October 28, 2019 09:54
how to use while in script and end the script
while read input && [ "$input" != "quit" ]
do
echo "$input 이 들어왔습니다"
done
@jsrimr
jsrimr / sql
Created December 7, 2019 09:37
SQL usage
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
@jsrimr
jsrimr / redis install automate
Created December 9, 2019 09:02
install-redis(centos)
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
@jsrimr
jsrimr / ubuntu
Last active December 11, 2019 01:56
custom shell
# 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
@jsrimr
jsrimr / custom shell
Created December 11, 2019 01:56
centos
# 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
@jsrimr
jsrimr / simple_pod.yml
Last active February 20, 2020 07:35
가장 기본적인 pod 생성 yml
apiVersion: v1
kind: Pod
metadata:
name: pod-1
spec:
containers:
- name: container1
image: kubetm/p8000
ports:
- containerPort: 8000
@jsrimr
jsrimr / InsertbyDay .py
Created June 17, 2020 07:43
Loop for mysql
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)