Coder Social home page Coder Social logo

ujuc.github.io's Introduction

Blog 글 생성

poetry run cli post <TITLE>

Pelican 명령어

blog preview

poetry run cli preview

ujuc.github.io's People

Contributors

dependabot[bot] avatar dizy64 avatar ujuc avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

dizy64

ujuc.github.io's Issues

문서 작성 스크립트 옵션 붙이기

문서 작성을 위한 스크립트에 옵션을 붙여서 더 다양하게 사용할 수 있도록 구성이 필요.

docopt를 이용하여 구성할 수 있도록함.

기본 내용은 markdown으로만 생성되도록 변경(160626)

필요한 옵션

  • new
    • 새로운 블로그 아티클 생성
    • -r | --rst
      • rst 파일 생성
  • -e : edit.
    • 글을 수정해야하는 일이 있을 경우, 파일을 읽어와서 수정할 수 있도록 구성.
    • 입력시 :modified: 항목에 수정하는 날짜가 입력되도록 설정.
  • -d : date
    • 특정 날자로 글을 생성해야될때 사용할 수 있도록 구성.
    • 제목, :date: 날짜와 시간을 자동으로 입력할 수 있도록 작성.
  • page
    • 페이지 작성
    • -r | --rst
      • rst 파일생성 하는것으로 수정

autoenv 설정 한거 남겨둘것

autoenv 설치

  • kennethreitz/autoenv
  • mac에서 설치해서 brew install autoenv
  • zsh를 사용하니까 ~/.zshrcsource $(brew --prefix autoenv)/activate.sh

설정

블로그를 pelican으로 구성하다보니 pyenv, venv 설정해서 패키지 설치 파일이 필요해서 구성했다.

# ujuc.github.io

source ../env/blog/bin/activate

다 좋은데 다른 프로젝트로 가게되면 계속 켜져있다. 이걸 지워야되는데 방법은 상위 폴더에 다음 .evn를 만들어서 넣어주면 된다. (원문)

# .env

if [ -n "$VIRTUAL_ENV" ] ; then
    deactivate
fi

[Edison] Bluetooth 설정

Bluetooth 설정

  • Edison 에서는 Bluetooth 제어 모듈로 BlueZ를 사용하고 있다.
  • 리눅스에서 다쓴다.
  • 그런데 개발이 중단된것같은 느낌이 들긴했다. 그냥 느낌임.
  • 패키지 구조는 아래와 같다.

설정

  • 간단하다. 기본적으로 Bluez가 설치가되어 있으니 그냥 켜주기만하면 된다.
  • 먼저 bluetooth 데몬을 실행시켜준다.
# systemctl stop bluetooth
# systemctl start bluetooth
# systemctl status bluetooth
  • 블루투스를 사용할 수 있도록 모듈을 활성화시켜준다.
# rfkill list
# rfkill unblock bluetooth

어플리케이션 사용

bluetoothctl

  • 쉘형식으로 접근하여 블루투스를 설정할 수 있다.
  • agent를 설정하여 범위를 줄여서 확인할 수 있다.
  • 나머지 사용법은 블루투스 가이드를 보도록 하자.

hciconfig

  • ifconfig와 같은 hci관련 디바이스들의 상태를 확인할 수 있는 툴이다.
  • 사용법은 동일하며, 몇몇 설정이 되어있어야한다.
  • hciconfig hci0 sspmode 1: hci0에 간단한 페어링 설정을 활성화 한다는 의미이다.
  • hciconfig hci0 sspmode: hci0에 설정된 간략한 페어링 설정이 어떻게 되어있는지를 확인한다는 것.
  • hciconfig hci0 lestates: LE 모듈 관련되서 설정들을 확인할 수 있음.

hcitool

  • 간단한 명령어로 bluetoothctl을 사용하지 않고서 작업을 진행할 수 있다.
  • hcitool scan을 이용하여 블루투스 기기를 검색할 수 있다.
  • 옵션들을 이용해서 더 다양한 작업들이 가능하게 해놨다.

pybluez

  • BlueZ의 Python 라이브러리인데...
  • 사람들은 hcitool을 더 많이 쓰는 것으로...
  • C맵핑을 해놔서 왠만한 작업들은 가능한 것으로 보이나 문서가 빈약하여 사용하기 쉽지 않다.
  • 뭔가 추가를 하려면 코드를 봐야된다.
  • 그래서 잘안쓰나...

참고자료

blog 종합으로 구성하고 테스트 할 수 있는 스크립트 구현

  • 지금의 코드는 write.py를 이용, 기본 구성으로 파일을 생성 > 파일 수정 > Makefile을 이용하여 html로 만들어서 서버띄워 확인 ( 내부적으로 펠리칸의 명령을 사용하여 진행함.) > github명령으로 github 자동 퍼블리싱.
  • 이 일련의 작업을 하나의 파일을 이용해서 작업할 수 있도록 구성.
  • python shell처럼 만들어서 구현해도 될듯함. cmd 라이브러리를 사용해서 구축.

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Install pyenv on arch linux

  • pyenv를 설치하는데 arch linux에서는 다음과 같은 라이브러리가 더 필요하다.
$ pacman -Q | grep openssl
openssl 1.1.0.e-1
openssl-1.0 1.0.2.k-3
python-pyopenssl 17.0.0-1
python2-pyopenssl 17.0.0-1

bootstrap v5 적용

beta 가 나와서 변경하고 icon 도 font awsome이 아니라 그냥 bootstrap icon으로 하자. 귀찮다.

cdn 으로 받아오는게 맞는지도 고려가 필요할듯.

cqrs 오류뜨는데 잡을 방법이 없다.

man sudo

sudo 명령어에 대한 부분을 작성해보자

rpm local repo

레포 생성
createrepo .

레포 페키지 추가 후
createrepo .

원격지에서
yum clean all
repo 정리
yum repolist
repo 데이터 다시 가져옴.

utterances-bot 제거

discussions으로 옮겨서 해당 내용을 포스트에 반영하고 제거하자.

Change make > snakemake

make를 이용하여 페이지를 생성, 삭제, git push 하는 과정을 Snakemake를 이용하여 작업을 하도록 수정한다.

Protainer

https://portainer.io/

docker로 실행해서 사용하고 있는 docker를 확인할 수 있는건데...
물안들이고 쓸수 있는거니 그러러니 하면서 사용할만한듯..

Zabbix Proxy

Proxy를 사용하는데 Database를 생성하는 SQL은 동일한 파일에서 출발.
소스에 보면 각 RDBM별로 sql파일들이 존재, 따로 서버나 프록시로 나눠놓지 않은 것으로 파악됨.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.