2019년 2월 15일 금요일

ubuntu postman setup


wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman
cd /usr/share/applications
sudo vi postman.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development

2019년 1월 25일 금요일

pkcs12 to SSL key

openssl pkcs12 -in filename.pfx -nocerts -out key.key
openssl pkcs12 -in filename.pfx -nokeys -clcerts -out key.crt
openssl pkcs12 -in filename.pfx -nodes -nokeys -cacerts -passin pass:pass -out chain.crt
openssl rsa -in key.key -out key2.pem

2018년 10월 22일 월요일

zsh



install
sudo apt install zsh

default set
chsh -s /usr/bin/zsh

oh my zsh install
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

plugin

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

plugins=(
  git
  zsh-syntax-highlighting
  zsh-autosuggestions
)

2018년 10월 17일 수요일

auto create requirements.txt

pip freeze > requirements.txt

ImportError: cannot import name 'main'

pip path error

sudo python3 -m pip uninstall pip && sudo apt-get install python3-pip --reinstall

pymysql install

sudo apt-get install python-dev python3-dev
sudo apt-get install libmysqlclient-dev
pip install pymysql
pip install mysqlclient