Skip to content

Instantly share code, notes, and snippets.

View Liyuu8's full-sized avatar

Liyuu Liyuu8

View GitHub Profile
# バージョン確認
$ python3.5 -V
Python 3.5.2
# debパッケージをインストール
$ sudo apt -y install build-essential
$ sudo apt -y install python3-dev
$ sudo apt -y install libsqlite3-dev
$ sudo apt -y install libreadline6-dev
$ sudo apt -y install libgdbm-dev
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# 起動
$ vagrant ssh
# パッケージ更新
vagrant@ubuntu-xenial:~$ sudo apt -y update
vagrant@ubuntu-xenial:~$ sudo apt -y upgrade
# ログアウト
vagrant@ubuntu-xenial:~$ exit
$ vagrant init ubuntu/xenial64
$ vagrant up
$ cd ubuntu_xenial64
$ vagrant box add ubuntu/xenial64
# 確認
$ vagrant box list
ubuntu/xenial64 (virtualbox, 20181012.0.0)
$ vagrant -v
Vagrant 2.1.5
$ git commit --amend --reset-author
$ cd ~/.ssh
$ ssh-keygen -t rsa
@Liyuu8
Liyuu8 / Git Init
Last active September 9, 2018 17:26
$ git config --global user.name "NAME"
$ git config --global user.email "EMAIL"
$ git init
$ git add .
$ git commit -m "Initialize repository"
$ git remote add origin git@github.com:Liyuu8/Mymarkdown.git
$ git push -u origin master
# install dependencies
$ npm install
# serve with hot reload at localhost:8080
$ npm run dev