* git 설치
$sudo apt install git


* gitea 디렉토리에 바이너리 다운로드
$mkdir ~/gitea
$cd ~/gitea
$wget -O gitea https://dl.gitea.io/gitea/master/gitea-master-linux-arm-6


* MySQL 셋업
$sudo mysql -u root
CREATE DATABASE gitea;
CREATE USER 'gitea'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'localhost';
FLUSH PRIVILEGES
^C


* 서버실행
$cd ~/gitea
$chmod 755 gitea
$./gitea web


* 접속 후 환경설정
데이터베이스 유형 : MySQL
호스트: 127.0.0.1:3306
Username: gitea
비밀번호: password
데이터베이스 이름: gitea
Charset: utf8
저장소 최상위 경로 : /home/pi/gitea/gitea-repositories
LFS Root Path : /home/pi/gitea/data/LFS
데몬 사용자 계정 : pi
도메인 : localhost
SSH 포트 :
HTTP 포트 : 3000
애플리케이션 URL : http://라즈베리파이IP:3000/
로그 경로 : /home/pi/gitea/log


* 서비스에 등록
$sudo nano /etc/systemd/system/gitea.service

[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target

[Service]
# Modify these two values ??and uncomment them if you have
# repos with lots of files and get to HTTP error 500 because of that
###
# LimitMEMLOCK=infinity
# LimitNOFILE=65535
RestartSec=2s
Type=simple
User=pi
Group=pi
WorkingDirectory=/home/pi/gitea
ExecStart=/home/pi/gitea/gitea web
Restart=always
Environment=USER=pi 
HOME=/home/pi

[Install]
WantedBy=multi-user.target


* 서비스 시작
sudo systemctl enable gitea.service
sudo systemctl start gitea.service


* gitea nginx 설정
server {
    listen 443 ssl;
    server_name gitea 도메인;
    ssl_certificate     /etc/letsencrypt/live/도메인/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/도메인/privkey.pem;

    location / {
        client_max_body_size 364M;
        proxy_pass http://localhost:3000;
        proxy_connect_timeout 600;
        proxy_send_timeout 600;
        proxy_read_timeout 600;
        send_timeout 600;
        proxy_set_header X-Real-IP $remote_addr;
    }
}

server {
    listen 80;
    server_name gitea 도메인;
    return 301 https://$host$request_uri;
}


* 심볼릭링크 작성
$sudo ln -s /etc/nginx/sites-available/git.qualitybits.net /etc/nginx/sites-enabled/도메인


* SSL 인증서 취득
$sudo certbot certonly --standalone -d 도메인


* nginx 재시작
$sudo systemctl restart nginx


* 업데이트
$sudo systemctl stop gitea.service
$mv -f /home/pi/gitea/gitea /home/pi/gitea/gitea.old
$wget -O /home/pi/gitea/gitea https://dl.gitea.io/gitea/master/gitea-master-linux-arm-6
$chmod +x /home/pi/gitea/gitea
2019/09/10 23:51 2019/09/10 23:51

Comment on this post!


문제 해설
https://tech.kakao.com/2017/11/14/kakao-blind-recruitment-round-3/



1. N진수 게임
https://www.welcomekakao.com/learn/courses/30/lessons/17687

2. 압축
https://www.welcomekakao.com/learn/courses/30/lessons/17684

3. 파일명 정렬
https://www.welcomekakao.com/learn/courses/30/lessons/17686

4. 방금 그 곡
https://www.welcomekakao.com/learn/courses/30/lessons/17683

5. 자동완성
https://www.welcomekakao.com/learn/courses/30/lessons/17685

필기 시험
http://tech.kakao.com/files/kakao-blind-recruitment.pdf (새 창으로 열기)

2019/09/03 14:43 2019/09/03 14:43

Comment on this post!


https://programmers.co.kr/learn/courses/18


파트1. 자릿수 더하기 문제
https://programmers.co.kr/learn/courses/18/lessons/1876

파트2. 순열 검사 문제
https://programmers.co.kr/learn/courses/18/lessons/1877

파트3. 나머지 한 점 문제
https://programmers.co.kr/learn/courses/18/lessons/1878

파트4. 가장 큰 정사각형 찾기 문제
https://programmers.co.kr/learn/courses/18/lessons/1879

파트5. 땅따먹기 문제
https://programmers.co.kr/learn/courses/18/lessons/1880

파트6. 스티커 모으기 문제
https://programmers.co.kr/learn/courses/18/lessons/1881

파트7. 단어 퍼즐 문제
https://programmers.co.kr/learn/courses/18/lessons/1882
2019/09/01 11:37 2019/09/01 11:37

Comment on this post!


Swift로 풀어봤따.


문제 해설
http://tech.kakao.com/2017/09/27/kakao ··· und-1%2F (새 창으로 열기)

1. 비밀지도 (비트연산)
https://www.welcomekakao.com/learn/courses/30/lessons/17681

2. 다트 게임 (정규표현식)
https://www.welcomekakao.com/learn/courses/30/lessons/17682

3. 캐시
https://www.welcomekakao.com/learn/courses/30/lessons/17680

4. 셔틀버스 (문자열 시간변환, 딕셔너리)
https://www.welcomekakao.com/learn/courses/30/lessons/17678

5. 뉴스 클러스터링 (집합, 딕셔너리)
https://www.welcomekakao.com/learn/courses/30/lessons/17677

6. 프렌즈 4블록 (2차원배열, 스왑)
https://www.welcomekakao.com/learn/courses/30/lessons/17679

7. 추석 트래픽 (문자열 시간변환)
https://www.welcomekakao.com/learn/courses/30/lessons/17676


2019/08/30 14:06 2019/08/30 14:06

Comment on this post!


사용자 삽입 이미지















Move the fighter to the left and right to avoid the meteorites and destroy the enemies!

The goal is to defend the universe by defeating various enemies and 5 types of alien bosses using missiles and items.

Three fighters with different ability are available. Please select your favorite fighter according to your play style.

Destroying the fourth boss will increase all abilities of the fighter to the highest value, regardless of the type of the fighter selected.

Pour all the missiles in the final stage!

Unlimited continue is allowed. Even if you are not good at shooting games, you can always clear game by continuing the infinite challenge.


https://apps.apple.com/app/space-piyongpiyong/id1462255763
사용자 삽입 이미지







2019/08/16 20:29 2019/08/16 20:29

Comment on this post!